SQL Language (MOSC)

MOSC Banner

Data set help

edited Jul 16, 2010 4:21AM in SQL Language (MOSC) 3 commentsAnswered ✓
  Hello all,
I am trying to get the first record (transactions_line_number) of this data set, only if the transaction_numbers are equal and the item_descriptions are not.  I can't seem to figure it out today.

select distinct ari.BILL_TO_CUSTOMER,
ari.SALESPERSON_NAME,
arr.TRANSACTION_LINE_NUMBER,
ari.TRANSACTION_NUMBER,
substr(arr.ITEM_DESCRIPTION,1,4),
arp.BALANCE_DUE_IN_FUNCTIONAL_CURR,
arp.DUE_DATE,
ari.INVOICE_TRANS_PROJECT_NUMBER_2,
ari.TRANSACTION_DATE

from arfg_revenues arr,
arfg_ar_payment_schedules arp,
arfg_invoice_ars ari
where arr.customer_trx_id = arp.customer_trx_id
and ari.transaction_id = arp.customer_trx_id

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center