GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  Oracle
Go To First  |  Previous Question  |  Next Question 
 Oracle  |  Question 228 of 244    Print  
Combine Two Separate Tables
How to combine two separate table into one?


  
Total Answers and Comments: 3 Last Update: July 23, 2009     Asked by: micky_121 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: malli434
 
By using join concepts we can combine more than one table.. Can you try with any one of the join concept. you will get the output.

Ex.
Table 1( Emp)         
Columns: Empno,ename,job,sal,comm,deptno

Table 2(Dept)
Columns :deptno,dname,loc

Query : select empno,ename,job,sal,comm,e.deptno dno,dname,loc from emp e,dept d
where e.deptno=d.deptno;


Above answer was rated as good by the following members:
mittu.jangid
January 02, 2009 22:51:08   #1  
malli434 Member Since: September 2008   Contribution: 1    

RE: Combine Two Separate Tables
By using join concepts we can combine more than one table.. Can you try with any one of the join concept. you will get the output.

Ex.
Table 1( Emp)
Columns: Empno ename job sal comm deptno

Table 2(Dept)
Columns :deptno dname loc

Query : select empno ename job sal comm e.deptno dno dname loc from emp e dept d
where e.deptno d.deptno;

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
March 04, 2009 12:12:33   #2  
taraldesai Member Since: January 2007   Contribution: 28    

RE: Combine Two Separate Tables
Union
 
Is this answer useful? Yes | No
July 22, 2009 23:14:40   #3  
Maheshkurapati Member Since: July 2009   Contribution: 3    

RE: Combine Two Separate Tables
By using UNION SET operator we can combine the two seperate tables.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape