0% found this document useful (0 votes)
93 views1 page

Q Inv

This document contains an SQL query that selects columns from a table to build an invoice report. It selects various columns including customer name, number, address, invoice number, amount due, payment date, and company from the table and aliases it as an invoice table for the report.

Uploaded by

shrinidhiks
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
93 views1 page

Q Inv

This document contains an SQL query that selects columns from a table to build an invoice report. It selects various columns including customer name, number, address, invoice number, amount due, payment date, and company from the table and aliases it as an invoice table for the report.

Uploaded by

shrinidhiks
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

/* bug 2262966 : move entire Q_INVOICE query to BUILD_INVOICE_SELECT to improve performance parsing of Q_INVOICE will not occur unless

report is run with Summary Option = Invoice */ select rpad('a',50,'-') rpad('a',30,'-') rpad('a',4000,'-') rpad('a',4000,'-') 0 0 rpad('a',60,'-') rpad('a',60,'-') 0 0 0 rpad('a',20,'-') sysdate 0 rpad('a',30,'-') 0 0 0 0 sysdate 'x' 0 0 0 0 0 0 0 0 rpad('a',25,'-') rpad('a',30,'-') rpad('a',32,'-') from dual where 1=2 UNION ALL &common_query_inv cust_name_inv, cust_no_inv, sort_field1_inv, sort_field2_inv, inv_tid_inv, contact_site_id_inv, cust_state_inv, cust_city_inv, addr_id_inv, cust_id_inv, payment_sched_id_inv, class_inv, due_date_inv, amt_due_remaining_inv, invnum, days_past_due, amount_adjusted_inv, amount_applied_inv, amount_credited_inv, gl_date_inv, data_converted_inv, ps_exchange_rate_inv, b0_inv, b1_inv, b2_inv, b3_inv, b4_inv, b5_inv, b6_inv, company_inv, cons_billing_number, invoice_type_inv

You might also like