Try this ( in SQL server environment):

Select   Top 5 
   C1, C3 (list of fields)

FROM      t204 (helpdesk table id)

where Dateadd(ss,C3,'1/1/1970 00:00:000')> '10/1/2006'


HIH,
Jason Niu

Remedy Skilled Professional
GETS - Enterprise Systems Management 
Alliance Bernstein

-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Joran, Peter P CTR OSD CIO
Sent: Thursday, October 19, 2006 2:10 PM
To: arslist@ARSLIST.ORG
Subject: Re: [ARSLIST] Query question

I need to put in a Crystal report.

-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of George Barsan
Sent: Thursday, October 19, 2006 2:05 PM
To: arslist@ARSLIST.ORG
Subject: Re: Query question


How do you want to present the results, probably in a table? In that
case
you could sort the records based on the timestamp and limit the chunk
size
to 5..

George

On 10/19/06, Joran, Peter P CTR OSD CIO <[EMAIL PROTECTED]> wrote:
> **
>
> All
> This seems like a very simple question but I'm stumped.
> How can I return just the oldest 5 records from a query? It's a metric
> that is almost useless but the customer is not budging.
>
> Many Thanks!
> Pete __20060125_______________________This posting was submitted with
> HTML in it___
>

________________________________________________________________________
__
_____
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org

________________________________________________________________________
_______
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org

-----------------------------------------
The information contained in this transmission may be privileged and
confidential and is intended only for the use of the person(s) named
above. If you are not the intended recipient, or an employee or agent 
responsible
for delivering this message to the intended recipient, any review, 
dissemination,
distribution or duplication of this communication is strictly prohibited. If 
you are
not the intended recipient, please contact the sender immediately by reply 
e-mail
and destroy all copies of the original message. Please note that we do not 
accept
account orders and/or instructions by e-mail, and therefore will not be 
responsible
for carrying out such orders and/or instructions.  If you, as the intended 
recipient
of this message, the purpose of which is to inform and update our clients, 
prospects
and consultants of developments relating to our services and products, would not
like to receive further e-mail correspondence from the sender, please "reply" 
to the
sender indicating your wishes.  In the U.S.: 1345 Avenue of the Americas, New 
York,
NY 10105.

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org

Reply via email to