Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to generate sequences in View logic

Sangeeta PandeyJan 12 2024

Hello Experts,

I need to create a view in with total 5 columns. Two columns are from source 1 and other 2 columns are from source 2 and 1 column is sequence number. This SQL code is in Dremio tool (data lake house) where I can have live connections to source systems (direct connection to source systems).This sequence number is assigned to each record to serve as a unique identifier for the record. The view at logical space is pulling values for 4 columns (mentioned above) through live connections to 2 different source systems (source 1 and source 2 as mentioned above)
Can you please help if there is a way to generate sequence number and assig to each record (a record consists of above 4 fields , 2 from each source). Another challenge is , each time I select the record from view , the sequence number assigned to each record should not change. I mean if the sequence number for record 1 with account name ABC was 101 then if I query the same record at any time later , the sequence number should be 101 only for that record at later time as well.

Kindly help.

Thanks,

Sangeeta

This post has been answered by mathguy on Jan 12 2024
Jump to Answer
Comments
Post Details
Added on Jan 12 2024
7 comments
1,093 views