SELECT /* COUNT(*) cnt,*/ CODE1, NAME1, CODE2, NAME2, CODE3, NAME3, CODE4, NAME4, CODE5, NAME5, USE_YN
FROM (SELECT CASE WHEN USE_YN='Y' THEN 'Y'
WHEN USE_YN='N' THEN 'N'
END CODE1
FROM LC_CD_ETC_T
WHERE CASE USE_YN = 'Y'
OR CASE USE_YN = 'N'
)
GROUP BY CODE1
ORDER BY CODE1
쿼리를 돌리면, 6행에 에러(Missing boolean expression)라고 하는데, 무슨 얘기인지??? |