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!

Creating a view

Status
Not open for further replies.

Viguela

Programmer
Mar 26, 2001
3
0
0
US
I would like to create a view of some records but in a certain time frame (between 2 dates).
Anyone knows the script?
I've been trying but always with errors.
HELP.
 
Here's a script which retrieves yourdatefield from 1/1/1980 to 1/1/1985.

CREATE VIEW date_range_view AS
SELECT * FROM yourtable
WHERE yourdatefield BETWEEN '1/1/1980' AND '1/1/1985'

Andel
andelbarroga@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top