dbTalk Databases Forums  

Query help please

comp.databases.paradox comp.databases.paradox


Discuss Query help please in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Trevor Guy
 
Posts: n/a

Default Query help please - 09-08-2010 , 07:03 AM






Hi,



It ages since I did anything with Paradox and I have what I think is silly
problem that I just can't get my head around.



I have a 60k record table with two fields, ProductCode and DateSold; there
are many entries for each ProductCode with the corresponding date of sale.
I want to query the table to produce a results table giving the ProductCode
and the most recent DateSold for each product.



I'm sure this should be easy but I'm damned if I can see how to do it, can
any help?



Regards,

Trevor

Reply With Quote
  #2  
Old   
Aahz
 
Posts: n/a

Default Re: Query help please - 09-08-2010 , 02:52 PM






In article <fYKho.114916$ki7.92091 (AT) newsfe24 (DOT) ams2>,
Trevor Guy <trevor (AT) ewh (DOT) co.uk> wrote:
Quote:
It ages since I did anything with Paradox and I have what I think is silly
problem that I just can't get my head around.
Ditto, but I can help you (hopefully) based on my SQL...

Quote:
I have a 60k record table with two fields, ProductCode and DateSold; there
are many entries for each ProductCode with the corresponding date of sale.
I want to query the table to produce a results table giving the ProductCode
and the most recent DateSold for each product.
In SQL terms, what you want is max(DateSold), but I have no clue how to
execute this with Paradox.
--
Aahz (aahz (AT) pythoncraft (DOT) com) <*> http://www.pythoncraft.com/

[on old computer technologies and programmers] "Fancy tail fins on a
brand new '59 Cadillac didn't mean throwing out a whole generation of
mechanics who started with model As." --Andrew Dalke

Reply With Quote
  #3  
Old   
Bill McCray
 
Posts: n/a

Default Re: Query help please - 09-09-2010 , 09:14 AM



On 8 Sep 2010 12:52:54 -0700, Aahz wrote:

Quote:
In article <fYKho.114916$ki7.92091 (AT) newsfe24 (DOT) ams2>,
Trevor Guy <trevor (AT) ewh (DOT) co.uk> wrote:

It ages since I did anything with Paradox and I have what I think is silly
problem that I just can't get my head around.

Ditto, but I can help you (hopefully) based on my SQL...

I have a 60k record table with two fields, ProductCode and DateSold; there
are many entries for each ProductCode with the corresponding date of sale.
I want to query the table to produce a results table giving the ProductCode
and the most recent DateSold for each product.

In SQL terms, what you want is max(DateSold), but I have no clue how to
execute this with Paradox.
I just tried "Calc Max" in a QBE and it worked.

Bill

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.