troubleshooting Question

How can I combine SQL select by columns?

Avatar of dgloveruk
dgloveruk asked on
Microsoft SQL Server
13 Comments2 Solutions214 ViewsLast Modified:
I would like to combine results from a number of tables/queries to produce the table shown in ResultsD.
Please note I am limited to SQL server 2000.
The tables are not related and the fields in the rows in the output ResultsD are therefore not related to each other.

ResultsA
1
2
3
4

ResultsB
Apple
Pear
Lemon

ResultsC
1.0
3.0
5.0
6.0
7.0

ResultsD
1                Apple        1.0
2                Pear          3.0            
3                Lemon      5.0
4                Null           6.0
Null           Null           7.0
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 13 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 13 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros