Please give me right answer for this question
This is the table time_names and its structure:
time_id time_name
------- ----------
1 5:00 AM
2 5:15 AM
3 5:30 AM
4 5:45 AM
5 6:00 AM
6 6:15 AM
... .....
... .....
70 10:15 PM
71 10:30 PM
72 10:45 PM
73 11:00 PM
74 11:15 PM
75 11:30 PM
76 11:45 PM
time_id is INT, time_name is varchar datatype.
Here I want show only 8:30 AM to 11:00 PM between all data
Please give me any query
Since you’re on SQL Server 2008, you can simply cast the
time_nameto aTIMEdatatype:But seriously: if you store a time value – WHY aren’t you using the appropriate
TIMEdatatype for it??