Link to home
Start Free TrialLog in
Avatar of aneilg
aneilgFlag for United Kingdom of Great Britain and Northern Ireland

asked on

sql dates

how do i modify the following query
I have the following query bu ti need to get the dat efrom another table,

AND hl.HISTORY_DATE < DATEADD(d,DATEDIFF(d,0, GETDATE()),0)

I wan to do something like
AND hl.HISTORY_DATE < DATEADD(d,DATEDIFF(d,0, SELECT [Extraction_Date] FROM [ELTO_Extraction_Date]),0)

Open in new window

Avatar of TempDBA
TempDBA
Flag of India image

Can you paste the full query?
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg 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 aneilg

ASKER

thanks.