Home
Search results “Not intersect in oracle”
15 of 15 SQL Basics with Oracle - Traditional set operators: UNION, INTERSECT & MINUS
 
09:56
This video gives examples of three set operators: UNION, INTERSECT, MINUS. The union compatible rule is also explained. Set operators are used when output comes from more than one SQL statement. (15 of 15) There is also an "Advanced SQL" series. (Search for "databasemec" for tutorials using SQL Server.)
Views: 12584 Jennifer Kreie
SQL tutorial 69: Intersect and Minus SQL set operators (Free Practice Sheet)
 
03:00
Second sql tutorial in SQL set operators covering concepts of Intersect and Minus set operators with Example and Free Practice sheet By Manish Sharma RebellionRider ------------------------------------------------------------------------ ►►►LINKS◄◄◄ Blog : http://bit.ly/intersect-minus-set-operator Previous Tutorial ► UNION & UNION ALL https://youtu.be/mLo3PDRJ2kI FREE PRACTICE SHEET ►http://bit.ly/Set-operators-practice ------------------------------------------------------------------------- ►►►Let's Get Free Uber Cab◄◄◄ Use Referral Code UberRebellionRider and get $20 free for your first ride. ------------------------------------------------------------------------- ►►►Help Me In Getting A Job◄◄◄ ►Help Me In Getting A Good Job By Connecting With Me on My LinkedIn and Endorsing My Skills. All My Contact Info is Down Below. You Can Also Refer Me To Your Company Thanks ------------------------------------------------------------------------- Copy Cloud referral link || Use this link to join copy cloud and get 20GB of free storage https://copy.com?r=kb4rc1 -------------------------------------------------------------------------- ►Make sure you SUBSCRIBE and be the 1st one to see my videos! -------------------------------------------------------------------------- Amazon Wishlist: http://bit.ly/wishlist-amazon ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ►►►Find me on Social Media◄◄◄ Follow What I am up to as it happens on https://twitter.com/rebellionrider https://www.facebook.com/imthebhardwaj http://instagram.com/rebellionrider https://plus.google.com/+Rebellionrider http://in.linkedin.com/in/mannbhardwaj/ http://rebellionrider.tumblr.com/ http://www.pinterest.com/rebellionrider/ You can also Email me at for E-mail address please check 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: 20889 Manish Sharma
Difference between union intersect and except in sql server
 
03:50
difference between union and union all difference between intersect and union difference between intersect and except in sql server union vs union all sql server union vs intersect sql server intersect vs except In this video we will discuss the difference between union intersect and except in sql server with examples. UNION operator returns all the unique rows from both the left and the right query. UNION ALL included the duplicates as well. INTERSECT operator retrieves the common unique rows from both the left and the right query. EXCEPT operator returns unique rows from the left query that aren’t in the right query’s results. UNION operator returns all the unique rows from both the queries. Notice the duplicates are removed. Select Id, Name, Gender from TableA UNION Select Id, Name, Gender from TableB UNION ALL operator returns all the rows from both the queries, including the duplicates. Select Id, Name, Gender from TableA UNION ALL Select Id, Name, Gender from TableB INTERSECT operator retrieves the common unique rows from both the left and the right query. Notice the duplicates are removed. Select Id, Name, Gender from TableA INTERSECT Select Id, Name, Gender from TableB EXCEPT operator returns 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 If you wnat the rows that are present in Table B but not in Table A, reverse the queries. Select Id, Name, Gender from TableB EXCEPT Select Id, Name, Gender from TableA For all these 3 operators to work the following 2 conditions must be met The number and the order of the columns must be same in both the queries The data types must be same or at least compatible For example, if the number of columns are different, you will get the following error Msg 205, Level 16, State 1, Line 1 All queries combined using a UNION, INTERSECT or EXCEPT operator must have an equal number of expressions in their target lists. Text version of the video http://csharp-video-tutorials.blogspot.com/2015/09/difference-between-union-intersect-and.html Slides http://csharp-video-tutorials.blogspot.com/2015/09/difference-between-union-intersect-and_7.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: 38168 kudvenkat
SQL tutorial 68: Union and Union All SQL Set Operator In Oracle Database By RebellionRider
 
05:23
Union and Union all Set operator in SQL/Oracle Database with example also the difference between union and union all. NExt tutorial will cover Intersect and minus set operator. Manish Sharma RebellionRider ------------------------------------------------------------------------ ►►►LINKS◄◄◄ Blog :http://bit.ly/union-union-all-set-operator-oracle ------------------------------------------------------------------------- ►►►Let's Get Free Uber Cab◄◄◄ Use Referral Code UberRebellionRider and get $20 free for your first ride. ------------------------------------------------------------------------- ►►►Help Me In Getting A Job◄◄◄ ►Help Me In Getting A Good Job By Connecting With Me on My LinkedIn and Endorsing My Skills. All My Contact Info is Down Below. You Can Also Refer Me To Your Company Thanks ------------------------------------------------------------------------- Copy Cloud referral link || Use this link to join copy cloud and get 20GB of free storage https://copy.com?r=kb4rc1 -------------------------------------------------------------------------- ►Make sure you SUBSCRIBE and be the 1st one to see my videos! -------------------------------------------------------------------------- Amazon Wishlist: http://bit.ly/wishlist-amazon ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ►►►Find me on Social Media◄◄◄ Follow What I am up to as it happens on https://twitter.com/rebellionrider https://www.facebook.com/imthebhardwaj http://instagram.com/rebellionrider https://plus.google.com/+Rebellionrider http://in.linkedin.com/in/mannbhardwaj/ http://rebellionrider.tumblr.com/ http://www.pinterest.com/rebellionrider/ You can also Email me at for E-mail address please check 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: 26051 Manish Sharma
SQL UNION, INTERSECT, EXCEPT
 
