Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: How to design report with two mirrored tables? Post Reply Post New Topic
Author Message
Alex
Newbie
Newbie


Joined: 28 Jan 2008
Location: Canada
Online Status: Offline
Posts: 22
Quote Alex Replybullet Topic: How to design report with two mirrored tables?
    Posted: 14 Feb 2008 at 8:41am
I am working on report that displays some info from time card tables...
There is table, lets call it Shop_timecards that is linked to Employee table, (on employee ID) and then it displays some data.
Now there is another table called Engineering_time cards that is basically a mirrored Shop_timecards (all columns are the same) for different group (engineers), also linked to Employee_ID table.
I know this can be resolved by creating two subreports one for Shop and another for Engineering... but since table have same structure is there more elegant way to select which table use in one (main) report?
All ideas and tips are appreciated.
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 14 Feb 2008 at 11:31am

If you know some SQL, you could create a command that is a union of the two tables and use that instead of the tables themselves.  Or you could get a little more complex with the command and also link in the Employee_ID table as needed to get all of the results for your report in a single command instead of using any tables.  This will also depend on which database you're using as the ability to add commands is not available for all databases.

-Dell
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.