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:
2497
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:
Example to revoke insert privilege of item table from a user using revoke
Example to concatenate a string using select query
SELECT
Example of outer join to display items which are sold and not sold till today
Display customers which are from Gujarat city
Example to create view
Example to find total value of each item based on current stock using multiplication operator in select query
Write a query to subtract days from todays date
Display top 3 highest item price from item table
Add fields or columns city and area in a customer table
CREATE PROCEDURE
Display invoice dates in 'month dd,yyyy' format
Display invoices containing item keyboard in list
Display total number of items ordered in each invoices
BEGIN TRANSACTION
Example to insert records of one table to another table
Database of Doctor information related to total patient age wise in his hospital
Display 2 items having lowest current stock
DROP TRIGGER
CREATE TABLE
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