´ñ±Û : 1 °³
Çѱ¹ µ¨ÆÄÀÌ µ¿È£È¸ µ¨¸¶´ç
raven90
(°­µµ¿í)
 
select A.ÀÏÀÚ, A.¹øÈ£, 
 B.â°í  as Ã¢°í1,
 C.â°í  as Ã¢°í2,
A.¼ö·® from demo1 as A
left join (select ÀÏÀÚ,¹øÈ£,â°í from demo1 where Ã¢°í in ('ÀÏ»ê','¼­¿ï')) B on A.ÀÏÀÚ=B.ÀÏÀÚ and A.¹øÈ£=B.¹øÈ£
left join (select ÀÏÀÚ,¹øÈ£,â°í from demo1 where Ã¢°í in ('ÆÄÁÖ','ÀÎõ')) C on A.ÀÏÀÚ=C.ÀÏÀÚ and A.¹øÈ£=C.¹øÈ£
group by A.ÀÏÀÚ, A.¹øÈ£, A.¼ö·®, B.â°í,C.â°í
 
2020-01-12 ¿ÀÀü 1:33:56