I have a table named TICKET. Among the columns in ticket are two date fields:
TICKET
----------------------------------------
TICKDATE | ELSDATE | ...
---------------------+-------------+----
yyyy-mm-dd hh:mm:ss yyyy-mm-dd
These two dates should always be the same.
I have a range of dates (from 7/1 to current) where ELSDATE is null. I'm just starting out in sql scripting, and I don't know how to update one column to equal the other. The current script I'm running to update one day at a time is:
update TICKET ELSDATE="yyyy-mm-dd" where date(TICKDATE)="yyyy-mm-dd"
I assume I'd be able to do something like:
update TICKET where ELSDATE="???" date(TICKDATE)<date("2015-09-29")