hi - thanks for looking.
would you please help me with the following sql statement using sqlite?
table d
ID int
trxDate text
(no records in table - the text field is a string of date/time)
table t
ID int
trxDate text
values for table t:
1, '11/15/2017 13:41'
2, '11/15/2017 13:45'
i need the following:
max of the date/time from table d. if it is null, return the max date/time from table t. if that is null, return the current date/time.
i tried to use the IFNULL function, but the second part of the function doesn't seem to be able to have a new SELECT statement within it.
any help would be appreciated.... thank you.
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Expert of the Year award recognizes an expert who helped improve Experts Exchange in the past year through high levels of contributions and participation on site. This award is given to the expert who has achieved the highest levels of participation, while maintaining quality contributions and professionalism.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.