08:44
Jamie King of Neumont University demonstrating UNION, INTERSECT, and EXCEPT.
Views: 45213 Jamie King
137. INTERSECT and EXCEPT in SQL (Hindi)
 
04:40
Please Subscribe Channel Like, Share and Comment Visit : www.geekyshows.com
Views: 6054 Geeky Shows
Part 27   Union, Intersect and Except operators in LINQ
 
04:42
The following operators belong to Set operators category Distinct Union Intersect Except We discussed Distinct operator in Part 26. In this video we will discuss Union, Intersect and Except operators. Union combines two collections into one collection while removing the duplicate elements. Example 1: numbers1 and numbers2 collections are combined into a single collection. Notice that, the duplicate elements are removed. int[] numbers1 = { 1, 2, 3, 4, 5 }; int[] numbers2 = { 1, 3, 6, 7, 8 }; var result = numbers1.Union(numbers2); foreach (var v in result) { Console.WriteLine(v); } When comparing elements, just like Distinct() method, Union(), Intersect() and Except() methods work in a slightly different manner with complex types like Employee, Customer etc. Example 2 : Notice that in the output the duplicate employee objects are not removed. This is because, the default comparer is being used which will just check for object references being equal and not the individual property values. List[Employee] list1 = new List[Employee]() { new Employee { ID = 101, Name = "Mike"}, new Employee { ID = 102, Name = "Susy"}, new Employee { ID = 103, Name = "Mary"} }; List[Employee] list2 = new List[Employee]() { new Employee { ID = 101, Name = "Mike"}, new Employee { ID = 104, Name = "John"} }; var result = list1.Union(list2); foreach (var v in result) { Console.WriteLine(v.ID + "\t" + v.Name); } Example 3 : To solve the problem in Example 2, there are 3 ways 1. Use the other overloaded version of Union() method to which we can pass a custom class that implements IEqualityComparer 2. Override Equals() and GetHashCode() methods in Employee class 3. Project the properties into a new anonymous type, which overrides Equals() and GetHashCode() methods Project the properties into a new anonymous type, which overrides Equals() and GetHashCode() methods List[Employee] list1 = new List[Employee]() { new Employee { ID = 101, Name = "Mike"}, new Employee { ID = 102, Name = "Susy"}, new Employee { ID = 103, Name = "Mary"} }; List[Employee] list2 = new List[Employee]() { new Employee { ID = 101, Name = "Mike"}, new Employee { ID = 104, Name = "John"} }; var result = list1.Select(x =] new { x.ID, x.Name }).Union(list2.Select(x =] new { x.ID, x.Name })); foreach (var v in result) { Console.WriteLine(v.ID + "\t" + v.Name); } Intersect() returns the common elements between the 2 collections. Example 4 : Return common elements in numbers1 and numbers2 collections. int[] numbers1 = { 1, 2, 3, 4, 5 }; int[] numbers2 = { 1, 3, 6, 7, 8 }; var result = numbers1.Intersect(numbers2); foreach (var v in result) { Console.WriteLine(v); } Except() returns the elements that are present in the first collection but not in the second collection. Example 5: Return the elements that are present in the first collection but not in the second collection. int[] numbers1 = { 1, 2, 3, 4, 5 }; int[] numbers2 = { 1, 3, 6, 7, 8 }; var result = numbers1.Except(numbers2); foreach (var v in result) { Console.WriteLine(v); }
Views: 24660 kudvenkat
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: 42068 kudvenkat
SQL Tutorial - 17: Logical Operators (Part-1)
 
10:42
In this tutorial we'll be checking out some of the most important logical operators.
Views: 57884 The Bad Tutorials
Intersect operator in sql server
 
