0

Last record of every month in SQL

how to find last record of every month in sql

8th Sep 2017, 7:04 AM
Sarang Kamble
1 Antwort
+ 6
Actually, I was reluctant to respond, you didn't even mention your Table name, nor did you explain your table structure, but anyway, you might want to try this: SELECT * FROM yourTable WHERE recordSaveDate = MAX(recordSaveDate); *Note: recordSaveDate is a date, or datetime field. Hth, cmiiw
8th Sep 2017, 7:15 AM
Ipang