Results 1 to 3 of 3

Thread: [RESOLVED] How do I do this in SQL Server?

Threaded View

  1. #1

    Thread Starter
    Addicted Member Guru's Avatar
    Join Date
    May 2000
    Location
    sulking in the cupboard under the stairs
    Posts
    237

    Resolved [RESOLVED] How do I do this in SQL Server?

    If I had a table in ACCESS with a date/time column and I wanted all records within the last 24 hours I could do this sort of thing:
    SELECT * FROM Table1 where datediff('n',Field1,now) < 1440

    How do I do this in SQL Server?




    Thanks
    Last edited by Hack; May 1st, 2007 at 06:11 AM. Reason: Added RESOLVED to thread title and green resolved checkmark
    Another light-hearted post from Guru

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width