Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
i have an sql table, i want to find the records where year is entered improperly ie 1999 is entered as 19999 the typing error and similar examples
Posted

You can go for regular expressions to achieve tat.
Can check the expression by providing it in the create statement its will do tat.
 
Share this answer
 
SQL
Select * from tablename where not datecolumn between '1900/1/1' and '2011/12/29' 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900