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
ANY operator
Posted By:
Adelaide Fischer
Category:
Oracle
Views:
2054
This article explains about using ANY operator with example.
Customer - orders - salespeople database
ANY operator
- takes all values produced by the sub-query,and evaluates to TRUE if ANY of them equal the city values of the current row of the outer query.
Find salespeople with customers located in their cities.
SELECT * FROM Salespeople WHERE city = ANY(SELECT city FROM Customers);
Share:
Previous Post:
using NOT EXISTS
Next Post:
ALL operator
Didn't find what you were looking for? Find more on
ANY operator
Or get
search suggestion and latest updates
.
Adelaide Fischer
author of ANY operator is from Frankfurt,
Germany
.
View All Articles
Related Articles and Code:
Unary Operator ++ Operator Overloading
Program to illustrate unary operator(decrement operator) overloading without return type
Program to illustrate unary operator(decrement operator) overloading with return type
Program to illustrate unary operator (increment operator) overloading without return type
Program to illustrate unary operator increment operator overloading with return type
Conditional operator and type cast operator
Assignment Operators and Shortcut Assignment Operators
Program that implements overloaded "-" minus unary operator.
Increment and Decrement Operators
Relational Operators
Arithmetic Operators
To parse a string using Operator Precedence parsing
To parse a string using Operator Precedence parsing
PROGRAM OF OPERATOR PRECEDENCE MATRIX
Program that demonstrate the basic arithmetic operators
Program to print address of a variable using & operator
Program to print address of a variable using & and * operators
Program that provides an example of scope resolution operator
Program to use increment and decrement operators
PROGRAM THAT PROVIDES THE USE OF SHORTHAND OPERATOR *=
Other Interesting Articles in Oracle:
DROP VIEW
Display 2 items having lowest current stock
Example to find items having unit price greater than or equal to 500
Display items containing letter 't' in item name
CREATE TABLE
INTERSECTION OPERATOR
Display customers which are from satellite area of ahmedabad, nadiyad cities
Display average item price of item table using avg() function
Example to add constraint of primary key in a table
Display total number of items ordered in each invoices
Example to add a field or column in a table
CREATE TRIGGER
ALL operator
USING UNION WITH ORDER BY
Example to view records of student having marks greater than 70 and course name is FOP
Example of Create Table
Example to revoke insert privilege of item table from a user using revoke
CLOSE CURSOR
Example to delete records of customer table which are in Gujarat_cust 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