-1

In my table I have same dates but with different Invoice_no_pawl varchar2 and Null. How to show the 1200.00 in the first place and of the date?

This is the query:

select invoice_date, invoice_no_pwal, invoice_value, payment_rec
from partywise_accounts_ledger
where name_of_the_customer = 'Naresh Agencies'

enter image description here

jarlh
  • 42,561
  • 8
  • 45
  • 63
Suryam Jy
  • 33
  • 6

1 Answers1

0
ORDER BY column1 DESC, column2

This sorts everything by column1 (descending) first, and then by column2 (ascending, which is the default) whenever the column1 fields for two rows are equal.

Best of luck!

Reference: Here

Community
  • 1
  • 1
Ajmal Jamil
  • 799
  • 1
  • 8
  • 15