ZSCALER Coding Question – Solved

12 Live
Expected Cash Flow Analysis A financial analytics platform is developing a feature to help investors understand the expected cash flows from their bond investments. Create a query that provides insights into each investor's expected cash flows. The output should list all investors with their total number of investments, the sum of expected cash flows, and the range of expected cash flows (the difference between the highest and the lowest expected cash flow). The result should have the following columns: email | investment_count | total_expected_flow | range_expected_flow - email: investor email - investment_count: total number of investments held by a specific investor - total_expected_flow: sum of expected cash flows for a specific investor - range_expected_flow: the range of expected cash flows for a specific investor (maximum - minimum) Only investors who have a sum of expected cash flows greater than 100,000 should be included in the result. Sort the result in ascending order by email.

Asked in: ZSCALER

Image of the Question

Question Image Question Image

All Testcases Passed βœ”



Passcode Image

Solution


SELECT 
    i.email,
    COUNT(c.expected_floe) AS investment_count,
    SUM(c.expected_floe) AS total_expected_flow,
// ... rest of solution available after purchase

πŸ”’ Please login to view the solution

Explanation


No explanation available for this question.


Related Questions