SQL> select 2 age, gender, 3 CASE 4 WHEN age <= 15 THEN 'child' -- 15세 이하 5 WHEN age < 20 THEN 'young... AGE GENDER STATUS ---------- ------ ---------- 1 F child 13 M child 19 M young 38 F lady 39 M gentleman <NULL...
출력) $ : 달러 기호 , : 천단위 구분자 . : 소수점 구분자 g : 천단위 구분자... 출력해주세요 select employee_id, salary, case when salary >= 20000 then 'excellent' when salary...
하는 경우엔 case를 사용해서 10~19세의 경우 10대, 20~29세인 경우 20대, 30~39세인 경우 30대 로... 예시) SELECT CASE WHEN age BETWEEN 10 AND 19 THEN '10대' WHEN age BETWEEN 20 AND 19 THEN '20대' ELSS '기타' END...
생략가능 CASE WHEN AGE BETWEEN '10' AND '19' THEN '10대' WHEN AGE BETWEEN '20' AND '29' THEN '20대' WHEN AGE BETWEEN '30' AND '39' THEN '30대' ELSE 'XX' END GB SQL 실무활용 클래스 SQL 연산자 *BETWEEN a AND b...
-
set @colval=18 select (case col1 when @colval then 1 else 0 end ) + ( case col2 when @colval... col39 ,a1.col40 ,a1.col41 ,a1.col42 ,a1.col43 ,a1.col44 ,a1.col45 ,a1.col46 ,a1.col47 ,a1....
It's hard not to be bullish about CTV when it's both our largest channel and our fastest... When you contrast the quality of the open Internet with the perils of UGC, it's easy to see that the...
... If so, in what capacity did you appear and when?... 39 What’s your favorite movie? 40 What kind of... the case. 49 Do you have a temper? How often do... SHALL THEN SELECT A THIRD ARBITRATOR, WHO SHALL BE...
... 사용 select a.dname, case substr(dname, 1, 1)||to_char(rnum) when '11' then m1 when '12' then m2 when... m6 when '37' then m7 when '38' then m8 when '39' then m9 when '310' then m10 when '311' then m11 when '312...
select /*+ use_nl(a b) index(b ix_pcstmr_02) */ case when substr(b.jumin_no, 1, 2) between '89' and '98' then '10대' when substr(b.jumin_no, 1, 2) between '79... then '50대' when substr(b.jumin_no, 1, 2) between '39...
... strSql = Select * From " strSql = strSql & " ( Select Count(ID) Age10 From Edu_member Where Type1... (DISTINCT CASE WHEN current_year - birth_year between 30 and 39 THEN ID ELSE NULL END) AS "30AGE", COUNT(DISTINCT...
... 꼭 부탁드립니다 ======================================================================== tSQL = " select a.... 네고달러금액, " tSQL = tSQL & " (case s.결재조건" tSQL = tSQL & " when 'T/T' then f.수금금액1" tSQL...
... select case when s.schoollocation=1 then '1. 서울' when s.schoollocation=8 then '2. 경기' when s.... 제주' when s.schoollocation in (20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46)...