Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 44 Oracle Analytics and AI Sharing Center
- 19 Oracle Analytics and AI Lounge
- 278 Oracle Analytics and AI News
- 56 Oracle Analytics and AI Videos
- 16.2K Oracle Analytics and AI Forums
- 6.4K Oracle Analytics and AI Labs
- Oracle Analytics and AI User Groups
- 103 Oracle Analytics and AI Trainings
- 20 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture
Sequence Generation
Anantharao27
Rank 1 - Community Starter
Summary
Sequence Generation
Content
Hi All,
I have a very weird requirement,
1. Create a sequence (Oracle Sequence ) in query template.
2. Pass sequence as parameter in ReportTrigger which will insert some data into temporary table based on key.
3. Retrieve inserted records using the key.
Any ides how to implement.
0
Answers
-
Do this all the time but never used a sequence (seems like overhead for a temp table) ...
set a variable just before writing the rows for your data_key as something similar to:
select
to_number(to_char(sysdate,'DDMMYYYYHH24MISS')) insert_key
from dual;
insert_key = 16062017134825
^ then select records based on MAX(insert_key)
0