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
|
|