Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

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

  




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 Khokhar857
  Mohammed Taj746
  positive fanatic483
  Jayanta Sur479
  Vigyan Kaushik386
  Gopu Gopi335
  Gitesh Trivedi322
  Vinoth Kumar264
  neeraj sharma258
  Ramesh Jois246






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software