Christopher Reynolds2,817 Points
HELP me with this question.
In a car database there is a Sale table with columns, SaleID, CarID, CustomerID, LocationID, SalesRepID, SaleAmount and SaleDate. The database also has a SalesRep table with columns, SalesRepID, FirstName, LastName, SSN, PhoneNumber, StreetAddress, City, State and ZipCode.
Show the First and Last Name of each sales rep along with SaleAmount from both the SalesRep and Sale tables in one result set.
Here is what i wrote: SELECT FirstName, LastName, FROM Sale INNER Join SalesRep ON Sale.SalesRepID = SalesRep.SalesRepID where SaleAmount is not NULL;
Steven Parker182,288 Points
The instructions you quoted say "Show the First and Last Name of each sales rep along with SaleAmount ...", but your query only selects "FirstName" and "LastName".
There's a comma after "LastName", but the third field is missing.