모바일 오유 바로가기
http://m.todayhumor.co.kr
분류 게시판
베스트
  • 베스트오브베스트
  • 베스트
  • 오늘의베스트
  • 유머
  • 유머자료
  • 유머글
  • 이야기
  • 자유
  • 고민
  • 연애
  • 결혼생활
  • 좋은글
  • 자랑
  • 공포
  • 멘붕
  • 사이다
  • 군대
  • 밀리터리
  • 미스터리
  • 술한잔
  • 오늘있잖아요
  • 투표인증
  • 새해
  • 이슈
  • 시사
  • 시사아카이브
  • 사회면
  • 사건사고
  • 생활
  • 패션
  • 패션착샷
  • 아동패션착샷
  • 뷰티
  • 인테리어
  • DIY
  • 요리
  • 커피&차
  • 육아
  • 법률
  • 동물
  • 지식
  • 취업정보
  • 식물
  • 다이어트
  • 의료
  • 영어
  • 맛집
  • 추천사이트
  • 해외직구
  • 취미
  • 사진
  • 사진강좌
  • 카메라
  • 만화
  • 애니메이션
  • 포니
  • 자전거
  • 자동차
  • 여행
  • 바이크
  • 민물낚시
  • 바다낚시
  • 장난감
  • 그림판
  • 학술
  • 경제
  • 역사
  • 예술
  • 과학
  • 철학
  • 심리학
  • 방송연예
  • 연예
  • 음악
  • 음악찾기
  • 악기
  • 음향기기
  • 영화
  • 다큐멘터리
  • 국내드라마
  • 해외드라마
  • 예능
  • 팟케스트
  • 방송프로그램
  • 무한도전
  • 더지니어스
  • 개그콘서트
  • 런닝맨
  • 나가수
  • 디지털
  • 컴퓨터
  • 프로그래머
  • IT
  • 안티바이러스
  • 애플
  • 안드로이드
  • 스마트폰
  • 윈도우폰
  • 심비안
  • 스포츠
  • 스포츠
  • 축구
  • 야구
  • 농구
  • 바둑
  • 야구팀
  • 삼성
  • 두산
  • NC
  • 넥센
  • 한화
  • SK
  • 기아
  • 롯데
  • LG
  • KT
  • 메이저리그
  • 일본프로야구리그
  • 게임1
  • 플래시게임
  • 게임토론방
  • 엑스박스
  • 플레이스테이션
  • 닌텐도
  • 모바일게임
  • 게임2
  • 던전앤파이터
  • 마비노기
  • 마비노기영웅전
  • 하스스톤
  • 히어로즈오브더스톰
  • gta5
  • 디아블로
  • 디아블로2
  • 피파온라인2
  • 피파온라인3
  • 워크래프트
  • 월드오브워크래프트
  • 밀리언아서
  • 월드오브탱크
  • 블레이드앤소울
  • 검은사막
  • 스타크래프트
  • 스타크래프트2
  • 베틀필드3
  • 마인크래프트
  • 데이즈
  • 문명
  • 서든어택
  • 테라
  • 아이온
  • 심시티5
  • 프리스타일풋볼
  • 스페셜포스
  • 사이퍼즈
  • 도타2
  • 메이플스토리1
  • 메이플스토리2
  • 오버워치
  • 오버워치그룹모집
  • 포켓몬고
  • 파이널판타지14
  • 배틀그라운드
  • 기타
  • 종교
  • 단어장
  • 자료창고
  • 운영
  • 공지사항
  • 오유운영
  • 게시판신청
  • 보류
  • 임시게시판
  • 메르스
  • 세월호
  • 원전사고
  • 2016리오올림픽
  • 2018평창올림픽
  • 코로나19
  • 2020도쿄올림픽
  • 게시판찾기
  • 게시물ID : programmer_23222
    작성자 : 창기름
    추천 : 1
    조회수 : 926
    IP : 182.172.***.104
    댓글 : 4개
    등록시간 : 2021/02/10 22:01:40
    http://todayhumor.com/?programmer_23222 모바일
    오라클 서브쿼리에 외부쿼리의 컬럼값을 전달하고 싶습니다.
    옵션
    • 창작글
    • 베오베금지
    • 본인삭제금지
    <p> <a target="_blank" href="https://kin.naver.com/qna/detail.nhn?d1id=1&dirId=10205&docId=381564312" target="_blank">외부 쿼리에서 서브쿼리로 값을 보내주고싶어요. : 지식iN (naver.com)</a> </p> <p> </p> <p> <img src="http://thimg.todayhumor.co.kr/upfile/202102/1612962086e08f8935e12e4f489956874486fc0e52__mn104419__w800__h599__f100767__Ym202102.png" alt="temp.png" style="width:800px;height:599px;" filesize="100767"></p> <p> </p> <p> <img src="http://thimg.todayhumor.co.kr/upfile/202102/1612962086ff457941d7d54275b0c74ae93c8e6f28__mn104419__w800__h151__f16071__Ym202102.png" alt="temp2.png" style="width:800px;height:151px;" filesize="16071"></p> <p> </p> <div style="margin:0px;padding:0px;font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;">해당 모델링에서 다음과같은 UI 에 데이터로 뽑아내고 싶습니다.</div> <div style="margin:0px;padding:0px;font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;"> <br></div> <div style="margin:0px;padding:0px;font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;">subjects 테이블로부터</div> <div style="margin:0px;padding:0px;font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;"> <br></div> <div style="margin:0px;padding:0px;font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;"> <div style="margin:0px;padding:0px;">SELECT subject_no, subj_group, subj_name, subj_score, subj_name, subj_professor, lect_date, lect_start, lect_end</div> <div style="margin:0px;padding:0px;">FROM subjects s</div> <div style="margin:0px;padding:0px;">WHERE subj_semester='1'</div> </div> <div style="margin:0px;padding:0px;font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;"> <br></div> <div style="margin:0px;padding:0px;font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;">다음과같은 쿼리문으로 1학기에 수강가능한 과목들을 모두 뽑아낼 수 있습니다.</div> <div style="margin:0px;padding:0px;font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;">하지만 강의평가점수 부분이 문제인데요,</div> <div style="margin:0px;padding:0px;font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;"> <br></div> <div style="margin:0px;padding:0px;font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;">registers 테이블에서 강의방법, 계획성일치, 목표부합도, 이해수준고려도, 시험평가도</div> <div style="margin:0px;padding:0px;font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;">총 다섯가지항목의 평균갑을 보여주고 싶습니다..</div> <div style="margin:0px;padding:0px;font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;"> <br></div> <div style="margin:0px;padding:0px;font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;">sql문으로 뽑아내자면</div> <div style="margin:0px;padding:0px;font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;"> <div style="margin:0px;padding:0px;">SELECT ( SUM(eval_how)/COUNT(*) + SUM(eval_planning)/COUNT(*) + SUM(eval_goal)/COUNT(*) + SUM(eval_consider)/COUNT(*) + SUM(eval_test)/COUNT(*) ) / 5 as lectureScore</div> <div style="margin:0px;padding:0px;">FROM registers r, subjects s</div> <div style="margin:0px;padding:0px;">WHERE r.subject_no = '00110' AND subj_professor='다람쥐'</div> <div style="margin:0px;padding:0px;">AND reg_year=2020 AND reg_semester='1'</div> </div> <div style="margin:0px;padding:0px;font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;"> <br></div> <div style="margin:0px;padding:0px;font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;">다음과같이 현재 2021년 1학기 기준으로 전년도 1학기의 00110번과목과 다람쥐교수의 모든 강의평가 정보를 합산하여 평균을 낸 값을 처음에 보여드린 컬럼에 포함시켜서 보여주고 싶습니다.</div> <div style="margin:0px;padding:0px;font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;"> <br></div> <div style="margin:0px;padding:0px;font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;"> <br></div> <div style="margin:0px;padding:0px;font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;">하지만 !!!</div> <div style="margin:0px;padding:0px;font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;"> <br></div> <div style="margin:0px;padding:0px;font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;"> <div style="margin:0px;padding:0px;">SELECT subject_no, subj_group, subj_name, subj_score, subj_name, subj_professor, lect_date, lect_start, lect_end, (</div> </div> <blockquote style="font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;margin:0px 0px 0px 40px;border:none;padding:0px;"> <div style="margin:0px;padding:0px;"> <div style="margin:0px;padding:0px;"> <div style="margin:0px;padding:0px;">SELECT ( SUM(eval_how)/COUNT(*) + SUM(eval_planning)/COUNT(*) + SUM(eval_goal)/COUNT(*) + SUM(eval_consider)/COUNT(*) + SUM(eval_test)/COUNT(*) ) / 5</div> <div style="margin:0px;padding:0px;">FROM registers r, subjects s</div> <div style="margin:0px;padding:0px;">WHERE r.subject_no = 'subj_name' AND subj_professor='subj_professor'</div> <div style="margin:0px;padding:0px;">AND reg_year=2020 AND reg_semester='1')  as lectureScore</div> </div> </div> </blockquote> <div style="margin:0px;padding:0px;font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;"> <div style="margin:0px;padding:0px;">FROM subjects s</div> <div style="margin:0px;padding:0px;">WHERE subj_semester='1'</div> </div> <div style="margin:0px;padding:0px;font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;"> <br></div> <div style="margin:0px;padding:0px;font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;">이런식으로 서브쿼리 내에 외부쿼리의 컬럼값을 전해주고싶지만 그게 되질 않습니다...</div> <div style="margin:0px;padding:0px;font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;"> <br></div> <div style="margin:0px;padding:0px;font-family:'Helvetica Neue', 'Apple SD Gothic Neo', '나눔고딕', NanumGothic, '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;font-size:16px;background-color:#ffffff;">어떻게 해결해야 할까요?? </div>

    이 게시물을 추천한 분들의 목록입니다.
    [1] 2021/02/10 22:29:13  121.147.***.10  임가좀비  379119
    푸르딩딩:추천수 3이상 댓글은 배경색이 바뀝니다.
    (단,비공감수가 추천수의 1/3 초과시 해당없음)

    죄송합니다. 댓글 작성은 회원만 가능합니다.

    번호 제 목 이름 날짜 조회 추천
    23236
    AWS 관련 질문입니다.. [6] 본인삭제금지 edusophy 21/03/06 22:30 1047 0
    23235
    프로젝트가 열리질 않습니다 대신 실행해서 스샷만 부탁드립니다 [1] 본인삭제금지 윗집사는그녀 21/03/06 19:28 852 0
    23234
    J2KB 전국연합코딩동아리 3기를 모집하고 있습니다! [1] sk211 21/03/06 01:18 799 0
    23233
    형들 응원 한번씩만 해줄레? [8] 경기도남자 21/03/03 21:35 1043 12
    23231
    프로그램에서 웹을 띄우고, 그웹에서 누른 버튼이 프로그램의 함수를 호출 [5] 솔렘 21/03/02 17:39 1061 0
    23230
    pyinstaller 4.0 이상에서 exe 단일 파일 생성시 보안경고 [2] 호닷 21/02/27 10:10 1352 0
    23229
    쿠팡 상품검색 공개된 API가 있을까요? [2] 알데트 21/02/24 23:16 1850 0
    23227
    Android Studio에서 Kotlin으로 앱 만들기 냉동코더 21/02/22 20:53 766 1
    23226
    db랑 연결할 datasource만들때 wallet으로 만드는 방법?? [1] 므행행 21/02/18 16:01 2127 0
    23225
    WebViewer active-x 오류 해결할 수 있을까요? ㅠ [1] 창작글 인도앓이 21/02/18 10:31 1950 0
    23224
    입사 하루 됐는데 퇴사마렵네요 [5] 흘렙 21/02/18 00:15 1739 3
    23223
    흑시 이런 일화 ... 아시는분? [3] != 21/02/16 21:23 878 0
    오라클 서브쿼리에 외부쿼리의 컬럼값을 전달하고 싶습니다. [4] 창작글베오베금지본인삭제금지 창기름 21/02/10 22:01 927 1
    23221
    UX/UI 디자이너가 되려면 어떻게 해야할까요? [3] vkf4458 21/02/03 08:23 935 0
    23220
    GoDaddy 에서 자꾸 IP가 블락됩니다 ㅜㅜ [2] jiwon7190 21/01/15 20:00 842 0
    23219
    파이선 배우고 있는데 어렵네요 [12] Ai졓아♡ 21/01/14 00:27 1526 0
    23218
    안드로이드 앱 개발 목적으로 코틀린 배우고 싶은데... [1] 본인삭제금지 삶은토마토 21/01/13 19:48 810 0
    23217
    win10에서는 돌아가는데 win7 에서는 에러가 납니다. [11] 상사꽃 21/01/12 10:30 1183 1
    23216
    산업용 조립설명서 만드는 프로그램이 따로 있나요? [2] 베스트금지본인삭제금지 깊은밤굿모닝 21/01/11 14:10 1006 0
    23213
    2021년 4주*13장 달력 받아가세요. nc스테고 21/01/06 16:57 848 0
    23212
    새해가 되었는데 글이 하나도 없네요! [3] Cache 21/01/06 14:24 624 0
    23211
    엑셀 함수 질문입니다 [7] 곰석이 20/12/12 18:12 1342 0
    23210
    [자바코드질문] tcp통신 연결 안되는 문제 [5] qing香 20/12/10 10:48 919 0
    23209
    Messaging Rest API 추천.. [1] 창작글 유저임 20/12/09 11:37 911 0
    23208
    자문을 구하고 싶습니다 홈페이지 제작 환불.. 제발 도와주십쇼 [8] 토종벌꿀 20/12/08 19:04 1040 0
    23206
    군대에서 프밍관련 공부 중 무엇을 할 수 있습니까? [4] Mg 20/11/29 08:46 902 0
    23204
    안드로이드 인텐트 전달하는거 질문좀 드려도될까요? [3] 후끼후끼 20/11/26 22:54 651 0
    23202
    현직 디자이너가 프로그래머로 전직하려고 합니다. [11] 수현냐옹~* 20/11/25 09:02 1502 0
    23201
    notepad 정규식 질문이 있습니다.(in,col 해당 위치 정규식) [1] 본인삭제금지 청주장회장님 20/11/25 00:31 725 1
    23196
    학부수준 질문드립니다. [2] se1251 20/11/17 00:29 1078 0
    [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [다음10개▶]
    단축키 운영진에게 바란다(삭제요청/제안) 운영게 게시판신청 자료창고 보류 개인정보취급방침 청소년보호정책 모바일홈