|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
I can read in the manual that these nested queries cannot be made. However there is no example on how to solve my problem w/o nesting:
select * from product where prodId not in (select catProdId from categoryMember) What I want, obviously, is to show all products not being member of any category. Thnx for any tips, /erik |
|
#2
|
|||
|
|||
|
It is possible to rewrite this subselect as a left join....
select product.* from product LEFT JOIN categoryMember ON product.prodID=categoryMember.catProdID WHERE categoryMember.catProdID IS NULL; |
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > solve nested .. not in (select ..) ?! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|