我有两个表我怎么可以做以下查询来获取所需的信息
CompList
表下面的列:CompId
,McID
,station
,slot
,subslot
,和其他几个人BookingTable
列:CompId
,LineID
,McID
,station
,slot
,subslot
。
我希望得到以下结果:只有
行时,CompList.CompId == BookingTable.CompId
(仅CompId是两个表中)
我在结果列需要从CompList
:CompId
,McID
,station
,slot
,subslot
和从BookingTable
:LineID
,McID
,station
,slot
,subslot
我将如何区分结果表中的结果表中的同一列表中的同一列?
感谢您的帮助。
你可以在http://dba.stackexchange.com/上询问 – 2011-01-12 07:50:03