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:
2919
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:
Example to insert data using variables in a table
Write a query to add and subtract months using add_months function
CREATE DATABASE
Display total item price of item table using sum() function
DECLARE CURSOR
using NOT EXISTS
DEALLOCATE CURSOR
CREATE VIEW
Example to add constraint in a table
Display 2 items having lowest current stock
INTERSECTION OPERATOR
VIEWS
UNION
Example to insert records of one table to another table
Display items containing letter 't' in item name
Display top 3 highest item price from item table
Example to insert records in student, course and SC tables
Student - project database
Example of Create Table
GROUP BY Clause
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