Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to get count

User_AE8FXJan 23 2020 — edited Jan 23 2020

Hi All,

select 1111 invoice_id, 123 vendor_id from dual

union all

select 2222 invoice_id, 123 vendor_id from dual

union all

select 3333 invoice_id, 123 vendor_id from dual

union all

select 4444 invoice_id, 100 vendor_id from dual

I have the data like below and need to check each invoice data if the vendor_id is the same and I will pass invoice_id as a parameter.

I need to get a count for this.

oracle version: 11 version

Comments
Post Details
Added on Jan 23 2020
12 comments
531 views