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