05:29
sql intersect vs join sql server intersect example sql server intersect vs inner join sql server inner join remove duplicates In this video we will discuss 1. Intersect operator in sql server 2. Difference between intersect and inner join Intersect operator retrieves the common records from both the left and the right query of the Intersect operator. Introduced in SQL Server 2005 The number and the order of the columns must be same in both the queries The data types must be same or at least compatible Let us understand INTERSECT operator with an example. The following query retrieves the common records from both the left and the right query of the Intersect operator. Select Id, Name, Gender from TableA Intersect Select Id, Name, Gender from TableB We can also achieve the same thinkg using INNER join. The following INNER join query would produce the exact same result. Select TableA.Id, TableA.Name, TableA.Gender From TableA Inner Join TableB On TableA.Id = TableB.Id What is the difference between INTERSECT and INNER JOIN 1. INTERSECT filters duplicates and returns only DISTINCT rows that are common between the LEFT and Right Query, where as INNER JOIN does not filter the duplicates. To understand this difference, insert the following row into TableA Insert into TableA values (2, 'Mary', 'Female') Now execute the following INTERSECT query. Notice that we get only the DISTINCT rows Select Id, Name, Gender from TableA Intersect Select Id, Name, Gender from TableB Now execute the following INNER JOIN query. Notice that the duplicate rows are not filtered. Select TableA.Id, TableA.Name, TableA.Gender From TableA Inner Join TableB On TableA.Id = TableB.Id You can make the INNER JOIN behave like INTERSECT operator by using the DISTINCT operator Select DISTINCT TableA.Id, TableA.Name, TableA.Gender From TableA Inner Join TableB On TableA.Id = TableB.Id 2. INNER JOIN treats two NULLS as two different values. So if you are joining two tables based on a nullable column and if both tables have NULLs in that joining column then, INNER JOIN will not include those rows in the result-set, where as INTERSECT treats two NULLs as a same value and it returns all matching rows. To understand this difference, execute the following 2 insert statements Insert into TableA values(NULL, 'Pam', 'Female') Insert into TableB values(NULL, 'Pam', 'Female') INTERSECT query Select Id, Name, Gender from TableA Intersect Select Id, Name, Gender from TableB INNER JOIN query Select TableA.Id, TableA.Name, TableA.Gender From TableA Inner Join TableB On TableA.Id = TableB.Id Text version of the video http://csharp-video-tutorials.blogspot.com/2015/09/intersect-operator-in-sql-server.html Slides http://csharp-video-tutorials.blogspot.com/2015/09/intersect-operator-in-sql-server_6.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: 39370 kudvenkat
Oracle Database Tutorial 70: IO ERROR: The network adapter could not establish the connection
 
03:34
IO ERROR: The network adapter could not establish the connection Learn how to solve this Oracle Database / SQL Developer Error with in 4 minutes ------------------------------------------------------------------------ ►►►LINKS◄◄◄ Blog : http://bit.ly/sql-developer-error-the-network-adapter-could-not-establish-the-connection Previous Tutorial ► Intersect and Minus SQL set operators https://youtu.be/sDZFpwEw1k8 ------------------------------------------------------------------------- ►►►Let's Get Free Uber Cab◄◄◄ Use Referral Code UberRebellionRider and get $20 free for your first ride. ------------------------------------------------------------------------- ►►►Help Me In Getting A Job◄◄◄ ►Help Me In Getting A Good Job By Connecting With Me on My LinkedIn and Endorsing My Skills. All My Contact Info is Down Below. You Can Also Refer Me To Your Company Thanks ------------------------------------------------------------------------- Copy Cloud referral link || Use this link to join copy cloud and get 20GB of free storage https://copy.com?r=kb4rc1 -------------------------------------------------------------------------- ►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 https://www.facebook.com/imthebhardwaj http://instagram.com/rebellionrider https://plus.google.com/+Rebellionrider http://in.linkedin.com/in/mannbhardwaj/ http://rebellionrider.tumblr.com/ http://www.pinterest.com/rebellionrider/ You can also Email me at for E-mail address please check About section 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: 157648 Manish Sharma
07 of 15 SQL Basics with Oracle - Logical Operators: AND, OR, NOT
 
08:49
This video has examples of logical operators. These are used in the WHERE clause of an SQL command to filter data based on multiple criteria, i.e. to only show data that meets certain criteria. (7 of 15) There is also an "Advanced SQL" series. (Search for "databasemec" for tutorials using SQL Server.)
Views: 2901 Jennifer Kreie
34. SQL MINUS and MINUS vs LEFT JOIN
 
13:01
SQL Minus(-) Operator with example. This video explains how the keywords INTERSECT, UNION, UNION ALL, MINUS, and EXCEPT are used in SQL. For INTERSECT visit : https://youtu.be/sogh3fKoGy8
Views: 659 ProSchool
SQL Minus(-) Operator with example in Oracle 11g Database(Hindi+English)
 
05:23
SQL Tutorial for Beginners in Hindi and English SQL Minus(-) Operator with example in Oracle 11g Database(Hindi+English)
Oracle interview question difference between null functions
 
07:23
Difference between NVL,NVL2, NULLIF and COALESCE NVL function will check whether the first input parameter is null, if first input parameter is null then the function returns the second parameter value as output. NVL2 function will check the first parameter, and return second parameter if the first parameter is not null, otherwise returns third parameter. NULLIF will compare the input parameters ( first and second parameter ), and returns NULL of both are same, otherwise returns the first parameter value. COALESCE, returns the first not null expression in the given input parameters. -------------------------------------------------------------------------------------------------------- List of all the SQL and PLSQL interview questions https://easy-learning-tech.blogspot.com/p/oracle-sql-plsql-interview-questions.html
Views: 931 Siva Academy
SQL AND/OR Operator with Example in Oracle 11g Database
 
09:56
SQL Tutorial for Beginners in Hindi and English SQL AND/OR Operator with Example in Oracle 11g Database
SQL Intersect, Union, Union All, Minus, and Except
 
01:56
This video explains how the keywords INTERSECT, UNION, UNION ALL, MINUS, and EXCEPT are used in SQL.
Views: 46637 1Keydata
Learn Oracle | SQL Operators and their Precedence
 
