Topic: SQL*Plus and PL/SQL >> Can u have solution?
|
Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property.
You may review the entire Oracle Certification Program Candidate Agreement online Here.
|
|
|
|
| Title: Can u have solution? |
| mati |
Posted: Mar 12, 2008 11:40:28 PM |
Total Post: 4
Joined: Mar, 2008
|
I need to generate a two rows for my application with union all statement
when Iam using sequence in two select statements with union all that seq is not generating next val.I came to know that seq is not working with union set operators then What I need to do?
Is there any way to do this? |
|
|
Ramesh Joyisa |
| Posted: Mar 26, 2008 01:54:24 AM | |
|
Total Post: 246
Joined: Aug, 2007
|
Try this one..
Select sequence.nextval,col1,col2,col3.. from
(
Select col1,col2,col3.. from table1
Union
Select col1,col2,col3.. from table2
)
|
|
|
|
|
mati |
| Posted: Mar 27, 2008 10:37:00 AM | |
|
Total Post: 4
Joined: Mar, 2008
|
That's grt ...
Thanks buddy
|
|
|
|
|
| Time Zone: EDT |
Send this thread to your friend |
|
|
|
|
Forum Rules & Description
Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user
|
| |
Get FREE Magazines
|
Top 10 Forum User
|
| Murtuja Khokhar | 857 |
| Mohammed Taj | 746 |
| positive fanatic | 483 |
| Jayanta Sur | 479 |
| Vigyan Kaushik | 386 |
| Gopu Gopi | 335 |
| Gitesh Trivedi | 322 |
| Vinoth Kumar | 264 |
| neeraj sharma | 258 |
| Ramesh Jois | 246 |
|
|