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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CONVERT TIMESTAMP IN Query

Status
Not open for further replies.

nread

Technical User
Oct 31, 2001
58
GB
Hi

Does anyone know how i can select a substr() of a timestamp field...?

The data within the field is stored as
12-JUL-04 10.00.36.000000 AM and i need to pull out certain records within a particular time period.

Thanks for any help provided.

N
 
The data is the field is not stored in that format, it is simply displayed in that format as defined by your DBAs.

You can select records [tt]WHERE To_Char(Date_column,'HH24:MI:SS') BETWEEN '12:00:00' AND '13:00:00'[/tt] for example.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top