05:06
Pebbles present, Learn Oracle 10g with Step By Step Video Tutorials. Learn Oracle 10g Tutorial series contains the following videos : Learn Oracle - History of Oracle Learn Oracle - What is Oracle - Why do we need Oracle Learn Oracle - What is a Database Learn Oracle - What is Grid Computing Learn Oracle - What is Normalization Learn Oracle - What is ORDBMS Learn Oracle - What is RDBMS Learn Oracle - Alias Names, Concatenation, Distinct Keyword Learn Oracle - Controlling and Managing User Access (Data Control Language) Learn Oracle - Introduction to SQL Learn Oracle - Oracle 10g New Data Types Learn Oracle - How to Alter a Table using SQL Learn Oracle - How to Create a Package in PL SQL Learn Oracle - How to Create a Report in SQL Plus Learn Oracle - How to Create a Table using SQL - Not Null, Unique Key, Primary Key Learn Oracle - How to Create a Table using SQL Learn Oracle - How to Create a Trigger in PL SQL Learn Oracle - How to Delete Data from a Table using SQL Learn Oracle - How to Drop and Truncate a Table using SQL Learn Oracle - How to Insert Data in a Table using SQL Learn Oracle - How to open ISQL Plus for the first time Learn Oracle - How to Open SQL Plus for the First Time Learn Oracle - How to Update a Table using SQL Learn Oracle - How to use Aggregate Functions in SQL Learn Oracle - How to use Functions in PL SQL Learn Oracle - How to use Group By, Having Clause in SQL Learn Oracle - How to Use Joins, Cross Join, Cartesian Product in SQL Learn Oracle - How to use Outer Joins (Left, Right, Full) in SQL Learn Oracle - How to use the Character Functions, Date Functions in SQL Learn Oracle - How to use the Merge Statement in SQL Learn Oracle - How to use the ORDER BY Clause with the Select Statement Learn Oracle - How to use the SELECT Statement Learn Oracle - How to use the Transactional Control Statements in SQL Learn Oracle - How to use PL SQL Learn Oracle - Data Types in PL SQL Learn Oracle - Exception Handling in PL SQL Learn Oracle - PL SQL Conditional Logics Learn Oracle - PL SQL Cursor Types - Explicit Cursor, Implicit Cursor Learn Oracle - PL SQL Loops Learn Oracle - Procedure Creation in PL SQL Learn Oracle - Select Statement with WHERE Cause Learn Oracle - SQL Operators and their Precedence Learn Oracle - Using Case Function, Decode Function in SQL Learn Oracle - Using Logical Operators in the WHERE Clause of the Select Statement Learn Oracle - Using Rollup Function, Cube Function Learn Oracle - Using Set Operators in SQL Learn Oracle - What are the Different SQL Data Types Learn Oracle - What are the different types of Databases Visit Pebbles Official Website - http://www.pebbles.in Subscribe to our Channel – https://www.youtube.com/channel/UCNNjWVsQqaMYccY044vtHJw?sub_confirmation=1 Engage with us on Facebook at https://www.facebook.com/PebblesChennai Please Like, Share, Comment & Subscribe
Views: 719 Pebbles Tutorials
SQL Server - Union,Union All, Intersect, Except
 
06:50
We will try to understand union, union all, intersect and except operator in sql server
Views: 514 Natures Essence
09 of 15 SQL Basics with Oracle - Using IN, NOT IN, NULL and NOT NULL
 
05:02
This video shows how to use the IN clause as an alternative to using the OR operators. The IN clause is more compact--it's easier to type and read than multiple OR criteria. Examples of checking for NULL and NOT NUL are also given. (9 of 15) There is also an "Advanced SQL" series. (Search for "databasemec" for tutorials using SQL Server.)
Views: 2985 Jennifer Kreie
Lecture 35: Oracle Sql: INTERSECT  operator
 
02:01
Oracle Sql: INTERSECT operator https://www.youtube.com/channel/UCnBpiBIOtRgMsk4G7Ri1jbQ
Views: 67 Oracle SQL
MySQL Tutorial #13 in Hindi: UNION, UNION ALL, INTERSECT and MINUS Set Operators
 
13:44
MySQL Tutorial #13 in Hindi: UNION, UNION ALL, INTERSECT and MINUS Set Operators MySQL tutorial for Beginners MySQL Installation Guide How to Install MySQL on windows 10
Working with Set Operators in SQL Server | MSSQL Training Tutorial
 
