GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Oracle  >  SQL
Go To First  |  Previous Question  |  Next Question 
 SQL  |  Question 156 of 171    Print  
SET Operator
What is a SET operator? What are the types what is the difference between SET operators and JOINS?


  
Total Answers and Comments: 2 Last Update: May 16, 2008     Asked by: jagadeesh9 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: krishnaindia2007
 
SET operators are used to combine similar type of data from two or more tables.  The no of columns and their data type must be same in all the queries. The column names from the first query will appear in the result.

UNION         - It returns rows of first query + rows of second query minus duplicate rows
UNION ALL - It returns rows from both the queries including duplicate rows.
MINUS         - Rows that are unique for the first query will be retrieved
INTERSECT  - common rows from both the queries will be retrieved.


Join is used to select columns from two or more tables.


Above answer was rated as good by the following members:
sourena_1237, akhlaq
April 23, 2008 04:06:45   #1  
Archana Member Since: September 2005   Contribution: 4    

RE: SET Operator
In table the data is represented as relation the operators used to operate this type of data is known as set operater.Some set operators are: 1.union() 2.intersection() 3.minus() etc...
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
May 16, 2008 04:12:01   #2  
krishnaindia2007 Member Since: September 2007   Contribution: 854    

RE: SET Operator
SET operators are used to combine similar type of data from two or more tables. The no of columns and their data type must be same in all the queries. The column names from the first query will appear in the result.

UNION - It returns rows of first query + rows of second query minus duplicate rows
UNION ALL - It returns rows from both the queries including duplicate rows.
MINUS - Rows that are unique for the first query will be retrieved
INTERSECT - common rows from both the queries will be retrieved.


Join is used to select columns from two or more tables.

 
Is this answer useful? Yes | NoAnswer is useful 2   Answer is not useful 0Overall Rating: +2    

 Related Questions

In a table a column is having value like 'Steven Kovy'. without using concat() function and concatenate operator "||" how to display like 'Kovy Steven'

What is a SET operator? What are the types what is the difference between SET operators and JOINS? 
Latest Answer : SET operators are used to combine similar type of data from two or more tables.  The no of columns and their data type must be same in all the queries. The column names from the first query will appear in the result.UNION         ...


 Sponsored Links

 
Related Articles

Querying Data with Oracle XQuery

Querying Data with Oracle XQuery Starting with Oracle Database 10g Release 2 you can take advantage of a full featured native XQuery engine integrated with the database With Oracle XQuery you can accomplish various tasks involved in developing PHP Oracle XML applications operating on any kind of dat
 

Using Oracle XML DB Repository

Using Oracle XML DB Repository Another variation on accessing and manipulating XML content stored in Oracle database is provided by Oracle XML DB repository which is an essential component of Oracle XML DB mosgoogle NOTE Oracle XML DB repository also known as XML repository is a hierarchically organ
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

XML Processing in PHP and Oracle Applications

Processing XML in PHP Oracle Applications As mentioned there are two alternatives when it comes to performing XML processing in your PHP Oracle application You can perform any required XML processing using either PHP s XML extensions or PEAR XML packages or Oracle s XML features mosgoogle In the fol
 

PHP Oracle Web Development

PHP Oracle Web Development Data processing Security Caching XML Web Services and Ajax The book is written by Yuli Vaseliev a well known author of different web development and programming books PHP Oracle Web Development Data processing Security Caching XML Web Services and Ajax is a good starting b
 

Getting Started with Oracle and ODP.NET

ODP NET Developer’ s Guide by Jagadish Chatarji Pulakhandam Sunitha Paruchuri A practical guide for developers working with the Oracle Data Provider for NET and the Oracle Developer Tools for Visual Studio 2005 Application development with ODP NET Dealing with XML DB using ODP NET Oracle
 

PHP Oracle Web Development Review

PHP Oracle Web Development Data processing Security Caching XML Web Services and Ajax The book is written by Yuli Vaseliev a well known author of different web development and programming books The author is also an expert in open source technologies and SOA Service Oriented Architecture But besides
 

Step by Step Oracle PL-SQL Tutorial

This introductory tutorial to PL SQL will help you to understand the basic concepts of PL SQL Please review the following tutorials and practice the sample SQL Statements on your local Oracle Database Please note that you must learn these basic things before we actually start getting in to Advanced
 

C++ Dereference Operator

C Dereference Operator In this C tutorial you will learn how to access the value of variables pointed by the pointer variables using pointer concept discussed in detail mosgoogle center It is possible to access the value of variables pointed by the pointer variables using pointer This is performed
 

C++ Operator Overloading Part II

C Operator Overloading Part II Operator overloading is a very important aspect of object oriented programming Binary operators can be overloaded in a similar manner as unary operators In this C tutorial you will learn about Binary Operating Overloading explained along with syntax and example mosgoog
 

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