Home
Search results “Is not exists oracle”
EXIST Function in SQL
 
08:04
Join Discussion: http://www.techtud.com/video-lecture/exist-function-sql IMPORTANT LINKS: 1) Official Website: http://www.techtud.com/ 2) Virtual GATE: http://virtualgate.in/login/index.php Both of the above mentioned platforms are COMPLETELY FREE, so feel free to Explore, Learn, Practice & Share! Our Social Media Links: Facebook Page: https://www.facebook.com/techtuduniversity Facebook Group: https://www.facebook.com/groups/virtualgate Google+ Page: https://plus.google.com/+techtud/posts Last but not the least, SUBSCRIBE our YouTube channel to stay updated about the regularly uploaded new videos.
Views: 37002 Techtud
ORACLE SQL AND PL/SQL INTERVIEW QUESTION : SUBQUERY WITH NULL / NOT IN / NOT EXISTS OR OUTER JOIN
 
08:36
This video demonstrates the oracle sql interview question where one need to use either not in, not exists or an outer join to get the desired result. For example if one is asked to fetch records from department table where department_id is not present in employee table
Views: 2045 Kishan Mashru
IN VS EXISTS VS JOIN, performance
 
05:04
This video demonstrates the performance effects of using an exists clause instead of an IN clause, also it shows how we can update a simple sub query having an IN clause with an EXISTS or JOIN statement. It also shows that joining would consider the null data, where as an IN clause would neglect null values. If you want more such videos of exciting and amazing 'difference between' concepts, check out the links below : union and union all : https://youtu.be/n9FqQOd8liY char and varchar2 : https://youtu.be/039qzwjWf4k replace and translate : https://youtu.be/HKYF77BGzOE procedure and function : https://youtu.be/q3LmOenL120 rank and dense_rank : https://youtu.be/WGSX998hZ9M delete and truncate : https://youtu.be/u76wMm2byXo %type and %rowtype : https://youtu.be/MlLUFeZ_3eM
Views: 12285 Kishan Mashru
SQL Error ORA-00942 Table or View Does Not Exist in Oracle Database
 
05:03
How to use Tab View (Data Dictionary) of Oracle Database to solve the SQL Error ORA-00942 Table or View Does Not Exist error in Oracle Database ------------------------------------------------------------------------ ►►►LINKS◄◄◄ Blog: http://bit.ly/ora-00942 Previous Tutorial ► ------------------------------------------------------------------------- ►Make sure you SUBSCRIBE and be the 1st one to see my videos! ------------------------------------------------------------------------- ►►►Find me on Social Media◄◄◄ Follow What I am up to as it happens on https://twitter.com/rebellionrider http://instagram.com/rebellionrider https://plus.google.com/+Rebellionrider http://in.linkedin.com/in/mannbhardwaj/ ___Facebook Official Page of Manish Sharma___ https://www.facebook.com/TheRebellionRider/ ___Facebook Official Page of RebellionRider.com___ https://www.facebook.com/RebellionRider.official/ You can also Email me at for E-mail address please check the About section Please please LIKE and SHARE my videos it makes me happy. Thanks for liking, commenting, sharing and watching more of our videos This is Manish from RebellionRider.com ♥ I LOVE ALL MY VIEWERS AND SUBSCRIBERS
Views: 7149 Manish Sharma
Let's Learn SQL! Lesson 82 : EXIST and NOT EXIST Subqueries
 
03:37
Explore SQL with Tom Coffing of Coffing Data Warehousing! In this lesson, learn about EXIST and NOT EXIST Subqueries!
How to use exists statement
 
03:30
Hello Friends In this video i'm going to show you how to use exist in subquery step by step. #exists #oracletutorial #sql
Views: 6174 OCP Technology
PL/SQL tutorial 60: Collection Method EXISTS in Oracle Database by Manish Sharma
 
