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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UNION Command Question

Status
Not open for further replies.
Jun 12, 2009
123
GB
Hi All

I am new to oracle sql and wanted to know about the union command.

for example you have

select a.field1, a.field2, a.field3
from product a

union

select b.field1, b.field2, b.field3
from product1 b

The resultset is a distinct, i.e. I am correct in thinking all 3 fields have to be the same for the distinct record to show?

Many Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top