home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!newsflash.concordia.ca!mizar.cc.umanitoba.ca!umnoor
- From: umnoor@ccu.umanitoba.ca (Nasir Ahmed Noor)
- Subject: A question about Paradox Query
- Message-ID: <C0IG59.KvL@ccu.umanitoba.ca>
- Sender: news@ccu.umanitoba.ca
- Nntp-Posting-Host: asimov.cc.umanitoba.ca
- Organization: University of Manitoba, Winnipeg, Canada
- Date: Fri, 8 Jan 1993 01:00:44 GMT
- Lines: 21
-
-
- Hi,
- I have to do a query on two tables. One is sales that lists sales for a given
- month by date and other is customer. I want to find out sales for customers
- for the last month and for the same month from last year (e.g. Jan-93 and
- Jan-92). I link customer table with sales using example elements. I want the
- results of query to show up in different columns, i.e., sales for last month
- should be in different column and for the same month from last year in
- different column. How can I do that. I tried to do it as following but it
- gives me wrong results. I have noticed that every sale figure gets added up
- more than once in result. Following is my query....
- Customer: Field [Customer #]
- Check <example element>A!,<example element>B!
-
- Sales: Field [Date] Field [Customer #] Field [Sale]
- >=date1,<=date1a <example element>A calc sum
- >=date2,<=date2a <example element>B calc sum
-
- I would appreciate your help,
- --nasir
- umnoor@ccu.umanitoba.ca
-