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

Counters and Serial Number Details

This SQL query selects the serial number from the csi_item_instances table. It joins this table to several other tables including cs_counters, cs_counter_groups, csi_counters_b, csi_counters_tl, and cs_csi_counter_groups to filter the results where the source_object_code is 'CP' and the language matches the user's language environment.

Uploaded by

Sudha Krishna
Copyright
© © All Rights Reserved
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)
100 views1 page

Counters and Serial Number Details

This SQL query selects the serial number from the csi_item_instances table. It joins this table to several other tables including cs_counters, cs_counter_groups, csi_counters_b, csi_counters_tl, and cs_csi_counter_groups to filter the results where the source_object_code is 'CP' and the language matches the user's language environment.

Uploaded by

Sudha Krishna
Copyright
© © All Rights Reserved
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

SELECT ci.

serial_number
FROM --cs_counters cc,
--cs_counter_groups cg,
csi_counters_b cc,
csi_counters_tl cct,
cs_csi_counter_groups cg,
csi_item_instances ci
WHERE 1=1
-- AND cc.counter_id = p_counter_id
AND cg.counter_group_id = cc.group_id
AND cg.source_object_code = 'CP'
AND ci.instance_id = cg.source_object_id
AND cct.language = userenv('LANG')
AND cc.counter_id = cct.counter_id;

You might also like