Siebel Backend query on calculated fields

Another Best Practice recommendation is to have minimum number of calculated fields which contains the “Sum” or “Count” in them. These needs Re-firing at DB End and impacts the performance of the application.

Sharing the backend SQL for the same.

SELECT
B.NAME,
‘~’,
A.NAME,
‘~’,
A.CALCVAL
FROM
SIEBEL.S_FIELD A,
SIEBEL.S_BUSCOMP B
WHERE
A.BUSCOMP_ID IN (SELECT B.ROW_ID FROM SIEBEL.S_BUSCOMP B) AND
B.ROW_ID = A.BUSCOMP_ID AND
A.CALCULATED = ‘Y’ AND
(A.CALCVAL LIKE ‘%Sum%’ OR A.CALCVAL LIKE ‘%Count%’);
OUTPUT TO E:\TEMP\Calculated_Field.TXT

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: