Connecting Tech Pros Worldwide Help | Site Map

Report From Table - Unique Records in Several Tables

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 11:56 PM
Joanna Epstein
Guest
 
Posts: n/a
Default Report From Table - Unique Records in Several Tables

I have several tables formatted as follows:

ITEM #, ITEM DESCRIPTION, PL, JANUARY
ITEM #, ITEM DESCRIPTION, PL, FEBRUARY

And so on… I need to create a final report that merges all of the
information from these tables to form a tabular report reflecting the
information for all items for each month. However, the items in the
item number field are not identical. How can I make my report include
information for an item that does not appear on all of my tables?

  #2  
Old November 12th, 2005, 11:57 PM
Pieter Linden
Guest
 
Posts: n/a
Default Re: Report From Table - Unique Records in Several Tables

joannaepstein@yahoo.com (Joanna Epstein) wrote in message news:<6d657ecc.0406171456.4b7aac3e@posting.google. com>...[color=blue]
> I have several tables formatted as follows:
>
> ITEM #, ITEM DESCRIPTION, PL, JANUARY
> ITEM #, ITEM DESCRIPTION, PL, FEBRUARY
>
> And so on? I need to create a final report that merges all of the
> information from these tables to form a tabular report reflecting the
> information for all items for each month. However, the items in the
> item number field are not identical. How can I make my report include
> information for an item that does not appear on all of my tables?[/color]

if your tables have the same structure, create a union query and then
base your report on that. BTW, if your tables all have the same
structure, why are they separate?
  #3  
Old November 12th, 2005, 11:57 PM
Joanna Epstein
Guest
 
Posts: n/a
Default Re: Report From Table - Unique Records in Several Tables

pietlinden@hotmail.com (Pieter Linden) wrote in message news:<bf31e41b.0406171934.38ee06b6@posting.google. com>...[color=blue]
> joannaepstein@yahoo.com (Joanna Epstein) wrote in message news:<6d657ecc.0406171456.4b7aac3e@posting.google. com>...[color=green]
> > I have several tables formatted as follows:
> >
> > ITEM #, ITEM DESCRIPTION, PL, JANUARY
> > ITEM #, ITEM DESCRIPTION, PL, FEBRUARY
> >
> > And so on... I need to create a final report that merges all of the
> > information from these tables to form a tabular report reflecting the
> > information for all items for each month. However, the items in the
> > item number field are not identical. How can I make my report include
> > information for an item that does not appear on all of my tables?[/color]
>
> if your tables have the same structure, create a union query and then
> base your report on that. BTW, if your tables all have the same
> structure, why are they separate?[/color]

The tables have been exported from several different Crystal Reports.
The reason they are seperate is irrelevant - I just need assistance
making a tabluar report with a column for each month. (Also, in the
future, other information will most likely get added from tables with
a different format.) When I tried to make a union of these seperate
tables, the report excluded information that was unique to each table.
(ie: item numbers that appear in some month but not all.) Any useful
assistance would be greatly appreciated.
  #4  
Old November 12th, 2005, 11:58 PM
Pieter Linden
Guest
 
Posts: n/a
Default Re: Report From Table - Unique Records in Several Tables

joannaepstein@yahoo.com (Joanna Epstein) wrote in message news:<6d657ecc.0406180511.5ffce640@posting.google. com>...[color=blue]
> pietlinden@hotmail.com (Pieter Linden) wrote in message news:<bf31e41b.0406171934.38ee06b6@posting.google. com>...[color=green]
> > joannaepstein@yahoo.com (Joanna Epstein) wrote in message news:<6d657ecc.0406171456.4b7aac3e@posting.google. com>...[color=darkred]
> > > I have several tables formatted as follows:
> > >
> > > ITEM #, ITEM DESCRIPTION, PL, JANUARY
> > > ITEM #, ITEM DESCRIPTION, PL, FEBRUARY
> > >
> > > And so on... I need to create a final report that merges all of the
> > > information from these tables to form a tabular report reflecting the
> > > information for all items for each month. However, the items in the
> > > item number field are not identical. How can I make my report include
> > > information for an item that does not appear on all of my tables?[/color]
> >
> > if your tables have the same structure, create a union query and then
> > base your report on that. BTW, if your tables all have the same
> > structure, why are they separate?[/color]
>
> The tables have been exported from several different Crystal Reports.
> The reason they are seperate is irrelevant - I just need assistance
> making a tabluar report with a column for each month. (Also, in the
> future, other information will most likely get added from tables with
> a different format.) When I tried to make a union of these seperate
> tables, the report excluded information that was unique to each table.
> (ie: item numbers that appear in some month but not all.) Any useful
> assistance would be greatly appreciated.[/color]

If you have other fields that are unique to individual tables, but
still want to include this data in your query result, you'll have to
put in a placeholder, like a null, in that column... otherwise your
sets won't be fully union-compatible.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.