第一個表:聯繫人列:
Customer ID,Project ID1,Project ID2,Project ID3
這樣一個聯繫方式將具有一行。
第二表:時間表列
Project ID, Name, Owner, Hours
一個接觸可以有多個項。
我想匹配時間表中的項目ID到3列聯繫人表。
我正在使用以下查詢。
SELECT "Customer ID","Project ID","Project Name","Owner",
"Hours","Approval Status","Status","Project Manager",
"Sales Person","Account Manager","Discount %","Hourly Rate",
"Monthly Budget","Total Budget"
FROM "Timesheets"
LEFT JOIN "Contacts (Boost Media Group)"
ON "Timesheets"."Project ID" = "Contacts (Boost Media Group)"."Zoho Projects ID 1";
但它沒有返回所需的結果,因爲我無法使用聯繫人表的項目ID2,項目ID3來檢查它。
任何建議如何解決這個問題?
雙引號maches?你確定?? – RiggsFolly
你真的**有像'Contacts(Boost Media Group)' – RiggsFolly
這樣的表名和'Zoho Projects ID 1'這樣的列名'' – RiggsFolly