Ȩ°ø°³±³À° > ±³À°ÀÏÁ¤ > ¿ùº° ±³À°ÀÏÁ¤
°ø°³±³À° ¿ùº° ±³À°ÀÏÁ¤
°úÁ¤¸í |
±³À°±â°£ |
±³À°½Ã°£ |
°»ç |
±³À°Àå |
¼ö°·á |
¼ö°½Åû |
select a.code, a.name, a.goyong, a.price, c.lec_year, a.lec_time, a.period, a.open_date, a.dc_flag, a.dc_price, a.dc_StartDate, a.dc_EndDate ,case when datediff(d, open_date, getdate())>0 then 99 else abs(datediff(d, open_date, getdate())) end orderNum , (SELECT p_name FROM edu_place WHERE p_code = a.lec_info_loc) AS p_name , (SELECT path+fname AS map FROM edu_place_upload WHERE p_code = a.lec_info_loc and gubun = 'map') AS maps, a.sell from monthly_lec c right outer join lec_general a on c.lec_code=a.code where lec_year='2024' and lec_mon='11' and a.sell in ('y','w') and a.delyn<>'y' and a.srv_site='open' order by orderNum, open_date
µî·ÏµÈ °ÀÇ°¡ ¾ø½À´Ï´Ù. |