I have query with Inner Join
.
Query 1:
select *
from vehicle_models vmodel
Inner join ogpo_voilure_model md on md.Name = vmodel.VEHICLE_MODEL
Now, i Need data that not exists in these id. With another word - opposite Inner JOIN
.
I tried to make query that I need, but not successfull.
Query 2:
Select top 500 *
from ogpo_voilure_model md
Where md.id not in
(
select md.id
from Novelty.dbo.vehicle_models vmodel
Inner join [ogpo_voilure_model] md on md.Name = vmodel.VEHICLE_MODEL
)
I find in StakOverflow
answer like this(sixth example). But my fields are not NULL
.
How I can achieve it?