05:21
RebellionRider presents you the latest PL/SQL Tutorial 60 on Collection method EXISTS by Manish Sharma ------------------------------------------------------------------------ ►►►LINKS◄◄◄ Blog : http://bit.ly/exists-function Previous Tutorial ► ------------------------------------------------------------------------- ►Make sure you SUBSCRIBE and be the 1st one to see my videos! ------------------------------------------------------------------------- ►►►Find me on Social Media◄◄◄ Follow What I am up to as it happens on https://twitter.com/rebellionrider http://instagram.com/rebellionrider https://plus.google.com/+Rebellionrider http://in.linkedin.com/in/mannbhardwaj/ ___Facebook Official Page of Manish Sharma___ https://www.facebook.com/TheRebellionRider/ ___Facebook Official Page of RebellionRider.com___ https://www.facebook.com/RebellionRider.official/ You can also Email me at for E-mail address please check the About section Please please LIKE and SHARE my videos it makes me happy. Thanks for liking, commenting, sharing and watching more of our videos This is Manish from RebellionRider.com ♥ I LOVE ALL MY VIEWERS AND SUBSCRIBERS
Views: 7445 Manish Sharma
095- Oracle SQL 12c: Correlated Subquery / Exists /not exists
 
12:54
تعلم اوراكل حتى الاحتراف EXAM 1Z0-061 EXAM 1Z0-071
Views: 1793 khaled alkhudari
SQL Tutorial for beginners: Difference Between IN and EXISTS Operators in Oracle
 
06:58
Difference Between IN and EXISTS Operators in Oracle SQL Tutorial SQL Tutorial for beginners PLSQL Tutorial PLSQL Tutorial for beginners PL/SQL Tutorial PL SQL Tutorial PL SQL Tutorial for beginners PL/SQL Tutorial for beginners Oracle SQL Tutorial
Views: 728 TechLake
Difference between IN and EXISTS clause in database
 
04:18
Difference between IN and EXISTS clause in database
Views: 697 Techie Savy
DIFFERENCES BETWEEN IN AND EXISTS OPERATOR
 
18:11
IN AND EXISTS OPERATORS
Views: 2244 SAINAATTH PITTLA
THE MATRIX: THERE IS NO SPOON
 
01:11
Spoon boy: Do not try and bend the spoon. That's impossible. Instead... only try to realize the truth. Neo: What truth? Spoon boy: There is no spoon. Neo: There is no spoon? Spoon boy: Then you'll see, that it is not the spoon that bends, it is only yourself.
Views: 790306 Pablo PARRADO
The SQL EXISTS clause
 
08:52
How to use the EXISTS clause in SQL. For beginners.
Views: 23421 Database by Doug
#2-  Error ORA-01034: ORACLE not available  ORA-27101: shared memory realm does not exist
 
02:39
Question: I am getting the errors ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist. Cause: Oracle was not started up. SOLUTION : START UP DATABASE. #3- Error ORA 01045 user lacks CREATE SESSION privilege HD https://www.youtube.com/watch?v=pLqASraIMxM
Views: 5655 Houssine Formation
Oracle PL/SQL - Why does it exist?
 
08:04
Oracle PL/SQL - Why does it exist?
Views: 2444 Chris Ostrowski
ORACLE SQL AND PL/SQL INTERVIEW QUESTION : SUBQUERY WITH IN / EXISTS OR SELF JOIN
 
09:31
This video demonstrates the solution of the oracle sql interview question like, find the employees where there manager's salary is more than 15000. This is a classic example of using a subquery or a self join to get the result.
Views: 2653 Kishan Mashru
How to connect to an Oracle Database? - Database Tutorial 37
 
12:37
Video 37 - How to connect to a Oracle Database? - Database Tutorial 37 This video explains how to connection to an oracle database. The database, which is Oracle 11g has been installed in a Windows 7 computer.
Views: 119906 Sam Dhanasekaran
EXISTS Condition in Oracle Database
 
11:07
#Exists oracle exists vs in, if exists in oracle, oracle not exists vs not in, difference between in and exists in oracle, case when exists oracle, oracle check if record exists, if not exists in oracle, oracle update where exists
Views: 23 Adam Tech
exists and not exists in SQL
 
04:38
Explaining usage of exists and not exists
FIX: ORA-01034 | Oracle Not Available | ORA-27101 | IO ERROR
 
02:05
Please watch: "How to Rank Videos at #1 in Urdu/Hindi 2017, Using Tube Rank Jeet | SEO | Complete" https://www..com/watch?v=65dqd_lNpoc -~-~~-~~~-~~-~- For More Videos, Please Subscribe my Channel: https://www..com/channel/UCimOZdmTEByzJCpU6ARkuFg?sub_confirmation=1 How to connect to a Oracle Database? This video explains how to connection to an oracle database. The database, which is Oracle 11g has been installed in a Windows 7/Linux computer, steps to connect to oracle database through command prompt.....!!!!, In this video you are able to resolve the following oracle database error: 1) ORA-01034: Oracle not available, 2) ORA-27101: Shared memory realm does not exist, 3) IO Error: The network adaptor could not establish the connection, solution of error: Status : Failure -Test failed: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor, - Oracle: TNS Error | Protocol Adaptor Error | No Listner, https://www..com/watch?v=s4C5ZBRzJLQ Website: http://mohammadzohaibsplixed.blogspot.com Emails: [email protected] [email protected] Facebook: https://www.facebook.com/SplixeD (Profile) https://www.facebook.com/MohammadZohaibSplixed (Page) Twitter: https://twitter.com/Mr_Zobi Skype: mohammadzohaibsplixed Song: Dread Pitt - Pyro
Understanding Correlated Queries in SQL
 
08:13
Join Discussion: http://www.techtud.com/video-lecture/understanding-correlated-queries-sql IMPORTANT LINKS: 1) Official Website: http://www.techtud.com/ 2) Virtual GATE: http://virtualgate.in/login/index.php Both of the above mentioned platforms are COMPLETELY FREE, so feel free to Explore, Learn, Practice & Share! Our Social Media Links: Facebook Page: https://www.facebook.com/techtuduniversity Facebook Group: https://www.facebook.com/groups/virtualgate Google+ Page: https://plus.google.com/+techtud/posts Last but not the least, SUBSCRIBE our YouTube channel to stay updated about the regularly uploaded new videos.
Views: 50142 Techtud
How to use EXISTS and NOT EXISTS in correlated Subqueries in Sql Server
 
09:53
EXISTS in correlated Subqueries in Sql Server, NOT EXISTS in correlated Subqueries in Sql Server
Views: 52 C Plus+
SQL SELECT - 13 - SUBCONSULTAS: EXISTS
 
03:57
Todo lo que necesitas en: http://tutorialesnet.com Redes Sociales: http://tutorialesnet.com/twitter http://tutorialesnet.com/facebook
Views: 6986 TutorialesNET
EXISTS Operator in SQL Server
 
06:17
Click here to Subscribe to IT PORT Channel : https://www.youtube.com/channel/UCMjmoppveJ3mwspLKXYbVlg Specifies a subquery to test for the existence of rows. In this video you can check Exists and Not Exists with Simple Example
Views: 881 IT Port
IN v/s EXISTS v/s JOIN, which one will give better performance under what condition?
 
04:56
This video demonstrates the performance effects of using an exists clause instead of an IN clause, also it shows how we can update a simple sub query having an IN clause with an EXISTS or JOIN statement. It also shows that joining would consider the null data, where as an IN clause would neglect null values.
Views: 1115 Kishan Mashru
Difference between Case and Decode
 
10:14
This video tutorial explains on how case statement and decode function are different from each other. Though both of them are used in giving the if-then-else conditional functionality to sql statement, they differ much from each other, this video will walk through each of the difference with appropriate examples. If you want more such videos of exciting and amazing 'difference between' concepts, check out the links below : char and varchar2 : https://youtu.be/039qzwjWf4k replace and translate : https://youtu.be/HKYF77BGzOE procedure and function : https://youtu.be/q3LmOenL120 in and exists : https://youtu.be/REX4IjRYlFw rank and dense_rank : https://youtu.be/WGSX998hZ9M delete and truncate : https://youtu.be/u76wMm2byXo %type and %rowtype : https://youtu.be/MlLUFeZ_3eM
Views: 12528 Kishan Mashru
Oracle Sql : Exists Clause
 
