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 > PC based Database Applications > Corel Paradox > Paradox query

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-09-10, 14:58
HUW_DE HUW_DE is offline
Registered User
 
Join Date: Nov 2003
Posts: 3
Paradox query

I can do nearly everything with Paradox ObjctPal code, but have a simple question about defining a query in paradox itself:
In Short:
======
Table "orders" with fields "customer" and "product",
and table "customers" with field "customer". Each customer has baught several products, some are different, same the same.
I have joined the tables.
I need this information:
How many customers have ordered a certain product?

In details
=======
Table orders:
customer; product
1; A
1; B
2; B
3; A
4; A
4; B

Table customers:
customer
1
2
3
4

Result for this small example:
3 customers have bought product A.
How to define a query for some thousands of customers / orders?


Thank you for a hint!

DB-Sailer
Reply With Quote
  #2 (permalink)  
Old 03-09-10, 19:31
Steve Green Steve Green is offline
Registered User
 
Join Date: Dec 2007
Posts: 273
| Customer | Product |
| Check | A |

this is essentially "queries 101".. if you need to ask this, you really need to stop and learn queries.. this is the heart and soul of paradox..
__________________
--
Steven Green - Myrtle Beach, South Carolina USA

http://www.OasisTradingPost.com

Oasis Trading Post
- Collectibles and Memorabilia
- Vintage Lego Sets and Supplies
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

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