Link to home
Start Free TrialLog in
Avatar of erikTsomik
erikTsomikFlag for United States of America

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>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of JesterToo
JesterToo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I would appreciate it if you would explain why you decided this answer merited a grade of "B".