A data engineer is using Amazon Athena to analyze sales data that is in Amazon S3. The data engineer writes a query to retrieve sales amounts for 2023 for several products from a table named sales_data. However, the query does not return results for all of the products that are in the sales_data table. The data engineer needs to troubleshoot the query to resolve the issue.
The data engineer's original query is as follows:
SELECT product_name, sum(sales_amount)
FROM sales_data -
WHERE year = 2023 -
GROUP BY product_name -
How should the data engineer modify the Athena query to meet these requirements?
GiorgioGss
Highly Voted 7 months, 4 weeks agopikuantne
Most Recent 2 weeks agoShatheesh
1 month, 1 week agovaluedate
5 months, 3 weeks agoVerRi
5 months, 4 weeks agoJust_Ninja
6 months agoSnape
6 months, 2 weeks agokhchan123
6 months, 2 weeks agochris_spencer
7 months agoChristina666
7 months agokj07
8 months agoDevoteamAnalytix
6 months, 1 week agoFelix_G
8 months agoFuriouZ
7 months, 3 weeks agorralucard_
9 months, 2 weeks agonyaopoko
7 months, 1 week ago