TheDeveloperBlog.com

Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

Oracle EXISTS

Oracle EXISTS for beginners and professionals with examples on insert, select, update, delete, table, view, join, key, functions, procedures, indexes, cursor etc.

<< Back to ORACLE

ORACLE EXISTS

In Oracle, exists clause is used with select, insert, update, delete statements. It is used to combine the queries and creating subquery.

Syntax

Where exists (subquery)

Parameters

subquery: It is a select statement which returns at least one record set.

Table 1:

ORACLE EXISTS

Table 1:

ORACLE EXISTS

Example 1

Query: select name from table1 where exists (select *from table2 where table1.id=table2.id)

ORACLE EXISTS

Example 2

Query: select id, salary from table2 where exists (select *from table1 where table2.id=table1.id)

ORACLE EXISTS

Example 3

Query: select * from table1 where not exists (select *from table2 where table1.id=table2.id)

ORACLE EXISTS
Next TopicIN




Related Links:


Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf