如何在三个表之间连接,例如我有三个表 productoption、productsize 和 price 并且 t3 没有主键,但问题是 productsize tbl 没有主键
产品选项 内连接 产品大小 内连接 价格
select * from Prices
select * from Product
select * from ProductOption
select * from ProductSize
select PriceFor, SourceID, MainPrice
from Prices
where PriceFor = 2
and SourceID in (select ProductOptionID from ProductOption where ProductId=7)
select * from Product
select ProductID, ProductName +' - '+ Convert(varchar(5),ProductID) as C
from Product
need inner join btw productoption > productsize and productoption > price