Combine SQL Queries With UNION, INTERSECT, EXCEPT
Step-by-step tutorial shows you how to combine your SQL queries (columns) with UNION, INTERSECT, and EXCEPT!
Queries:
1) Get the combined unique values in 2 columns: SELECT column FROM table1 UNION SELECT column FROM table 2
2) Get the unique values that are present in 2 columns: SELECT column FROM table1 INTERSECT SELECT column FROM table 2
3) Get the values that aren't present in 2 columns: SELECT column FROM table 1 EXCEPT SELECT column FROM table 2
Get the Northwind Database: https://www.youtube.com/watch?v=nbIicI7K6Kk
Support the Channel:
1) Subscribe: https://www.becomingads.com/o/youtube
2) DataCamp: https://www.becomingads.com/o/datacamp
3) Udacity: https://www.becomingads.com/o/udacity
Видео Combine SQL Queries With UNION, INTERSECT, EXCEPT канала Becoming a Data Scientist
Queries:
1) Get the combined unique values in 2 columns: SELECT column FROM table1 UNION SELECT column FROM table 2
2) Get the unique values that are present in 2 columns: SELECT column FROM table1 INTERSECT SELECT column FROM table 2
3) Get the values that aren't present in 2 columns: SELECT column FROM table 1 EXCEPT SELECT column FROM table 2
Get the Northwind Database: https://www.youtube.com/watch?v=nbIicI7K6Kk
Support the Channel:
1) Subscribe: https://www.becomingads.com/o/youtube
2) DataCamp: https://www.becomingads.com/o/datacamp
3) Udacity: https://www.becomingads.com/o/udacity
Видео Combine SQL Queries With UNION, INTERSECT, EXCEPT канала Becoming a Data Scientist
Показать
Комментарии отсутствуют
Информация о видео
14 января 2020 г. 20:00:12
00:05:04
Другие видео канала
SQL Joins for Beginners with Lots of Examples (INNER, LEFT, RIGHT, FULL)Advanced Aggregate Functions in SQL (GROUP BY, HAVING vs. WHERE)IN vs Union All in SQL ServerSQL Server 15 - Composite KeyShould I put my transformation logic into my SQL query?oracle set operator union unionall intersect minusIntersect operator in sql serverAccess SQL - Union Joins (Combine the Result of Two or More SELECT Statements.)SQL Tutorial - UNION ALLWriting CASE WHEN Statements in SQL (IF/THEN)SQL String Functions Tutorial (LEFT, RIGHT, POSITION, CONCAT, LOWER, REPLACE)SQL "difference between" interview questions (part 1)SQL Server except operatorHow to do Subqueries in SQL with Examples15 of 15 SQL Basics with Oracle - Traditional set operators: UNION, INTERSECT & MINUSTutorial - For Loops in RCorrelated Subqueries vs Derived TablesUnion | SQL | Tutorial 16Basic Aggregate Functions in SQL (COUNT, SUM, AVG, MAX, and MIN)