0
我對查詢有疑問。 有兩個表:查詢屬性,其中一個屬性丟失
Objects table:
==============
Object ID Date
1 2016-03-15
2 2016-01-20
Attributes table:
=================
Parent ID Attribute AttributeData
1 Size XL
2 Size S
2 Price 20
The query is to join the data to get this:
==========================================
Objet ID Size Price
1 XL NULL
2 S 20
But I only get this:
==========================================
Objet ID Size Price
2 S 20
左連接於事無補 - 因爲屬性表中價格爲ID1的條目。
我很抱歉這個beein這樣的新手。
很高興爲您提供幫助。
斯特芬
請張貼您現有的查詢。請也澄清你使用的數據庫,因爲這會影響答案。 – Alex