21:26
Topic : Exists Clause 19th Video of this Series Comments/Suggestions are welcome get in touch with us, by mailing [email protected] for Upcoming trainings. This is an Unedited Video from the Live sessions on Sql (RDBMS) I will be posting a complete series of these tutorials on this channel, If you would like to be notified every time i post something ; Please subscribe to this channel and press the bell icon.
Views: 44 CodeSmith 001
Oracle Operators in Oracle Database | Oracle Tutorial for Beginners
 
16:42
Oracle Operators in Oracle Database | Oracle Tutorial for Beginners Oracle Operators BETWEEN AND . NOT BETWEEN AND IS NULL and IS NOT NULL LIKE Operator in Oracle NOT LIKE Operators in Oracle IN and NOT IN Oracle SQL Oracle tutorials for Beginners oracle query between two timestamps oracle between inclusive oracle sql between two dates with time oracle between exclusive sql between dates sql between datetime sql between inclusive or exclusive between clause in oracle for date oracle not in vs not exists oracle not exists in condition in oracle oracle sql not in subquery oracle not in null if not exists in oracle not equal to in oracle not like in oracle how to select null values in oracle oracle case is null oracle compare null values in where clause oracle sql not null or empty oracle is not null oracle case when not null then how to handle null in case statement in oracle is null in oracle not like in oracle with multiple values oracle not like wildcard oracle sql like multiple values if not in oracle pl sql sql query not like multiple values how to pass parameter in like operator in oracle regexp_like in oracle oracle not equal
Views: 396 Oracle PL/SQL World
DYNAMIC SQL WITH EXECUTE IMMEDIATE IN ORACLE PL/SQL WITH EXAMPLE
 
21:53
The audio and video now synced. Ever tried creating a table inside a PL SQL block, or a function or a procedure? If yes, then you would know that it would raise an error, as DDL statements are not allowed inside a PL/SQL Block. So the solution to such a case, where you want to generate tables, or sequences or want to execute any DDL statement on the fly, then use synamic sql. Dynamic SQL statment will allow you to create state statements on the fly and then you can execute them using the execute immediate statement. This video tutorial demonstrates on this topic of using synamic sql with execute immediate in a PL/SQL block.
Views: 4994 Kishan Mashru
insert data that not exist in second table in oracle sql.
 
03:28
this tutorial in insert data that not exist in second table means you can select the who table. in oracle you have to learn about all concept and query that help full in features. #insert #oracletutorial #oracleprogramming #multiinsert
Views: 12 EasyWay Coding
Oracle - SQL - Subqueries
 
13:27
Oracle - SQL - Subqueries Watch more Videos at https://www.tutorialspoint.com/videotutorials/index.htm Lecture By: Mr. Anadi Sharma, Tutorials Point India Private Limited.
Using Exists Clause With Correlated Subquery in Oracle Database
 
08:07
Exists Clause in Correlated Subqueries with Oracle Database
Views: 29 Adam Tech
Subquery vs Correlated Subquery in Oracle Database
 
03:20
Difference between Correlated and Non-Correlated Subquery in Oracle Database, correlated subquery vs non correlated subquery in Oracle, when to use correlated subquery in Oracle, correlated subquery example in oracle, correlated vs uncorrelated subquery performance in Oracle
Views: 54 Adam Tech
EXISTS Operator in SQL Server Tamil
 
05:05
Click here to Subscribe to IT PORT Channel : https://www.youtube.com/channel/UCMjmoppveJ3mwspLKXYbVlg Specifies a subquery to test for the existence of rows. In this video you can check Exists and Not Exists with Simple Example Explained in Tamil
Views: 397 IT Port
Oracle da SQL asoslari 34 NOT IN, NOT EXISTS
 
03:25
Darslar rivojiga hissa qo'shishni istovchilar uchun PayMe: 8600 1309 2342 8959 WEB MONEY ID: Z193564615070 yoki R769659687039
ORACLE NOT CONNECTED problem SOLVED
 
