Click to See Complete Forum and Search --> : help to build SQL Query


anantwakode
June 21st, 2005, 02:08 AM
Hi
I want to retrive records from table,
name value date
aaa 20 10/10/2005 10:10:20
bbb 20 10/10/2005 10:10:20
ccc 20 10/10/2005 10:10:21
ddd 20 10/10/2005 10:10:22
eee 20 10/10/2005 10:10:22
aaa 20 10/10/2005 10:10:22

i want the records with time difference 1,2.. minute or hour, or date

Tahnks,
Anant

hspc
June 21st, 2005, 03:04 AM
i want the records with time difference 1,2.. minute or hour, or date difference from what ? the current time ?
What database do you use ?
Anyway..Check the DateDiff function in MSDN..