24:55
** For Online Training Registration: https://goo.gl/r6kJbB ? Call: +91-8179191999 💡Visit Our Website for Classroom Training: https://nareshit.in/sql-server-training/ 💡 For Online Training: https://nareshit.com/course/sql-server-online-training/ #sqlserver #server #programming #course #Tutorials #Training #Videos -------------------------- 💡 About NareshIT: "Naresh IT is having 14+ years of experience in software training industry and the best Software Training Institute for online training, classroom training, weekend training, corporate training of Hadoop, Salesforce, AWS, DevOps, Spark, Data Science, Python, Tableau, RPA , Java, C#.NET, ASP.NET, Oracle, Testing Tools, Silver light, Linq, SQL Server, Selenium, Android, iPhone, C Language, C++, PHP and Digital Marketing in USA, Hyderabad, Chennai and Vijayawada, Bangalore India which provides online training across all the locations -------------------------- 💡 Our Online Training Features: 🎈 Training with Real-Time Experts 🎈 Industry Specific Scenario’s 🎈 Flexible Timings 🎈 Soft Copy of Material 🎈 Share Videos of each and every session. -------------------------- 💡 Please write back to us at 📧 [email protected]/ 📧 [email protected] or Call us at the USA: ☎+1404-232-9879 or India: ☎ +918179191999 -------------------------- 💡 Check The Below Links ► For Course Reg: https://goo.gl/r6kJbB ► Subscribe to Our Channel: https://goo.gl/q9ozyG ► Circle us on G+: https://plus.google.com/+NareshIT ► Like us on Facebook: https://www.facebook.com/NareshIT ► Follow us on Twitter: https://twitter.com/nareshitek ► Follow us on Linkedin: https://goo.gl/CRBZ5F ► Follow us on Instagram: https://goo.gl/3UXYK3
Views: 20794 Naresh i Technologies
Union, Minus & Intersect: Databases for Developers #15
 
06:52
The set operators allow you to combine many tables into one. These come in three varieties: Union Intersect Minus Watch this video to learn how they work. And find out how you can use them to compare the contents of two tables, giving you a report of the differences. Want more? https://docs.oracle.com/en/database/oracle/oracle-database/18/sqlrf/Set-Operators.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: 885 The Magic of SQL
Logical Operators in Oracle | Oracle Tutorials for Beginners
 
09:26
Logical Operators in Oracle | Oracle Tutorials for Beginners Oracle Tutorials for Beginners Oracle Tutorials for Beginners Logical Operators in Oracle Logical Operators in Oracle AND OR NOT Operators in Ms SQL AND OR NOT Operators in SQL AND OR NOT Operators in Oracle SQL AND OR NOT logical operators in sql with examples relational operators in oracle sql operators relational operators in sql logical operators in dbms with examples comparison operators in sql sql logical functions operator in oracle sql arithmetic operators sql operators Logical Operators in Oracle Logical Operators in Oracle relational operators in sql logical operators in sql oracle sql logical operators in select logical operators in dbms with examples all operator in sql Logical Operators in Oracle sql bitwise operators
Views: 460 Oracle PL/SQL World
42. IN and NOT IN Operators in Oracle
 
04:09
In this video you will learn about IN and NOT IN Operators in Oracle. We use IN Operator to test value available in the list and matching records filtered in output. 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: 13639 ITORIAN
Tutorial#70 Union operator in Oracle SQL Database| Using Union Operator in Select Statement
 
07:16
Explaining what is Union Set Operator in Oracle SQL and what are the types of set Operators in Oracle SQL database or how to use a union, union all, intersect and minus in oracle server or Working with Set Operators in SQL Server or Using a UNION operator SQL server The UNION set operator returns the combined results of the two SELECT statements and UNION statements only return UNIQUE values, Set operators are used to join the results of two or more SELECT statements, The SET operators are four types UNION, UNION ALL, INTERSECT, and MINUS -------------------------------------------------------------------------------------------- Assignment: Assignment link will be available soon: ------------------------------------------------------------------------- In this series we cover the following topics: SQL basics, create table oracle, SQL functions, SQL queries, SQL server, SQL developer installation, Oracle database installation, SQL Statement, OCA, Data Types, Types of data types, SQL Logical Operator, SQL Function,Join- Inner Join, Outer join, right outer join, left outer join, full outer join, self-join, cross join, View, SubQuery, Set Operator. follow me on: Facebook Page: https://www.facebook.com/LrnWthr-319371861902642/?ref=bookmarks Contacts Email: [email protected] Instagram: https://www.instagram.com/equalconnect/ Twitter: https://twitter.com/LrnWthR
Views: 34 EqualConnect Coach
Oracle SQL Video Tutorial 12  : Logical conditions AND ,OR ,NOT IN operators
 
09:52
Oracle SQL Video Tutorials12 : Logical conditions AND OR NOT IN operators explained "oracle as" "what is oracle" "sql and pl sql" "pl sql pl sql" "pl sql &" "& pl sql" "pl sql and" "pl sql and sql" "oracle to sql" "to sql oracle" "sql to oracle" "oracle 10g" "oracle 11g" "oracle database" "database oracle" "oracle data" "oracle download" "download oracle" "tutorial on sql" "tutorial for sql" "sql tutorial for" "sql tutorial" "sql and tutorial" "visual basic tutorial" "oracle 9i" "oracle on windows" "linux oracle" "oracle and linux" "oracle linux" "oracle on linux" "pl oracle" "oracle forms" "oracle sql pl" "oracle pl sql" "oracle dba" "tutorial for oracle" "tutorial of oracle" "tutorial on oracle" "tutorial in oracle" "oracle tutorial" "tutorial oracle" "oracle free" "free oracle" "oracle apex" "tutorials for sql" "sql tutorials" "tutorials on sql" "oracle certification" "certification oracle" "oracle software"
Views: 2382 Just Channel
Learn Oracle SQL : Logical Operators (AND, OR, NOT)
 
10:10
http://bit.ly/oracle-sql-course | Get the complete course today. Learn Oracle SQL : Logical Operators (AND, OR, NOT): In this video, I explain how the logical operators work in Oracle SQL, and explain the concept of "operators precedence". This is an excerpt of the course " Oracle SQL From Scratch " which you can get at a discounted price here: http://bit.ly/oracle-sql-course You can find additional Oracle SQL related articles and educational content in my blog here: http://standout-dev.com/
Views: 387 Oracle SQL
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: 38041 Techtud
SQL Tutorial in Oracle - 4 NULL, LIKE, DISTINCT, ORDER BY
 
18:37
SQL SELECT statement is used to fetch the data from a database table which returns data in the form of result table. These result tables are called result-sets. The LIKE operator is used in a WHERE clause to search for a specified pattern in a column. In SQL, wildcard characters are used with the SQL LIKE operator. SQL wildcards are used to search for data within a table. With SQL, the wildcards are: Wildcard Description % A substitute for zero or more characters _ A substitute for a single character [charlist] Sets and ranges of characters to match [^charlist] or [!charlist] Matches only a character NOT specified within the brackets Check out our website: http://www.telusko.com Follow Telusko on Twitter: https://twitter.com/navinreddy20 Follow on Facebook: Telusko : https://www.facebook.com/teluskolearnings Navin Reddy : https://www.facebook.com/navintelusko Follow Navin Reddy on Instagram: https://www.instagram.com/navinreddy20 Subscribe to our other channel: Navin Reddy : https://www.youtube.com/channel/UCxmkk8bMSOF-UBF43z-pdGQ?sub_confirmation=1 Telusko Hindi : https://www.youtube.com/channel/UCitzw4ROeTVGRRLnCPws-cw?sub_confirmation=1
Views: 18814 Telusko
SQL - SOME ANY ALL
 
03:48
Jamie King of Neumont University discussing the use of SOME, ANY, and ALL with subqueries.
Views: 20548 Jamie King
Oracle Using In , Between and Not تعليم أوراكل
 
10:27
by Mohamed El Desouki - محمد الدسوقى [email protected] Tel :00966 553450836 جامعة سلمان بن عبد العزيز - السعودية - الخرج How to use In , Between and Not. Text Book: Fundamentals of Database Systems, 5th Edition, by Elmasri/Navathe, published by Addison-W oracle create table statement oracle drop table statement oracle constraints database constraints primary key constraint foreign key constraint check constraint null not null constraint unique constraint insert into statement update statement delete statement select statement basic query where clause select where Like '%' Like '_' select where Like select where Between Between , Not Between select where In , Not In
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: 821 TechLake
INTERSECT, EXCEPT Operators in SQL Server
 
05:22
Click here to Subscribe to IT PORT Channel : https://www.youtube.com/channel/UCMjmoppveJ3mwspLKXYbVlg INTERSECT operator returns all distinct rows from Left hand side table which does exist in Right hand side table EXCEPT operator returns all distinct rows from left hand side table which does not exist in right hand side table The Basic Rules for using these Operators are a) The Number and the Order of the columns must be the same in all queries b) The data type must be compatible
Views: 98 IT Port
Tutorial#71 Union All operator in Oracle SQL Database| Using Union All Operator in Select Statement
 
06:50
Explaining what is Union All Set Operator in Oracle SQL and what are the types of set Operators in Oracle SQL database or how to use a union, union all, intersect and minus in oracle server or Working with Set Operators in SQL Server or Using a UNION all operator SQL server The SQL UNION ALL operator is used to combine the result sets of two or more SELECT statements. It does not remove duplicate rows and UNION statements only return UNIQUE values, Set operators are used to join the results of two or more SELECT statements, The SET operators are four types UNION, UNION ALL, INTERSECT, and MINUS Assignment: Assignment link will be available soon: In this series we cover the following topics: SQL basics, create table oracle, SQL functions, SQL queries, SQL server, SQL developer installation, Oracle database installation, SQL Statement, OCA, Data Types, Types of data types, SQL Logical Operator, SQL Function,Join- Inner Join, Outer join, right outer join, left outer join, full outer join, self-join, cross join, View, SubQuery, Set Operator. follow me on: Facebook Page: https://www.facebook.com/LrnWthr-319371861902642/?ref=bookmarks Contacts Email: [email protected] Instagram: https://www.instagram.com/equalconnect/ Twitter: https://twitter.com/LrnWthR
Views: 29 EqualConnect Coach
OPERATORS IN SQL IN HINDI
 
11:48
Best Buy Links (affiliate): SQL The Complete Reference https://amzn.to/2NAfr2G SQL Cookbook (Covers SQL Server, PostgrSQL, Oracle, MySQL, And Db2) https://amzn.to/2MhU6Xl Beginning SQL Queries https://amzn.to/2NzaAPj SQL, PL/SQL the Programming Language of Oracle https://amzn.to/2QjIyWH SQL in easy steps https://amzn.to/2x73t6G T-SQL Fundamentals https://amzn.to/2NywZfC Microsoft SQL Server 2012 Step By Step https://amzn.to/2O8BMBI ----------------------------------- OPERATORS IN SQL IN HINDI
Views: 2308 LearnEveryone
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: 13135 Jennifer Kreie
UNION AND UNION ALL SET OPERATOR IN ORACLE SQL WITH EXAMPLE
 
03:50
This video is to understand the difference between union and union all set operations. Along with that we have also showed some simple solution to the 'ORA-01789: query block has incorrect number of result columns' error message. 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: 724 Kishan Mashru
How to use Oracle SQL ROLLUP and CUBE
 
