Link to home
Start Free TrialLog in
Avatar of zebasdad
zebasdad

asked on

Merge two tables in select query, vfp, oledb

How do I combine two tables into one query?  the tables are exact... so it's not a parent/child situation... the tables are current/archived data... when the user selects a date which falls into the archived data range... I would like to pull that data, in addition to any data n the current file which may also fall into the users selected date rage.  I'm using a VFP-OLEDB connection in asp.net page... (vb)...

I'm trying to populate a grid... then a crystal report... if the user desires to print.

Something like select * from table1, table2 where dateshipped => etc...
ASKER CERTIFIED SOLUTION
Avatar of raterus
raterus
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zebasdad
zebasdad

ASKER

THANKS!  You save me some time... I searched for a similiar solution for hours... here's what worked...

Select shipdate, date_in, orderno from orders where shipdate => bDate and shipdate =< eDate UNION select shipdate, date_in, orderno from aorders where shipdate => bDate and shipdate =< eDate