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 10 months, 3 weeks agopikuantne
Highly Voted 3 months, 1 week agoYUICH
Most Recent 1 week, 1 day agoUdyan
3 weeks, 4 days agoMLOPS_eng
1 month, 1 week agoAssassin27
1 month, 1 week agokailu
1 month, 2 weeks agoShatheesh
4 months agovaluedate
8 months, 2 weeks agoVerRi
8 months, 3 weeks agoJust_Ninja
8 months, 3 weeks agoSnape
9 months, 1 week agokhchan123
9 months, 1 week agochris_spencer
9 months, 3 weeks agoChristina666
9 months, 4 weeks agoaltonh
2 months agokj07
10 months, 4 weeks agoDevoteamAnalytix
9 months agoFelix_G
10 months, 3 weeks agoFuriouZ
10 months, 2 weeks agorralucard_
1 year agonyaopoko
10 months, 1 week ago