Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

timestamp filter

Status
Not open for further replies.

NigeB

Technical User
Nov 29, 2000
53
0
0
GB
Is there a way to filter a timestamp? Specifically I would like to filter all rows with a timestamp that relate to a time before 12 noon, the date is irrelevent in this particular query.

TIA

NigeB
 
Assuming you're dealing with a standard TIMESTAMP field, you could use:
[tt]
WHERE SUBSTRING(ts,9,2)<'12'[/tt]



-----
ALTER world DROP injustice, ADD peace;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top