0

How cn i find employee details,those were join in june month...pls ans it

17th Dec 2016, 5:15 AM
Debasis Sahoo
Debasis Sahoo - avatar
5 Respostas
+ 1
SELECT * FROM Employees WHERE CAST(JoinDate AS DATE) BETWEEN CAST('2016-06-01' AS DATE) AND CAST('2016-06-30' AS DATE) This of course assumes your table is named "Employees" and your join date column is named "JoinDate". Using this format ensures that a proper match will be made whether your table's date is in standard format or not by forcing all dates involved into the same format.
17th Dec 2016, 6:09 AM
Matthew Shephard
Matthew Shephard - avatar
0
bro not execute :(
17th Dec 2016, 5:39 AM
Debasis Sahoo
Debasis Sahoo - avatar
0
Can you describe what table structure do you have?
17th Dec 2016, 5:41 AM
Ivan G
Ivan G - avatar
0
I don't have any table structure,u pls write any queries that should be execute only
17th Dec 2016, 5:50 AM
Debasis Sahoo
Debasis Sahoo - avatar
- 1
Hm... Select * from employees where month = 6 ?
17th Dec 2016, 5:35 AM
Ivan G
Ivan G - avatar