<og:query command="{@command}" debug="{@debug}" maxRowCount="{@maxRowCount}">
	select B.SYSTEM_ID,B.CLM,
			B.LNAME AS BEFORE,'{@ARROW}',A.NAME_JA AS AFTER
	from  GEA08 A inner join GEA08 B
	on    A.CLM       = B.CLM
	and   A.NAME_JA  != B.LNAME
	where A.SYSTEM_ID = '{@SYSTEM_ID}'
	and   B.SYSTEM_ID = '{@SYSTEM_ID}'
	and   A.KBSAKU   != '0'
	and   B.KBSAKU   != '0'
	and   A.LANG      = 'ja'
	and   B.LANG      = 'ja'
	and   A.FGJ       = '1'
	and   B.FGJ       = '1'
</og:query>

<og:value key="lblKey" value="C" />

<og:hidden name="SQL">
	UPDATE GEA08 SET
			LNAME      = [AFTER],
			DYUPD      = '{@USER.YMDH}',
			USRUPD     = '{@USER.ID}',
			PRGUPD     = '{@GUI.KEY}'
	WHERE SYSTEM_ID = [SYSTEM_ID]
	AND   LANG      = 'ja'
	AND   CLM       = [CLM]
</og:hidden>
