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:
2394
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:
Write a query to find the next day : finds the date when next day of week(e.g. mon to sun) will come begg with passed date
Display highest item price of item table using max() function
DECLARE CURSOR
Example of Create Table
REVOKE
Employee Payment Database
Write a query to Calculate the month difference
Display student details born in year 1980 to 1982 using to_char() function
Write a query to calculate the year difference
ANY operator
CREATE VIEW
Example to view records of student having marks greater than 70 and course name is FOP
Display item details in descending order of item price using order by clause in select query
DATE FUNCTIONS
Write a query to find the last day of the month
SELECT
Example to find total value of each item based on current stock using multiplication operator in select query
Use the FRIENDS table to answer the following questions
CREATE USER
DROP 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