LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 593
Default Microsoft Query: retrieve data by dates


Raminhos wrote:
Hi,

Thanks again for helping with this. To be honest, I've decided to

just pull
all the data into Excel and manipulate it from there.


Shame. I was just about to suggest something like this:

SELECT Copy_Of_Closed_."_2", Copy_Of_Closed_."_4",
Copy_Of_Closed_."_8", Copy_Of_Closed_.BriefDesc,
Copy_Of_Closed_.Caller, Copy_Of_Closed_.Category,
Copy_Of_Closed_.Channel, Copy_Of_Closed_.Module, Copy_Of_Closed_.Ref,
Copy_Of_Closed_.Solution, Copy_Of_Closed_.Version, Copy_Of_Closed_."_2"
FROM Copy_Of_Closed_
WHERE Copy_Of_Closed_."_2" BETWEEN (CURRENT_TIMESTAMP-8) AND
CURRENT_TIMESTAMP;

CURRENT_TIMESTAMP is the ANSI standard way of getting the current
date/time so has the best chance of being understood by your DBMS. Some
don't adhere to the standards and have their own proprietary syntax
e.g. with MS Access/Jet you one must use NOW().

Jamie.

--

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
write a query to retrieve data query New Users to Excel 1 March 17th 06 06:01 PM
Microsoft Query: retrieve data by dates Raminhos Excel Programming 1 February 4th 05 05:02 PM
Use ADO to retrieve data from Access Parameter Query CodeMonkey Excel Programming 3 December 17th 04 08:45 PM
Using a saved query to retrieve data from different sources Gary Hall[_2_] Excel Programming 1 November 11th 04 11:01 AM
Microsoft Query & Dates from Oracle Matt D. Excel Programming 4 May 26th 04 02:52 PM


All times are GMT +1. The time now is 03:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"