Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Bringing in field that is not null Post Reply Post New Topic
Author Message
db3712
Groupie
Groupie
Avatar

Joined: 30 Oct 2008
Location: United States
Online Status: Offline
Posts: 44
Quote db3712 Replybullet Topic: Bringing in field that is not null
    Posted: 06 Oct 2009 at 11:58am
Hello,
We just upgraded our service software \ database.  The location of one of our fields changed during this process.  Any new order will place data in this new field.  Any existing orders will still have data in the old field.  The two fields are located in two different tables.  I'm trying to bring the data into a report regardless of where it resides, old or new.  Only one of these fields will have data in it based on when the order was created, before or after the transition.  Any ideas?  Appreciate it.
IP IP Logged
Jyothi Yepuri
Senior Member
Senior Member


Joined: 11 May 2009
Location: Australia
Online Status: Offline
Posts: 127
Quote Jyothi Yepuri Replybullet Posted: 06 Oct 2009 at 4:18pm
try union of two tables and use same alias

select field AS ORDER
from oldtable
where orderdate <='date here'

union

select field AS ORDER
from newtable
where orderdate >='date here'

HTH,
Jyothi
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.047 seconds.