Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

SQL query to list records for today

$
0
0

Dear all,
We have SQL table named Timetable with following

id  day  period  room  subject
1  Monday  1  R101  Maths
2  Monday  2  R103  Physics
3  Monday  3  R111  Biology
5  Monday  4  R102  English
then all way to Friday

Is it possible to do something like this ?

Select * from timetable
Where day = today (convert today's date to day)

Any help would be much appreciated, thank you


Viewing all articles
Browse latest Browse all 4871

Trending Articles



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