Link to home
Start Free TrialLog in
Avatar of WeTi
WeTi

asked on

SQL Query

Dear Expert,

SQL Query question:
SELECT [InsertTime],[FirstName],[LastName]
FROM [Prod].[Data].[IncomingUpdate]
WHERE InsertTime IN (2011-11-12-22:33)
PRINT @@ROWCOUNT

This will show in the database every row in the column InsertTime that have text: 2011-11-12-22:33
Now the data come in around date 2011 november 20 clock time 22:33, clock time is hard coded in the application, I can't do anything there, It would be nice if it only shows date, that however is not the case, is it possible to query 2011-11-12? I tried to put: WHERE InsertTime IN (2011-11-12) It didnt work tho.

Regards
ASKER CERTIFIED SOLUTION
Avatar of Ares Kurklu
Ares Kurklu
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of WeTi
WeTi

ASKER

Yes it worked, thank you.