If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > SQL queries - about date

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-18-04, 02:41
edyes edyes is offline
Registered User
 
Join Date: May 2004
Posts: 1
SQL queries - about date

Hi there I need some help with a query.
I've got a system which called Helpdesk system that log user's complaint.
I need to beable to run a Query to find out if any of the complaint that loged over than 10 days.

if any one has any ideas PLEASE HELP!
thanks for advance
Kind Regards

Edy
Reply With Quote
  #2 (permalink)  
Old 05-18-04, 03:09
Littlefoot Littlefoot is offline
Lost Boy
 
Join Date: Jan 2004
Location: Croatia, Europe
Posts: 3,629
SELECT [column_list]
FROM your_table
WHERE date_column >= SYSDATE - 10;
Reply With Quote
  #3 (permalink)  
Old 05-18-04, 08:29
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
Date arithmetic syntax isn't standardized across database engines. Which database engine do you plan to use?

-PatP
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On