I am new to SQL Server. Please help me with my problem below.
I have a table as shown below
Job Quantity Status
1 100 OK
2 400 HOLD
3 200 HOLD
4 450 OK
I would like to write a request now in such a way that first all jobs with an amount equal to or more than 400 with the status "OK" appear, and then "Work with Quanitty" equal to or more than 400 with the status of "HOLD". Then all tasks with an amount of less than 400 with the status OK will appear and after that tasks with an amount of less than 400 with the status of HOLD should appear.
This is what my result should look like. (Sorry for the above perplexing item)
Job Quantity Status
4 450 OK
2 400 HOLD
1 100 OK
3 200 HOLD
How should I do it? Someone please help me.
source
share