Hi there.
I need help with building SQL query.
I have 4 tables: Sellers, Goods, Projects and Sales.
Sellers table has following structure:
SellerID (int) PK
SellerName (nvarchar)
SellerStatus (int)
SellerCity (nvarchar)
Goods:
GoodsID (int) PK
GoodsTitle (nvarchar)
GoodsColor (nvarchar)
GoodsSize (int)
GoodsCity (nvarchar)
Projects:
ProjectID (int) PK
ProjectTitle (nvarchar)
ProjectCity (nvarchar)
Sales:
SellerID (int)
GoodsID (int)
ProjectID (int)
Price (int)
I need to get Sellers ID's, which distribute same Goods to all Projects.
Can anybody help me with query? I use MSSQL.
Thanks in advance