Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Report on live and archive data Post Reply Post New Topic
Author Message
Johny_Mc
Newbie
Newbie


Joined: 30 Oct 2013
Location: United Kingdom
Online Status: Offline
Posts: 4
Quote Johny_Mc Replybullet Topic: Report on live and archive data
     Posted: 30 Oct 2013 at 10:32pm

Hi All,  In our database we archive the main table once the records are 100 days old.  The archive table is identical to the live table in structure.  Is it possible to create a report to do trending over a full year which would pull data from the live and the archive table.  The records are split approximately 3 months in one table and 9 months in the other. I would like show trends over the full year.

 

TIA John

IP IP Logged
Sastry
Moderator
Moderator
Avatar

Joined: 16 Jul 2012
Online Status: Offline
Posts: 537
Quote Sastry Replybullet Posted: 31 Oct 2013 at 2:19am
hI
 
This is possible by creating Add command (writing free hand sql) like
 
Select * from Archive
union
Select * from Live
 
Now you get data from both tables into report, now apply all your conditions and requirements to get trends using both data.
Thanks,
Sastry
IP IP Logged
Johny_Mc
Newbie
Newbie


Joined: 30 Oct 2013
Location: United Kingdom
Online Status: Offline
Posts: 4
Quote Johny_Mc Replybullet Posted: 31 Oct 2013 at 3:26am

That works a treat, thanks for your help.

 

John

IP IP Logged
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