%
dim cyear
cyear = LEFT(cstr(date), 4)
if request("cyear") <> "" then
cyear = request("cyear")
end if
%>
기준년 :
| 입사일자 |
성명 |
소속 |
<% dim imonth %>
<% for imonth = 1 To 12 %>
<%=imonth%>월 |
<% Next %>
합계 |
<%
query = ""
query = query & " SELECT P.krc_in_date, J.p_no, P.p_name, ISNULL(P.p_team_name, '') as p_team_name, CONVERT(integer, SUBSTRING(j_date, 6, 2)) AS u_month, ISNULL(sum(CASE WHEN j_contents=8 THEN 1 "
query = query & " WHEN j_contents IN (10, 11) THEN 0.5 END), 0) AS u_cnt "
query = query & " FROM project2.dbo.V_Job_List J LEFT JOIN V_PERSON P "
query = query & " ON J.p_no = P.p_no "
query = query & " WHERE j_contents IN (8,10,11) "
query = query & " AND j_date LIKE '" & cyear & "%' "
query = query & " GROUP BY P.krc_in_date, J.p_no, CONVERT(integer, SUBSTRING(j_date, 6, 2)), P.p_name, P.p_team_name "
%>