sql - Multiple Join on the same table-Oracle -

i tried below query
select customer.*, electrnicitem.product1 electronicitem1, electrnicitem.product2 electronicitem2, electrnicitem.product3 electronicitem3, apparelitem.product1 apparelitem1, apparelitem.product2 apparelitem2, apparelitem.product3 apparelitem3 customer left join inventory electrnicitem on (customer.customerid = electrnicitem.customerid) left join inventory apparelitem on (customer.customerid = apparelitem.customerid) but returns:
ora-00918 column ambiguously defined
you're missing predicate identify rows in inventory either 'electronic' or 'apparel' 1 thing. not sure that's fix though.
Comments
Post a Comment