4
我正在嘗試執行此聯接操作。由於我是sql新手,我發現問題理解的語法和東西。SQL:與嵌套查詢聯合
你覺得有什麼不對下面的查詢:
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
什麼是錯誤? – 2012-07-23 20:59:37
Msg 156,Level 15,State 1,Line 9 關鍵字'FULL'附近的語法不正確。 Msg 170,Level 15,State 1,Line 16 Line 16:'''附近語法不正確。 – mariner 2012-07-23 21:00:40
你想達到什麼目的? – DeanOC 2012-07-23 21:00:49