Skip to content
Advertisement

SQL query to generate the following output

Display user id, user name, total amount, amount to be paid after discount and give alias name as User_ID, user_name, Total_amount, Paid_amount. Display record in descending order by user id. Click on TABLE SHCEMA to get the table

This is the code I’ve written. But this is not showing the expected result:

This is the expected output:

Advertisement

Answer

This will work, try it

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