I have table that contain employee info now i want to display Employee info who have joined before 2000-2-5
What Query should i Write
I have written Select * From Empinfo where Dataofjoining> 2000-2-5
But it's displaying the all the employee beore 2000-2-5.
Please help me.
I have written Select * From Empinfo where Dataofjoining> 2000-2-5
But it's displaying the all the employee beore 2000-2-5.
Please help me.

VulpesRank #55 · 29.2K reputationPosted Dec 26, 2012, 6:52 AM EST
Select * From Empinfo where Dateofjoining < '20000205'
Akkiraju IvaturiRank #473 · 5.3K reputationPosted Dec 26, 2012, 6:57 AM EST
Select * From Empinfo where Dataofjoining < '2000-2-5'
Dates should be enclosed in single quotes and you can use >, <, = and between operators for date comparisons.
Pranjal Mishra58 reputationPosted Dec 26, 2012, 5:57 PM EST
Abdu RafeeqRank #2,262 · 623 reputationPosted Jan 1, 2013, 6:54 AM EST