erikTsomik
asked on
modify cfdquery
I have the query which work just fine. Now i was told to add 1 more column into the table to record first time login. So if the first time login is blank then put current date, if not empty then do nothing . How can i achive this
<cfquery name="putLoggedIn" datasource="cfelsunrise" dbtype="ODBC"> <!--- Update Employee's records --->
update Employee
set LastLoginDate = GetDate(),
FirstLOginDate=<cfif FirstLoginDate eq ''>=GetDate()</cfif>
where EmployeeID = #session.EmpID#
</cfquery>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I would appreciate it if you would explain why you decided this answer merited a grade of "B".