Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

joining recordsets: possible?

Status
Not open for further replies.

cwarner

Programmer
May 9, 2003
46
0
0
GB
is it possible to join recordsets?

if not, can I create temporary tables
and join them?

should I use the 'SELECT INTO' to create
a temporary table?

any sample code would be great, thanks in advance!

-Christy-
 
You might want to learn about UNION queries. It's a way of combining two tables; you can open a recordset based on a union query.

Here's some sample SQL from a union query I used recently:
[tt]
SELECT EmpName, EmpID, SS_Number, TermDate, Date, Points, EmpAutoNumID, AwardName, Step FROM Report_EmployeeAwards
UNION ALL SELECT EmpName, EmpID, SS_Number, TermDate, Date, Points,EmpAutoNumID, "Payment", null FROM Report_EmployeeWithdrawals
ORDER BY EmpName, Date;
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top