PC Review


Reply
Thread Tools Rate Thread

Disjoint reporting

 
 
=?Utf-8?B?cm1pbGxlcjE5ODU=?=
Guest
Posts: n/a
 
      1st Jul 2004
I need to create a disjoint report, and I'm having trouble finding how to do it. I'm creating an invoice in an invoicing application for a trucking company that's a lot like the sample "Northwind" application. In my application, I've got an "invoices" table and an "invoice items" table, which correspond to the "orders" and "order items" tables in the Northwind application. But I've also got a "containers" table, keyed on invoice number like the "invoice items" table, and what I'd like to do is have the first detail column of the invoice have container numbers, and the remainder of the columns have "invoice items" data (description, quantity, price, etc.). There may be more containers than "invoice items," or there may be one container and multiple "invoice items." Not surprisingly, I ended up with a cartesian product with my first attempt, and that definitely won't do!

I know that what I need is a disjoint report, but I'm having a helluva time figuring out the syntax. And I just spent an hour at Barnes and Noble, and none of the SQL books had "disjoint" in the index! Can anybody help me out here?

Another possibility is to spread out the containers in the invoice number footer, so any suggestions as to how to "flatten out" the containers table so that I have one string with all of the container IDs (preferably separated by commas) would be appreciated as well.

Thanks!

Rich
 
Reply With Quote
 
 
 
 
John Vinson
Guest
Posts: n/a
 
      1st Jul 2004
On Wed, 30 Jun 2004 20:50:01 -0700, "rmiller1985"
<rmiller1985atearthlinkdotnet> wrote:

>I need to create a disjoint report, and I'm having trouble finding how to do it. I'm creating an invoice in an invoicing application for a trucking company that's a lot like the sample "Northwind" application. In my application, I've got an "invoices" table and an "invoice items" table, which correspond to the "orders" and "order items" tables in the Northwind application. But I've also got a "containers" table, keyed on invoice number like the "invoice items" table, and what I'd like to do is have the first detail column of the invoice have container numbers, and the remainder of the columns have "invoice items" data (description, quantity, price, etc.). There may be more containers than "invoice items," or there may be one container and multiple "invoice items." Not surprisingly, I ended up with a cartesian product with my first attempt, and that definitely won't do!


It sounds to me like you might want a Report with two Subreports (if
that's what you mean by "disjoint reporting"). There's no way to avoid
the cartesian join in a Query, but the Report object has a great deal
of flexibility, between its Sorting and Grouping feature and the
ability to create Subreports.

John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Emailing disjoint cells =?Utf-8?B?TGFuY2UgUm9iZXJ0cw==?= Microsoft Excel Programming 0 9th Nov 2007 07:02 PM
Using Growth On Disjoint Cells =?Utf-8?B?SnVzdGlu?= Microsoft Excel Worksheet Functions 0 3rd May 2007 10:44 AM
Last Row in Disjoint Range Scott Microsoft Excel Programming 2 20th Dec 2006 05:42 AM
disjoint modifiable recordset? rmanchu@gmail.com Microsoft Access Forms 4 6th Dec 2005 04:11 AM
how do i join 2 domains without being disjoint from any sunith Microsoft Windows 2000 Networking 1 27th Jul 2003 01:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:02 AM.