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: Couple of questions about Paradox Query and Reports
- Message-ID: <C0GIE9.D6r@ccu.umanitoba.ca>
- Sender: news@ccu.umanitoba.ca
- Nntp-Posting-Host: ccu.umanitoba.ca
- Organization: University of Manitoba, Winnipeg, Canada
- Date: Wed, 6 Jan 1993 23:54:09 GMT
- Lines: 40
-
-
- Hello,
- I am having trouble with achieving a few results in Paradox query and report.
- I would appreciate any help on it.
-
- 1. Pertaining to Query...
- I have a table giving sale figures. There is a "date of sale" and customer
- field in every record--along with the "sale" figure (in dollars). For a report
- I want to know the total sales for every customer for last month and same month
- in last year (for comparison purposes, so e.g. for Dec-1992 and Dec-1991). I
- link Sales table with Customer table using example elements. Right now I am
- using two queries--one to find "calc sum" for 'sales' for Dec-1992 and other
- for finding "calc sum" for 'sales' for Dec-1991. But I want to do it in one
- query so that Paradox finds sum of sales (calc sum) for a given date range
- and in the same query finds sum of sales (calc sum--in the same field!) for
- another date range and displays both results in different columns.
- How can I do that. I tried to work along the example
- query in Paradox users manual pp.77, Example 5-28. I do get results in two
- columns but for some weird reason every sale figure gets added up TWICE. i.e
- if the total for customer 100 is $1000, it will show up to be $2000. I would
- really appreciate any help I can get on this.
-
- 2. Pertainig to Report...
- How can I find sum of the calculated fields? I mean how do I refer to a
- calculated field in another calculated field? I have two columns of
- sales figures in the report. First column is sale figures for this month
- and second column is sales figures for last year. There is a third column
- that contains calculated fields and lists the difference in figures in
- each of row of previous tow columns ([first col] - [second col]). Now
- as the end of report I want the sum of each column. Each column whose
- fields came from a table can be easily summed up using summary function but
- how can I add up a column of calculated fields (as the 'difference' col
- described above).
-
- I thank you for your help in advance.
-
- regards,
- --nasir
- umnoor@ccu.umanitoba.ca
-
-