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