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