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:
2555
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:
ANY operator
Example to view records of student, course and SC tables
ALL operator
Display top 3 highest item price from item table
Example to view records of student having marks greater than 70 and course name is FOP
CREATE TRIGGER
Use the FRIENDS table to answer the following questions
VIEWS
Add fields or columns city and area in a customer table
DEALLOCATE CURSOR
SET TRANSACTION
ORACLE DATATYPES
USING UNION WITH ORDER BY
Display customers whose name starts with 's'
Example to delete records of customer table which are in Gujarat_cust table
Customer - orders - salespeople database
COMMIT TRANSACTION
DECLARE CURSOR
MINUS OPERATOR
HAVING 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