Data Analyst SQL Task
Data Analyst SQL Task
Problem 1:
Consider the table containing the list of individuals for every country along with their net worth.
The table structure is like:
-----------------------------------------
Country | Name | Net Worth
------------------------------------
India | Mukesh Ambani | 40000000000
US | Bill Gates | 90000000000
US | Jeff Bezos | 95000000000
…...
-----------------------------------------
Question:
Write a SQL query in order to find the cumulative net worth of top 10 individuals for every
country.
Expected output:
Question:
Write a SQL query to find the increase in total transaction amount on a daily basis. To clarify
further, find the change (increase or decrease) in total transaction amount from the previous day
Expected output:
date | changed_by
-------------------------
2019-07-01 | 330
2019-07-02 | 530
2019-07-03 | -470