<jsp:directive.page pageEncoding="UTF-8" />
<!-- ユーザー別総計表示 -->
<og:query command="{@command}" debug="{@debug}" maxRowCount="{@maxRowCount}">
		select A.USERID,B.NAME_JA
				, sum(A.USED_TIME)		AS USED_TIME
				, sum(A.CNT_ACCESS)		AS SUM_ACCESS
				, sum(A.CNT_ERROR)		AS SUM_ERROR
				, sum(A.CNT_READ)		AS SUM_READ
				, sum(A.CNT_WRITE)		AS SUM_WRITE
				, sum(A.TM_TOTAL_QUERY) AS SUM_TOTAL_QUERY
				, max(A.TM_MAX_QUERY)	AS TM_MAX_QUERY
				, A.USERADRS
				, A.HOSTADRS
		from GE15 A left outer join GEA10 B
		on      A.SYSTEM_ID = B.SYSTEM_ID
		and     A.USERID    = B.USERID
		and     B.FGJ       = '1'
	<og:where>
		<og:and value = "A.SYSTEM_ID  =    '{@SYSTEM_ID}'"   />
		<og:and value = "A.USERID     =    '{@USERID}'"      />
		<og:and value = "A.DYLOGIN    like '{@DATE}'"       /> 
	</og:where>
	group by A.SYSTEM_ID,A.USERID,B.NAME_JA,A.USERADRS,A.HOSTADRS
	order by A.SYSTEM_ID,{@SORT} A.USERID
</og:query>

<og:viewLink command="{@command}">
	<og:link column="USERID" gamenId="GE0001" href="index.jsp" target="CONTENTS"
		keys="command,SYSTEM_ID,USERID"
		vals="NEW,{@SYSTEM_ID},[USERID]" />
	<og:link column="TM_MAX_QUERY" href="result.jsp" target="RESULT"
		keys="command,SYSTEM_ID,USERID,ACTION,TM_MAX_QUERY"
		vals="NEW,{@SYSTEM_ID},[USERID],GEM0020,[TM_MAX_QUERY]" />
</og:viewLink>

<og:view
	viewFormType = "HTMLTable"
	command      = "{@command}"
	checked      = "{@checked}"
	startNo      = "{@startNo}"
	pageSize     = "{@pageSize}" />
