MSAccess Inner Join über 2 Tabellen mit Group und Where - Problem

Hallo

Vielen Dank noch einmal für die Hilfe @Yaslaw
Ich habe eine wesentlich besseren SQL gefunden meine Ergebnisse zu bekommen.

SQL:
SELECT 
    distinct objid,
    objtype,
    objshort,
    objdoc, 
    objxdate,   
    obk0.okeydata,
    obk1.okeydata
FROM
    objekte , objkeys obk0 , objkeys obk1 
WHERE          
    (                        
        (
        obk0.okeyno = 0 and    
        obk0.okeydata LIKE '%%' and 
        obk0.parentid = objid  
        )
        AND             
        (
        obk1.okeyno = 1 and
        obk1.okeydata LIKE '%%' and       
        obk1.parentid = objid
        )                  
    )                         
and objmask=10     
and objstatus=0
order by objtype, objxdate desc

Danke...

MFG chris :D
 
Zuletzt bearbeitet von einem Moderator:

Neue Beiträge

Zurück