02:27
Oracle is Database management system. We can use Oracle by command promt also ut some times the services get stopped and we cannot connect the oracle. Here is the solution to connect oracle. For more videos Dont forget to SUBSCRIBE. ====================================================== oracle 12c,oracle database 12c,ora 12154,my oracle,oracle e delivery,ora-12505,ora-01031 insufficient privileges,w3schools,tablespace in oracle,oracle express edition,flashback in oracle,sql developer download ,oracle express download ,oracle create user,cbt nuggets ,oracle interview questions ,tnsnames.ora,oracle database express ,oracle 11g express ,,oracle express,create table oracle ,oracle sql developer -~-~~-~~~-~~-~- Please watch: "PUBG ADDICTION - Ban PUBG in NEPAL" https://www.youtube.com/watch?v=j0Ub5EvS7UA -~-~~-~~~-~~-~-
Views: 5051 pathak media
Merge Statement in Oracle SQL with Example (UPDATE/DELETE or INSERT)
 
15:04
This video demonstrates how to write a Merge Statement in oracle sql, how it is useful in doing a conditional update or delete or both of them when the condition between the target table and source table is evaluated to true, and how we can insert the record into the target table when condition is evaluated to false. The video also shows the use of UPDATE, DELETE and INSERT with Merge, and also the various possible ways to use a Merge statement!!!
Views: 9090 Kishan Mashru
59. Subquery in PL/SQL Oracle
 
19:12
In this video you will learn about Subquery in Oracle. For Support =========== Email: [email protected] Contact Form: http://www.learninhindi.com/home/contact Our Social Media ================ Facebook: https://www.facebook.com/LearnInHindi Twitter: https://twitter.com/LearnInHindi For Training & Videos ===================== For more videos and articles visit: http://www.learninhindi.com Free Java Programming In Hindi Course ===================================== https://www.youtube.com/playlist?list=PLOZ3jentlCDAwwhMyoLISrxkXTADGp7PH Free Oracle PL/SQL Programming In Hindi Course ============================================== https://www.youtube.com/playlist?list=PLB5DA82419C2D99B6 Free C Programming In Hindi Course ================================== https://www.youtube.com/playlist?list=PLOZ3jentlCDAxKpBLMWogxSdy6BZcsAJq Trips & Tricks Channel ====================== https://www.youtube.com/channel/UCGmLfkuCo-3lHHJXRJ9HUMw Programming in Hindi Channel ============================ https://www.youtube.com/channel/UCudElIDgwNrybeAvXIy1HZQ
Views: 6274 ITORIAN
HAVING clause and difference with GROUP BY & WHERE clause in SQL statement
 
10:17
Using HAVING clause and difference with GROUP BY & WHERE clause in SQL statement Link for scripts on my blog: https://sqlwithmanoj.com/2015/05/23/sql-basics-difference-between-where-group-by-and-having-clause/ Check the whole "SQL Server Basics" series here: https://www.youtube.com/playlist?list=PLU9JMEzjCv14f3cWDhubPaddxRvx1reKR Check my SQL blog at: http://sqlwithmanoj.com/ Check my SQL FB Page at: https://www.facebook.com/sqlwithmanoj
Views: 66328 SQL with Manoj
SQL Server except operator
 
