SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,017 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi @Jean C. Melendez
Seems that you missed the ( ) when using AVG function.
See: AVG (Transact-SQL)
Also, modify line 2 from FROM [Customer Table]
to FROM [Expenses Table]
.
Best regards,
Cosmog Hong
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
To fix this particular error, try to use parentheses: AVG([Expense Table].ExpensesIncurred)
(2 places).
Then you can focus on other issues.