Welcome -
Guest!
Login
/
Register Now
|
Search:
Home
Articles
Forum
Interview FAQ
Activities
News
Videos
Poll
Links
People
Groups
Oracle Articles
Submit Article
Home
»
Articles
»
Oracle
»
Sub Query
RSS Feeds
USING EXISTS with CO-RELATED SUB-QUERIES
Posted By:
Adalicia Fischer
Category:
Oracle
Views:
2505
This article explains about USING EXISTS with CO-RELATED SUB-QUERIES with example.
Customer - orders - salespeople database
USING EXISTS with CO-RELATED SUB-QUERIES
Find salespeople who having multiple(more than 1 customers)
SELECT DISTINCT snum FROM Customers outer WHERE EXISTS (SELECT * FROM Customers inner
WHERE inner.snum=outer.snum AND inner.cnum <> outer.cnum);
Share:
Previous Post:
EXISTS OPERATOR
Next Post:
using NOT EXISTS
Didn't find what you were looking for? Find more on
USING EXISTS with CO-RELATED SUB-QUERIES
Or get
search suggestion and latest updates
.
Adalicia Fischer
author of USING EXISTS with CO-RELATED SUB-QUERIES is from Frankfurt,
Germany
.
View All Articles
Related Articles and Code:
Example of sub query to display items having item price less than Keyboard
BISECTION METHOD USING LOG10(X)-COS(X)
APPENDING ITEMS TO AN EXISTING FILE USING DO WHILE LOOP
using NOT EXISTS
Database of Doctor information related to total patient age wise in his hospital
Write a query to add and subtract months using add_months function
Write a query to add days in todays date using sysdate function
Write a query to change the format of date using to_char function
Write a query to change the case of strings using lower and upper function
Example to concatenate a string using select query
Example to find employees from state 'Delhi' using select query
Display items having item price between 100 to 500 using select query
Display item details in descending order of item price using order by clause in select query
Shell script that prints names of all sub-directories present in the current directory
Shell script that prints names of all sub-directories present in the current directory
Program to find co-relation between two data sets defined and initialise by the user
COS Function
PROGRAM FOR SECANT METHOD OF PARTICULAR EQUATION IS log(x)-cos(x)
PROGRAM FOR SECANT METHOD OF PARTICULAR EQUATION IS log(x)-cos(x)
Program to read two positive numbers and interchange it's values using +(add) and -(sub) operators and without using any extra variable
Other Interesting Articles in Oracle:
UNION QUERY
EXECUTE
Example to view records of student having marks greater than 70 and course name is FOP
Example to rename table name
Customer - orders - salespeople database
Display student details born in year 1980 to 1982 using to_char() function
Display total of each invoices
Example of Create Table
Write a query to change the case of strings using lower and upper function
Display student records whose name starts with 'm' using like % operator
VIEWS
CREATE INDEX
MINUS OPERATOR
INDEXES
DROP PROCEDURE
ALTER USER
EXISTS OPERATOR
Example to provide insert and select privilege of item table to a user using grant
Example of sub query to display items having item price less than Keyboard
USING EXISTS with CO-RELATED SUB-QUERIES
Please enter your Comment
*
*
Comment should be atleast 30 Characters.
Please put code inside [Code] your code [/Code].
Please login to post comment
No Comment Found, Be the First to post comment!
Oracle
View All
Aggregate Functions
Analytical Functions
Common Statements
Constraints
Cursor
Data Control Language
Data Definition Lang
Data Manipulation Lang
Data Type
Database
Date Time Functions
Functions
Index
Interview FAQ
Joins
Math Functions
Operators
Select Query
Sequence
Stored Procedures
String Functions
Sub Query
System Functions
Transaction Control La...
Trigger
View
Assembly Language
Artificial Intelligence
C Programming
C++ Programming
Visual C++
OOAD
Cobol
Java
SQL Server
Asp.net MVC
Rest and WCF Services
Entity Framework
Knockout.Js
Unix / Linux / Ubuntu
Networking
OOPs Concept
HTML
Dos
SQL
System Analysis & Design
Gadgets
Internet
CSS
Javascript
.Net Framework
Asp.net
C#
VB.Net
Python
Perl
Software Engineering
RDBMS Terms
AJAX Framework
Design Pattern
UML
WPF
WCF
SEO
PowerShell
Visual Studio
WWF
BizTalk Server
Azure
General
Testing
Online Certifications
PHP
My SQL
LinQ
Project Management
Silverlight
XML
MS Office
Windows OS
DHTML
Sharepoint