sql - Multiple Join on the same table-Oracle -


enter image description here

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

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -