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
»
Operators
RSS Feeds
using NOT EXISTS
Posted By:
Arnelle Schmidt
Category:
Oracle
Views:
2483
This article explains about using NOT EXISTS with example.
Customer - orders - salespeople database
using NOT EXISTS
Find all salespersons having only 1 customer.
SELECT DISTINCT snum FROM Customers outer WHERE NOT EXISTS (SELECT * FROM Customers inner WHERE inner.snum=outer.snum AND inner.cnum <> outer.cnum);
Share:
Previous Post:
USING EXISTS with CO-RELATED SUB-QUERIES
Next Post:
ANY operator
Didn't find what you were looking for? Find more on
using NOT EXISTS
Or get
search suggestion and latest updates
.
Arnelle Schmidt
author of using NOT EXISTS is from Frankfurt,
Germany
.
View All Articles
Related Articles and Code:
Shell script to check dir directory if it exists then change the path, if not then create dir with that name and also check for file name not exists
BATCH FILE SHOWING THAT WHETEHER THE FILE EXIST OR NOT
USING EXISTS with CO-RELATED SUB-QUERIES
APPENDING ITEMS TO AN EXISTING FILE USING DO WHILE LOOP
Example to create table based on existing table
Display customers having city other than gujarat and mp using not in
EXISTS OPERATOR
Code First for Existing Database with POCO class auto generated
Program to compare number is greater than 100 or not using if statement
Shell script to change extension of an existing file
Program to Open an Existing file write into it and close it
Program that uses this DFA and validates whether an entered string is valid float or not
Exists Operator
Program to check whether a word is palindrome or not (using classes & pointers )
Program to check whether the input string is a valid identifier or not. (Note: string starting with digit is not valid)
Shell Script to check file is ordinary or not
Program to find whether the input number is divisible by n or not
Program to find whether the input number is prime or not
Program to check whether the input string is palindrome or not
Program to check whether the number inputted is prime or not
Other Interesting Articles in Oracle:
ORDER BY Clause
Example to insert records of one table to another table
Example to insert record in to item table using sequences
Example to rename table name
Add fields or columns city and area in a customer table
DROP PROCEDURE
Display total number of items ordered in each invoices
DROP DATABASE
Example to revoke insert privilege of item table from a user using revoke
TRANSACTIONS AND CONCURRENCY
Employee Payment Database
DATE FUNCTIONS
ALTER USER
REVOKE
Example to insert records in student, course and SC tables
Car rental agency database
Display customers which are from satellite area of ahmedabad, nadiyad cities
Display student details born in year 1980 to 1982 using to_char() function
USING UNION WITH ORDER BY
Customer - orders - salespeople database
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