Hi, I am new to the sql world, but am struggling to get some of the reasons to work.
I have a dataset that looks like this:
Table name: Sample PROJECT WORK ORDER AMOUNT
I want it to look like this:
Table name: Sample PROJECT WORK ORDER AMOUNT PROJECT AMOUNT
Sorted by project with the highest total TOTAL
The group does not work for me, because it combines all the projects into one, so I do not see three lines of the execution order for "Project 111"
PROJECT WORK ORDER AMOUNT
The order does not work, because I cannot sort it based on the highest project value
Table name: Sample PROJECT WORK ORDER AMOUNT
My alternative idea was that I could create another “Project Amount” column, which calculates the total number of projects based on the values in the “Project” column, and then I can easily sort it by the project amount to achieve the desired format
Table name: Sample PROJECT WORK ORDER AMOUNT PROJECT AMOUNT
But I’m afraid how to get the “Project Amount” column to calculate the total number of projects and present them in any lines that appear with the same project number.
Any tips?
source share