Skip to content
Advertisement

SQL Query scenario

I have a SQL scenario. Could you please help me with the solutions for the same?

I have 2 Tables Account & Credit_Score, with the schema as below.

Now, I want a query which can give me a output as shown below. The balance amount gets splitted amongst the Account Holders having similar Score.

Advertisement

Answer

You can use window functions:

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement