-1
我想從另一箇舊表格的某些列創建表格。舊錶中的每列都有149行,但是當我創建新表時,生成的表有1442行,這是錯誤的。如何從另一箇舊表格創建新表格
我的代碼:
create table newenronss as
SELECT employeelist.eid
,employeelist.firstName
,employeelist.lastName
,employeelist.Email_id
,employeelist.status
,message.mid
,message.subject
,message.body
,message.folder
,recipientinfo.rid
,recipientinfo.rvalue
,referenceinfo.reference
FROM employeelist
INNER JOIN message ON employeelist.Email_id = message.sender
INNER JOIN recipientinfo ON message.mid = recipientinfo.mid
INNER JOIN referenceinfo ON recipientinfo.rid = referenceinfo.rfid
我怎樣才能解決這個問題?
代碼中沒有任何錯誤。也許你的邏輯存在缺陷。 – Strawberry
有關舊錶的信息位於:http://www.ahschulz.de/enron-email-data/ .i想將此表的某些列複製到一個新表 – hsi
可能是某個關鍵字有誤或匹配與更多的行..檢查連接條件.. – scaisEdge