That gives me a combined list of records, but it does not give me a COMPOSITE of the records.
Main Topics
Browse All TopicsI have 2 Views.
VW1 has these fields and values:
Analyst_Name Apps_Cat_ID Instance_Number Tasks_With_No_Phase_Checke
John 11111 11111-01 3
John 22222 22222-01 2
Suzy 33333 33333-01 5
VW2 has these fields and values:
Analyst_Name Apps_Cat_ID Instance_Number Tasks_With_No_Hours
John 55555 55555-01 7
Suzy 33333 33333-01 2
Zeus 77777 77777-01 40
VW1 may have records where Analyst_Name, Apps_Cat_ID and Instance_Number match records in VW2, or it may have records where there is no match in VW2, or it may not have any records at all.
VW2 may have records where Analyst_Name, Apps_Cat_ID and Instance_Number match records in VW1, or it may have records where there is no match in VW1, or it may not have any records at all.
I need a query that will produce the following result - a composite of the two views:
Analyst_Name Apps_Cat_ID Instance_Number Tasks_With_No_Phase_Checke
John 11111 11111-01 3 0
John 22222 22222-01 2 0
John 55555 55555-01 0 7
Suzy 33333 33333-01 5 2
Zeus 77777 77777-01 0 40
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
This appears to be what I need...
select Analyst_Name, Apps_Cat_ID, Instance_Number, SUM(Tasks_With_No_Phase_Ch
Business Accounts
Answer for Membership
by: joaoalmeidaPosted on 2009-10-28 at 09:53:23ID: 25685372
select Analyst_Name, Apps_Cat_ID, Instance_Number, Tasks_With_No_Phase_Checke d, 0 FROM VW1
UNION
select Analyst_Name , Apps_Cat_ID, Instance_Number, 0, Tasks_With_No_Hours FROM VW2