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

MM/DD/YY Formate Year Restricted SQL 1

Status
Not open for further replies.

rmz8

Programmer
Aug 24, 2000
210
US
In the date format MM/DD/YY how can I make a SQL statement that only returns records with the year 01?

Thanks in advance.

Ryan ;-]
 
try putting this in your query:

SELECT fieldName
FROM tableName
WHERE dateField LIKE '%01'

"%" is something like a wild card and this should return all the values that end with "01";
 
Thanks sylvano!

Ryan ;-]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top