05:14
sql except example sql except operator example sql server except example sql server except order by sql server except clause SQL Server except operator In this video we will discuss SQL Server except operator with examples. EXCEPT operator returns unique rows from the left query that aren’t in the right query’s results. Introduced in SQL Server 2005 The number and the order of the columns must be the same in all queries The data types must be same or compatible This is similar to minus operator in oracle Let us understand this with an example. SQL Script to create the tables Create Table TableA ( Id int primary key, Name nvarchar(50), Gender nvarchar(10) ) Go Insert into TableA values (1, 'Mark', 'Male') Insert into TableA values (2, 'Mary', 'Female') Insert into TableA values (3, 'Steve', 'Male') Insert into TableA values (4, 'John', 'Male') Insert into TableA values (5, 'Sara', 'Female') Go Create Table TableB ( Id int primary key, Name nvarchar(50), Gender nvarchar(10) ) Go Insert into TableB values (4, 'John', 'Male') Insert into TableB values (5, 'Sara', 'Female') Insert into TableB values (6, 'Pam', 'Female') Insert into TableB values (7, 'Rebeka', 'Female') Insert into TableB values (8, 'Jordan', 'Male') Go Notice that the following query returns the unique rows from the left query that aren’t in the right query’s results. Select Id, Name, Gender From TableA Except Select Id, Name, Gender From TableB To retrieve all of the rows from Table B that does not exist in Table A, reverse the two queries as shown below. Select Id, Name, Gender From TableB Except Select Id, Name, Gender From TableA You can also use Except operator on a single table. SQL script to create tblEmployees table Create table tblEmployees ( Id int identity primary key, Name nvarchar(100), Gender nvarchar(10), Salary int ) Go Insert into tblEmployees values ('Mark', 'Male', 52000) Insert into tblEmployees values ('Mary', 'Female', 55000) Insert into tblEmployees values ('Steve', 'Male', 45000) Insert into tblEmployees values ('John', 'Male', 40000) Insert into tblEmployees values ('Sara', 'Female', 48000) Insert into tblEmployees values ('Pam', 'Female', 60000) Insert into tblEmployees values ('Tom', 'Male', 58000) Insert into tblEmployees values ('George', 'Male', 65000) Insert into tblEmployees values ('Tina', 'Female', 67000) Insert into tblEmployees values ('Ben', 'Male', 80000) Go Except operator on a single table Select Id, Name, Gender, Salary From tblEmployees Where Salary ]= 50000 Except Select Id, Name, Gender, Salary From tblEmployees Where Salary ]= 60000 Order By clause should be used only once after the right query Select Id, Name, Gender, Salary From tblEmployees Where Salary ]= 50000 Except Select Id, Name, Gender, Salary From tblEmployees Where Salary ]= 60000 order By Name Text version of the video http://csharp-video-tutorials.blogspot.com/2015/09/sql-server-except-operator.html Slides http://csharp-video-tutorials.blogspot.com/2015/09/adsbygoogle-window.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 41103 kudvenkat
SQL EXISTS VE NOT EXISTS KULLANIMI
 
05:49
SQL: EXISTS Condition This SQL tutorial explains how to use the SQL EXISTS condition with syntax and examples. Click the Try It button next to an example to test it for yourself in our SQL Editor. Description The SQL EXISTS condition is used in combination with a subquery and is considered to be met, if the subquery returns at least one row. It can be used in a SELECT, INSERT, UPDATE, or DELETE statement.
Views: 67 gracia heys
VIEWS IN ORACLE SQL WITH EXAMPLES
 
15:13
This video explains about views in Oracle SQL, views are integral part of any database, and its important to clearly understand views to work with them. Views are named and stored sql statements which would be executed once we call the view, views in whole do not store the data except if its a Materialized view. Views are widely used in day to day programming and can be useful in various cases, we discussed about all those cases in this video. If you would like to learn more on materialized view, visit the below videos https://youtu.be/7PklhTCNxxw https://youtu.be/EDf8Pk-x_nA If you want to know the difference between views and Materialized view, visit https://youtu.be/BnNKws_7_jc Visit our blog at www.oracleplsqlblog.com All out youtube videos: www.youtube.com/c/kishanmashru
Views: 1496 Kishan Mashru
6 of 6  SQL Advanced with Oracle - Solving a "division" problem
 
08:06
This video explains a way to answer the "division" question in relational databases. The division problem asks: Which records in data set A correspond to every record in data set B? For example, which employees have attended all the company's training sessions? The problem is answered by using a subquery in the HAVING clause. (6 of 6) There is also an "SQL Fundamentals" series. (Search for "databasemec" for tutorials using SQL Server.)
Views: 12897 Jennifer Kreie
Oracle SQL Programming Lesson 4 in Jinghpaw Language - Set Operators
 
