Brug NOT EXISTS
for at hente output, hvor der for forskellige projektnavne ikke er matchende rækker baseret på detaljer og version:
select *
from project_details p1
where not exists (
select 1
from project_details p2
where p1.project_name <> p2.project_name
and p1.project_detail = p2.project_detail
and p1.project_version = p2.project_version
)
SQL Fiddle for at se, hvordan det fungerer live.
Output
project_name project_detail project_version
---------------------------------------------------
project_2 php_mysql_jquery 1.0
project_2 php_mysql 4.0