我必須顯示所有生產者來自同一區域的產品(相同的zip_code)。但它不會返回,儘管它應該。爲了返回結果,還需要關聯哪些內容?錯誤的返回值
create view Data as
select product_code , Offer.producer_code, zip_code
from Producer, Offer
where Producer.producer_code=Offer.producer_code
select product_code
from Data
where producer_code =all (select a.zip_code
from Data as a, Data as b
where a.zip_code = b.zip_code)
PLease顯示錶架構,示例數據和預期結果輸出。這是什麼數據庫平臺? – OldProgrammer