テーブルと列は、私はブランド+在庫からバイクショップから利用できる最も総株式すなわち株式で自転車を選択したいこのselect文はどのようにすればよいですか?
Bikers(BikerName, Country, Age, Category, World_Cup_Wins,
World_Championship_Wins, Brand, Bike)
BikerMeetUp(BikerName, Date, Location)
BikeShopInfo(BikeShopName, Telephone_Number, Address, Website)
Brands(BrandName, Website, Model)
Bikes(Model, Price, Weight, Colour, Rating, State)
BikeTyre(Model, Tyre_Model, Size)
BikeForks(Model, Fork_Model, Travel)
BikeBrandSellStock(Model, Size, BrandStock)
BikeShopSellBike(BikeShopName, Model, Size, BikeShopStock)
下にありますか?これはどうすればいいですか?これは私が今までに持っていて実行していないものです。
Select model, price, rating, state, brands.brandname, brands.website,
bikebrandsellstock.size, bikebrandsellstock.brandstock, bikeshopsellbike.bikeshopname, bikeshopsellbike.size, bikeshopsellbike.bikeshopstock
from bikes
INNER JOIN brands ON bikes.model = brands.model
INNER JOIN bikebrandsellstock ON bikes.model = bikebrandsellstock.model
INNER JOIN bikeshopsellbike ON bikes.model = bikeshopsellbike.model
WHERE SUM(bikebrandsellstock.stock+bikeshopsellbike.stock)
IN (SELECT MAX(SUM(bikebrandsellstock.stock+bikeshopsellbike.stock)))
オメア、あなたの編集は回帰であり、元に戻しました。あなたはcoldspeedが入れたクエリフォーマットを破った –