Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21238

get latest date

$
0
0
I have this table transdate column for date on format mm/dd/yyyy hh:mm:ss and this transtype column related to transdate.

I would like to get the latest date encoded and corresponding transtype? is it right to use the max() function? though I tried and yes it gets the latest date in the column but wrong transtype.

my query is:
SELECT Max(transdate) AS MaxOftransdate, Max(transtype) AS MaxOFtranstype
FROM Table1;

Viewing all articles
Browse latest Browse all 21238

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>