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

using datediff or alternative

New Here ,
Feb 13, 2008 Feb 13, 2008

Copy link to clipboard

Copied

Hi there,

Could someone help with this query? I want to select customers who have viewed a property in the last 14 days.

This is what i tried but not working...it seems to select all customers. Any help would be appreciated.
TOPICS
Advanced techniques

Views

382

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
Advocate ,
Feb 13, 2008 Feb 13, 2008

Copy link to clipboard

Copied

Try this:

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
LEGEND ,
Feb 13, 2008 Feb 13, 2008

Copy link to clipboard

Copied

Different databases have different date functions. You didn't state what you are using.

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
Advocate ,
Feb 13, 2008 Feb 13, 2008

Copy link to clipboard

Copied

LATEST
The CreateODBCDate method I showed above works with MS-SQL, MySQL and Access -- the big three. I have no idea if it works on Oracle (nor do I care; oops, did I type that out loud?)

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