SQL Language (MOSC)

MOSC Banner

We are building GL custom report using dynamic pivot . Getting error while performing dynamic pivot

in SQL Language (MOSC) 2 commentsAnswered

Hi Team,

We are building GL custom report using dynamic pivot . But we are error while performing dynamic pivot .

Query Used:

SELECT * FROM

(

SELECT to_char (gjh.default_effective_date, 'MM-DD-YYYY') accounting_date

, sum ((nvl (gjl.accounted_dr, 0) - nvl (gjl.accounted_cr, 0))) accounted_amount

, gcc.segment1

FROM gl_je_lines gjl

, gl_je_headers gjh

, gl_code_combinations gcc

WHERE 1 = 1

AND gjl.code_combination_id = gcc.code_combination_id

AND gjl.je_header_id = gjh.je_header_id

AND (

to_char (gjh.default_effective_date, 'YYYY-MM-DD') >= (:P_FROM_DATE)

AND to_char (gjh.default_effective_date, 'YYYY-MM-DD') <= (:P_TO_DATE)

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