• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Get all records updated in last 15 minutes

Participant ,
May 23, 2014 May 23, 2014

Copy link to clipboard

Copied

I need to query and get all records that have been updated in the past 15 minutes.

Ive tried in CF and MS SQL

Here is what I have that doesn't work

SELECT *    FROM  job_clock WHERE  Job_Time_Out >  dateadd(minute,-15,CURRENT_TIMESTAMP)

Views

700

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 23, 2014 May 23, 2014

Copy link to clipboard

Copied

LATEST

Are you sure Job_Time_Out is a date? Try the alternative,

SELECT * FROM  job_clock WHERE Job_Time_Out > dateadd(minute,-15,getdate())

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation