SQL: JOIN mit verschachtelten Abfragen

Ich versuche, führen diese join-operation. Als ich bin neu in sql bin ich auf Probleme verstehen, die syntax und so.

Was denken Sie, ist falsch mit der folgenden Abfrage:

select top 1 * 
from 
    (select * 
     from dbo.transaction_unrated 
        where transaction_date >= '2012/05/01' 
            and transaction_date < '2012/06/01' 
            and content_provider_code_id in (1)
    )   FULL OUTER JOIN 
    (select * 
     from dbo.transaction_rated 
        where transaction_date >= '2012/05/01' 
            and transaction_date < '2012/06/01' 
            and entity_id in (1) 
            and mapping_entity_id = 1)
    ) 
    ON dbo.transaction_unrated.cst_id = dbo.transaction_rated.unrated_transaction_id
Was ist der Fehler???
Msg 156, Level 15, Status 1, Zeile 9 Falsche syntax bei das Schlüsselwort 'VOLL'. Msg 170, Level 15, Status 1, Zeile 16 Zeile 16: Incorrect syntax near ')'.
Was wollen Sie erreichen?

InformationsquelleAutor mariner | 2012-07-23

Schreibe einen Kommentar