Tabellen und Spalten sind BelowWie mache ich diese Select-Anweisung?
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)
ich das Fahrrad mit den meisten Gesamtbestand verfügbar d Lager von Marke + Lager von Bike Shop auswählen möchten? Wie mache ich das? Das habe ich bisher und es wird nicht ausgeführt.
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)))
Omer, Ihre Bearbeitung war eine Regression und es wurde rückgängig gemacht. Sie haben die Abfrageformatierung, die coldspeed in –