28:24
Compiling SQL queries using Union, Union All, Intercept, Minus, Where Exists, Where Not Exists Operators against the oracle database tables. Please watch in HD format for better video quality. --append/stack data (union,union all) --UNION removes duplicate rows. --UNION ALL does not remove duplicate rows. --Each SELECT statement within the UNION must have the same number of fields in the result sets with similar data types. select 'foo' as test_column from dual union select 'foo' as test_column from dual; select distinct test_column from (select 'foo' as test_column from dual union all select 'foo' as test_column from dual); Select region_name from regions Union Select region_name from regions; select first_name,last_name,job_id,manager_id,salary,deptment_id from employees where department_id in (20,60); --Union /union all select job_id,manager_id,'DEPT 20' as dept from employees where department_id=20 union all select job_id,manager_id,'DEPT 60' as dept from employees where department_id=60; --intersect returns only the rows common to the results of two queries select 'foo' as test_column from dual intersect select 'foo' as test_column from dual; Select region_name from regions; Select region_name from regions intersect Select region_name from regions; -- minus=except returns the rows from the first query that do not exist in the second query select 'foo' as test_column from dual minus select 'foo' as test_column from dual; Select region_name from regions minus Select region_name from regions; select first_name,last_name,job_id,manager_id,salary,'DEPT 20' as dept from employees where department_id=20 minus select first_name,last_name,job_id,manager_id,salary,'DEPT 60' as dept from employees where department_id=60; --complex compound queries Select department_id, count(*) from employees Where department_id in (20,30,40) Group by department_id; Select department_id, count(*) from employees Where department_id in (20) Group by department_id Union all Select department_id, count(*) from employees Where department_id in (30) Group by department_id Union all Select department_id, count(*) from employees Where department_id in (40) Group by department_id; Select department_id, count(*) from employees Where department_id in (20) Group by department_id intersect Select department_id, count(*) from employees Where department_id in (30) Group by department_id minus Select department_id, count(*) from employees Where department_id in (40) Group by department_id; Select department_id, count(*) from employees Where department_id in (20) Group by department_id Union Select department_id, count(*) from employees Where department_id in (30) Group by department_id Union all Select department_id, count(*) from employees Where department_id in (40) Group by department_id; --where exists, in / not exists, not in select e.last_name, e.department_id, e.salary from employees e where exists (select * from departments d where e.department_id=d.department_id); select e.last_name, e.department_id, e.salary from employees e where e.department_id in (select department_id from departments); select e.last_name, e.department_id, e.salary from employees e where not exists (select * from departments d where e.department_id=d.department_id); select e.last_name, e.department_id, e.salary from employees e where e.department_id not in (select department_id from departments);
Views: 42 Hkau Doi
how to set classpath for jdbc driver
 
02:32
how to set the classpath in java for jdbc programs in windows
Views: 43831 www.itsoftpoint.com
Subqueries: Databases for Developers #11
 
07:45
In SQL you can base queries on the results of other queries. This video explains the various types of subquery and their uses, covering: - Inline views - IN & EXISTS - Common table expressions/subquery factoring/with clause - Scalar subqueries Take the course; Databases for Developers: Next Level https://blogs.oracle.com/academy/take-your-sql-skills-to-the-next-level-with-this-free-online-10-part-tutorial Further reading: About Queries and Subqueries: https://docs.oracle.com/en/database/oracle/oracle-database/18/sqlrf/About-Queries-and-Subqueries.html Using Subqueries: https://docs.oracle.com/en/database/oracle/oracle-database/18/sqlrf/Using-Subqueries.html Need help with SQL? Ask us over on AskTOM: https://asktom.oracle.com Twitter: https://twitter.com/ChrisRSaxon Daily SQL Twitter tips: https://twitter.com/SQLDaily All Things SQL blog: https://blogs.oracle.com/sql/ ============================ The Magic of SQL with Chris Saxon Copyright © 2015 Oracle and/or its affiliates. Oracle is a registered trademark of Oracle and/or its affiliates. All rights reserved. Other names may be registered trademarks of their respective owners. Oracle disclaims any warranties or representations as to the accuracy or completeness of this recording, demonstration, and/or written materials (the “Materials”). The Materials are provided “as is” without any warranty of any kind, either express or implied, including without limitation warranties or merchantability, fitness for a particular purpose, and non-infringement.
Views: 1665 The Magic of SQL