× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



With the subject referencing last date/time and the text referencing status
I'm not real clear on what is being requested.

On Thu, Oct 18, 2018 at 3:00 PM Alan Shore <ashore@xxxxxxxx> wrote:

Maybe, maybe not
The sample data may be TOO simplistic
Question - for each DID Num, can there be multiple instances of the same
status
In which case - do you want the earliest or the latest instance of the
record?
The examples below - for the same DID Num - there is more than one record
for the same date and time, but different Status

Alan Shore
E-mail : ASHORE@xxxxxxxx
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
'If you're going through hell, keep going.'
Winston Churchill

-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
Art Tostaine, Jr.
Sent: Thursday, October 18, 2018 3:52 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: [EXTERNAL] Re: SQL question to retrieve last date/time

Crikey. It's as simple as MAX with a group by?

Art

On Thu, Oct 18, 2018 at 3:40 PM Art Tostaine, Jr. <atostaine@xxxxxxxxx>
wrote:

I have a table that has 3 keys, numeric "reckey", date,time.status code.
The table is basically a tracking table for a pick ticket# through the
warehouse.

I want to retrieve the only the highest status record for each numeric
key. Some sample data:

DID Num Entry Date Time Status
Code
15612285 2017-08-31 2150 10.0
15612285 2017-08-31 2150 15.0
15640946 2017-08-31 2150 15.0
15696150 2017-09-14 1027 5.0
15696150 2017-09-14 1027 6.0
15696150 2017-09-14 1027 7.0

Thank you for any help.
--
Art Tostaine



--
Art Tostaine
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.