06:12
Learn how the Oracle Database SQL extensions ROLLUP and CUBE provide additional aggregations for your data warehouse data.
Views: 2502 SkillBuilders
Understanding Set Comparison Operator in SQL
 
11:15
Join Discussion on: http://www.techtud.com/video-lecture/understanding-set-comparison-operators 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: 12365 Techtud
Grouping Sets in SQL Server
 
09:36
grouping sets examples in sql server sql server grouping sets order by grouping sql server 2008 grouping sets example sql server group by union all Grouping sets is a new feature introduced in SQL Server 2008. Let us understand Grouping sets with an example. We want to calculate Sum of Salary by Country and Gender. We can very easily achieve this using a Group By query as shown below Select Country, Gender, Sum(Salary) as TotalSalary From Employees Group By Country, Gender Within the same result set we also want Sum of Salary just by Country. To achieve the above result we could combine 2 Group By queries using UNION ALL as shown below. Select Country, Gender, Sum(Salary) as TotalSalary From Employees Group By Country, Gender UNION ALL Select Country, NULL, Sum(Salary) as TotalSalary From Employees Group By Country Within the same result set we also want Sum of Salary just by Gender. We can achieve this by combining 3 Group By queries using UNION ALL as shown below Select Country, Gender, Sum(Salary) as TotalSalary From Employees Group By Country, Gender UNION ALL Select Country, NULL, Sum(Salary) as TotalSalary From Employees Group By Country UNION ALL Select NULL, Gender, Sum(Salary) as TotalSalary From Employees Group By Gender Finally we also want the grand total of Salary. In this case we are not grouping on any particular column. So both Country and Gender columns will be NULL in the resultset. To achieve this we will have to combine the fourth query using UNION ALL as shown below. Select Country, Gender, Sum(Salary) as TotalSalary From Employees Group By Country, Gender UNION ALL Select Country, NULL, Sum(Salary) as TotalSalary From Employees Group By Country UNION ALL Select NULL, Gender, Sum(Salary) as TotalSalary From Employees Group By Gender UNION ALL Select NULL, NULL, Sum(Salary) as TotalSalary From Employees There are 2 problems with the above approach. The query is huge as we have combined different Group By queries using UNION ALL operator. This can grow even more if we start to add more groups The Employees table has to be accessed 4 times, once for every query. If we use Grouping Sets feature introduced in SQL Server 2008, the amount of T-SQL code that you have to write will be greatly reduced. The following Grouping Sets query produce the same result as the above UNION ALL query. Select Country, Gender, Sum(Salary) TotalSalary From Employees Group BY GROUPING SETS ( (Country, Gender), -- Sum of Salary by Country and Gender (Country), -- Sum of Salary by Country (Gender) , -- Sum of Salary by Gender () -- Grand Total ) The order of the rows in the result set is not the same as in the case of UNION ALL query. To control the order use order by as shown below. Select Country, Gender, Sum(Salary) TotalSalary From Employees Group BY GROUPING SETS ( (Country, Gender), -- Sum of Salary by Country and Gender (Country), -- Sum of Salary by Country (Gender) , -- Sum of Salary by Gender () -- Grand Total ) Order By Grouping(Country), Grouping(Gender), Gender Text version of the video http://csharp-video-tutorials.blogspot.com/2015/09/grouping-sets-in-sql-server.html Slides http://csharp-video-tutorials.blogspot.com/2015/09/grouping-sets-in-sql-server_19.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: 50145 kudvenkat
MySQL Tutorial #12 in Hindi: SubQuery(Nested Query) with EXISTS and NOT EXISTS Clause
 
11:37
MySQL Tutorial #12 in Hindi: SubQuery(Nested Query) with EXISTS and NOT EXISTS Clause - Solved Examples MySQL tutorial for Beginners MySQL Installation Guide How to Install MySQL on windows 10
What is Intersect Operator in SQL Server - SQL Server Tutorial / TSQL Tutorial
 
10:27
The Intersect Operator returns us distinct matching records from two or more Select queries ( Result Sets). For Intersect Operator to work, the Number of columns should be same in all Select queries and data type should match. Blog post link for the video with scripts http://sqlage.blogspot.com/2015/04/what-is-intersect-operator-in-sql.html
Views: 1277 TechBrothersIT
Oracle Database Tutorial 7: The "Like" Operator In Sql
 
04:29
The LIKE operator is used in a WHERE clause to search for a specified pattern in a column. There are two wildcards used in conjunction with the LIKE operator: % - The percent sign represents zero, one, or multiple characters _ - The underscore represents a single character Note: MS Access uses a question mark (?) instead of the underscore (_). The percent sign and the underscore can also be used in combinations! LIKE Syntax SELECT column1, column2, ... FROM table_name WHERE columnN LIKE pattern; Tip: You can also combine any number of conditions using AND or OR operators. Here are some examples showing different LIKE operators with '%' and '_' wildcards: LIKE Operator Description WHERE CustomerName LIKE 'a%' Finds any values that starts with "a" WHERE CustomerName LIKE '%a' Finds any values that ends with "a" WHERE CustomerName LIKE '%or%' Finds any values that have "or" in any position WHERE CustomerName LIKE '_r%' Finds any values that have "r" in the second position WHERE CustomerName LIKE 'a_%_%' Finds any values that starts with "a" and are at least 3 characters in length WHERE ContactName LIKE 'a%o' Finds any values that starts with "a" and ends with "o" sql like wildcard sql like multiple values sql like pattern like query in mysql sql like regex sql not like in operator in sql sql like escape 1 2 3 4 5 6 7 8 9 10 Next
Not operator in Oracle Database Hindi/Urdu
 
