J
Jon
I would like to retrieve the DATA where Date_quote= Max(Price_Data.Date_Quote)
What is wrong this this query?
SELECT Car_Models.Manufacturer, [Family_name] & " " & [Variant] & " " &
[Fuel] AS Name, Car_Models.Family_name, Car_Models.FUEL,
Sum(Price_Data.Price) AS Price,
Max(Price_Data.Date_Quote) AS Max_Date_Quote
FROM Car_Models RIGHT JOIN Price_Data ON Car_Models.Model_ID =
Price_Data.Model_ID
GROUP BY Car_Models.Manufacturer, [Family_name] & " " & [Variant] & " " &
[Fuel], Car_Models.Family_name, Car_Models.FUEL
HAVING Max(Price_Data.Date_Quote);
What is wrong this this query?
SELECT Car_Models.Manufacturer, [Family_name] & " " & [Variant] & " " &
[Fuel] AS Name, Car_Models.Family_name, Car_Models.FUEL,
Sum(Price_Data.Price) AS Price,
Max(Price_Data.Date_Quote) AS Max_Date_Quote
FROM Car_Models RIGHT JOIN Price_Data ON Car_Models.Model_ID =
Price_Data.Model_ID
GROUP BY Car_Models.Manufacturer, [Family_name] & " " & [Variant] & " " &
[Fuel], Car_Models.Family_name, Car_Models.FUEL
HAVING Max(Price_Data.Date_Quote);