jag har två tabeller county och userCounty <code> det blir fel, jag får ut massor med rader. Jag kan inte peka på exakt vad det är som blir felMer selectproblem
county innehåller countyID och county. userCounty innehåller userCountyID, countyID och userID.
Nu vill jag plocka ut alla county från county som inte finns i userCounty. Hur skriver jag denna sql?Sv: Mer selectproblem
SELECT * FROM county WHERE NOT countyID IN (SELECT countyID FROM userCounty)
</code>Sv:Mer selectproblem
---------------EDIT-----------------
Det fungerar fint. Jag skrev ett litet fel.