07:11
Please Subscribe Channel Like, Share and Comment...
Views: 137 Oracle With Asad
Oracle SQL Lecture 26: ALL and ANY
 
03:34
Oracle Sql: ALL and ANY https://www.youtube.com/channel/UCnBpiBIOtRgMsk4G7Ri1jbQ
Views: 2634 Oracle SQL
SQL: Union Vs UnionAll
 
04:37
In this tutorial, you'll learn what is union & unionall PL/SQL (Procedural Language/Structured Query Language) is Oracle Corporation's procedural extension for SQL and the Oracle relational database. PL/SQL is available in Oracle Database (since version 7), TimesTen in-memory database (since version 11.2.1), and IBM DB2 (since version 9.7).[1] Oracle Corporation usually extends PL/SQL functionality with each successive release of the Oracle Database. PL/SQL includes procedural language elements such as conditions and loops. It allows declaration of constants and variables, procedures and functions, types and variables of those types, and triggers. It can handle exceptions (runtime errors). Arrays are supported involving the use of PL/SQL collections. Implementations from version 8 of Oracle Database onwards have included features associated with object-orientation. One can create PL/SQL units such as procedures, functions, packages, types, and triggers, which are stored in the database for reuse by applications that use any of the Oracle Database programmatic interfaces. PL/SQL works analogously to the embedded procedural languages associated with other relational databases. For example, Sybase ASE and Microsoft SQL Server have Transact-SQL, PostgreSQL has PL/pgSQL (which emulates PL/SQL to an extent), and IBM DB2 includes SQL Procedural Language,[2] which conforms to the ISO SQL’s SQL/PSM standard. The designers of PL/SQL modeled its syntax on that of Ada. Both Ada and PL/SQL have Pascal as a common ancestor, and so PL/SQL also resembles Pascal in several aspects. However, the structure of a PL/SQL package does not resemble the basic Object Pascal program structure as implemented by a Borland Delphi or Free Pascal unit. Programmers can define public and private global data-types, constants and static variables in a PL/SQL package.[3] PL/SQL also allows for the definition of classes and instantiating these as objects in PL/SQL code. This resembles usage in object-oriented programming languages like Object Pascal, C++ and Java. PL/SQL refers to a class as an "Abstract Data Type" (ADT) or "User Defined Type" (UDT), and defines it as an Oracle SQL data-type as opposed to a PL/SQL user-defined type, allowing its use in both the Oracle SQL Engine and the Oracle PL/SQL engine. The constructor and methods of an Abstract Data Type are written in PL/SQL. The resulting Abstract Data Type can operate as an object class in PL/SQL. Such objects can also persist as column values in Oracle database tables. PL/SQL is fundamentally distinct from Transact-SQL, despite superficial similarities. Porting code from one to the other usually involves non-trivial work, not only due to the differences in the feature sets of the two languages,[4] but also due to the very significant differences in the way Oracle and SQL Server deal with concurrency and locking. There are software tools available that claim to facilitate porting including Oracle Translation Scratch Editor,[5] CEITON MSSQL/Oracle Compiler [6] and SwisSQL.[7] The StepSqlite product is a PL/SQL compiler for the popular small database SQLite. PL/SQL Program Unit A PL/SQL program unit is one of the following: PL/SQL anonymous block, procedure, function, package specification, package body, trigger, type specification, type body, library. Program units are the PL/SQL source code that is compiled, developed and ultimately executed on the database. The basic unit of a PL/SQL source program is the block, which groups together related declarations and statements. A PL/SQL block is defined by the keywords DECLARE, BEGIN, EXCEPTION, and END. These keywords divide the block into a declarative part, an executable part, and an exception-handling part. The declaration section is optional and may be used to define and initialize constants and variables. If a variable is not initialized then it defaults to NULL value. The optional exception-handling part is used to handle run time errors. Only the executable part is required. A block can have a label. Package Packages are groups of conceptually linked functions, procedures, variables, PL/SQL table and record TYPE statements, constants, cursors etc. The use of packages promotes re-use of code. Packages are composed of the package specification and an optional package body. The specification is the interface to the application; it declares the types, variables, constants, exceptions, cursors, and subprograms available. The body fully defines cursors and subprograms, and so implements the specification. Two advantages of packages are: Modular approach, encapsulation/hiding of business logic, security, performance improvement, re-usability. They support object-oriented programming features like function overloading and encapsulation. Using package variables one can declare session level (scoped) variables, since variables declared in the package specification have a session scope.
Views: 2128 radhikaravikumar
Lecture 36: Oracle Sql: MINUS operator
 
02:25
Oracle Sql: MINUS operator https://www.youtube.com/channel/UCnBpiBIOtRgMsk4G7Ri1jbQ
Views: 528 Oracle SQL