Home
Search results “Select from join oracle”
SQL Joins Tutorial for Beginners - Inner Join, Left Join, Right Join, Full Outer Join
 
18:04
Learn how to create SQL Joins. The first 10 minutes teach you the basics. Inner Join, Left Outer Join, Right Outer Join, and Full Outer Join. The second 10 minutes show you are few techniques that will help you as you start building joins. READ THE ORIGINAL ARTICLE WITH THE TABLE SCRIPS http://www.sqltrainingonline.com/sql-joins-tutorial-for-beginners/ YOUTUBE NEWS UPDATES http://www.youtube.com/user/sqltrainingonline VISIT SQLTRAININGONLINE.COM FOR TONS MORE VIDEO NEWS & TIPS http://www.sqltrainingonline.com SUBSCRIBE FOR OTHER SQL TIPS AND NEWS! http://www.youtube.com/subscription_center?add_user=sqltrainingonline SUBSCRIBE TO OUR EMAIL LIST! http://www.sqltrainingonline.com LET'S CONNECT! Facebook: http://facebook.com/SQLTrainingOnline Twitter: http://twitter.com/sql_by_joey Linkedin: http://linkedin.com/in/joeyblue SQLTrainingOnline: http://www.sqltrainingonline.com
Views: 173633 Joey Blue
Ejemplo simple de SELECT con JOIN de tablas
 
09:47
Ejemplo simple sobre la selección de datos desde más de una tabla, haciendo combinaciones tanto internas como externas (INNER, OUTER JOIN). Adicionalmente, comparar la notación SQL ANSI con la notación ORACLE
Views: 137979 EscuelaITbbdd
SQL: Understanding the JOIN clause in the SELECT statement
 
09:17
This screencast introduces table joins, including differences between SQL 89 and SQL 92 join syntax. The various join types such as natural (inner) joins and left/right/full outer joins, and cross joins.
Views: 150114 Michael Fudge
Oracle SQL Join Tutorials
 
19:48
Oracle SQL Join Tutorials. Different types of joins and examples. For Full Course Experience Please Go To http://mentorsnet.org/course_preview?course_id=4 Full Course Experience Includes 1. Access to course videos and exercises 2. View & manage your progress/pace 3. In-class projects and code reviews 4. Personal guidance from your Mentors
Views: 102750 Oresoft LWC
SQL Three Table Join Examples
 
14:13
Worked example of a SQL join involving more than two tables
Views: 45282 Brian Finnegan
SQL Server join :- Inner join,Left join,Right join and full outer join
 
08:11
For more such videos visit http://www.questpond.com For more such videos subscribe https://www.youtube.com/questpondvideos?sub_confirmation=1 Also watch Learn Sql Queries in 1 hour :- https://www.youtube.com/watch?v=uGlfP9o7kmY See our other Step by Step video series below :- Learn Angular tutorial for beginners https://tinyurl.com/ycd9j895 Learn MVC Core step by step :- http://tinyurl.com/y9jt3wkv Learn MSBI Step by Step in 32 hours:- https://goo.gl/TTpFZN Learn Xamarin Mobile Programming Step by Step :- https://goo.gl/WDVFuy Learn Design Pattern Step by Step in 8 hours:- https://goo.gl/eJdn0m Learn C# Step by Step in 100 hours :- https://goo.gl/FNlqn3 Learn Data structures & algorithm in 8 hours :-https://tinyurl.com/ybx29c5s Learn SQL Server Step by Step in 16 hours:- http://tinyurl.com/ja4zmwu Learn Javascript in 2 hours :- http://tinyurl.com/zkljbdl Learn SharePoint Step by Step in 8 hours:- https://goo.gl/XQKHeP Learn TypeScript in 45 Minutes :- https://goo.gl/oRkawI Learn webpack in 50 minutes:- https://goo.gl/ab7VJi Learn Visual Studio code in 10 steps for beginners:- https://tinyurl.com/lwgv8r8 Learn Tableau step by step :- https://tinyurl.com/kh6ojyo Preparing for C# / .NET interviews start here http://www.youtube.com/watch?v=gaDn-sVLj8Q In this video we will try to understand four important concepts Inner joins,Left join,Right join and full outer joins. We are also distributing a 100 page Ebook ".Sql Server Interview Question and Answers". If you want this ebook please share this video in your facebook/twitter/linkedin account and email us on [email protected] with the shared link and we will email you the PDF.
Views: 879755 Questpond
Oracle APEX Tutorial 25 - SQL's SELECT with Different Types of JOIN
 
04:05
Hi! I’m Abdulrhman Uthman, a student of King Faisal University in Saudi Arabia. This series is intended for the practical class of Database Concepts students in our university, but anyone who wants to learn database, SQL or Structured Query Language and use Oracle’s APEX are welcome aboard. In this video we will continue discussing the SELECT statement with JOIN. I would like to acknowledge the following people for their support: Dr. Majed Alshamari, Dr. Mohammed Bonais, Dr. Abdullah Alaulaimie, Dr. Mohammed Al-Naeem, Mr. Ahmed Alshawayrid, Mr. Naif Bo-Hasan, Mr. Mohammed Tawfiq, my sister, Ms. Reem Uthman, and my brother, Anas Uthman for editing the video.
Views: 1164 Abdulrhman Uthman
SQL JOINing Multiple Tables
 
11:03
Jamie King of Neumont University demonstrating how to join several tables together.
Views: 139215 Jamie King
OUTER JOIN in SQL
 
07:41
Join Discussion: http://www.techtud.com/video-lecture/outer-join-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: 25176 Techtud
How to Join 3 tables in 1 SQL query
 
04:59
Get your first month on the Joes 2 Pros Academy for just $1 with code YOUTUBE1. Visit http://www.joes2pros.com Offer expires July 1, 2015 From the newly released 2 Disc DVD set (SQL Queries Joes 2 Pros Vol2) this video shows how to join 3 tables in 1 query.
Views: 259638 Joes2Pros SQL Trainings
SQL Tutorial - 13: Inserting Data Into a Table From Another Table
 
07:00
In this tutorial we'll learn to use the INSERT Query to copy data from one table into another.
Views: 258574 The Bad Tutorials
SQL Joins, nested loops and all that in less than 6 minutes
 
05:52
CAPTIONS AVAILABLE - Full transcript (with some screenshots) available for a small fee at http://stores.lulu.com/konagora/. A very brief description of how a database performs a join, based on material from a 2-day seminar.
Views: 77348 roughsealtd
How to Join Tables from Different Databases in SQL Select
 
02:27
This video demonstrates how to join or reference 2 or more tables in different databases but on same server machine. How to Join Tables How to Join Tables in SQL Server How to Join Tables in Different Databases Join Tables in SQL Select
Views: 8913 hbksoft
Complex Joins in Tableau
 
09:52
In this tutorial video, we will be going over complex joins in Tableau. We'll talk about: - How to join more than two tables together, - What data is included and excluded for various types of joins, - How your joins affect calculations in your views, and more. We'll also be talking briefly about how Level of Detail expressions can be used with joined data that has duplicate records. Boulder Insight - http://boulderinsight.com/ Blog - http://boulderinsight.com/index.php/boulder-insight-blog/
Views: 63722 Boulder Insight
Oracle APEX Tutorial 20 - SQL's SELECT with ORDER BY
 
02:26
Hi! I’m Abdulrhman Uthman, a student of King Faisal University in Saudi Arabia. This series is intended for the practical class of Database Concepts students in our university, but anyone who wants to learn database, SQL or Structured Query Language and use Oracle’s APEX are welcome aboard. In this video we will continue discussing the SELECT statement with ORDER BY. I would like to acknowledge the following people for their support: Dr. Majed Alshamari, Dr. Mohammed Bonais, Dr. Abdullah Alaulaimie, Dr. Mohammed Al-Naeem, Mr. Ahmed Alshawayrid, Mr. Naif Bo-Hasan, Mr. Mohammed Tawfiq, my sister, Ms. Reem Uthman, and my brother, Anas Uthman for editing the video.
Views: 1850 Abdulrhman Uthman
Oracle APEX Tutorial 27 - SQL's SELECT with More Examples on JOIN
 
03:46
Hi! I’m Abdulrhman Uthman, a student of King Faisal University in Saudi Arabia. This series is intended for the practical class of Database Concepts students in our university, but anyone who wants to learn database, SQL or Structured Query Language and use Oracle’s APEX are welcome aboard. In this video we will continue JOINing tables. I would like to acknowledge the following people for their support: Dr. Majed Alshamari, Dr. Mohammed Bonais, Dr. Abdullah Alaulaimie, Dr. Mohammed Al-Naeem, Mr. Ahmed Alshawayrid, Mr. Naif Bo-Hasan, Mr. Mohammed Tawfiq, my sister, Ms. Reem Uthman, and my brother, Anas Uthman for editing the video.
Views: 1204 Abdulrhman Uthman
Oracle APEX Tutorial 26 - SQL's SELECT with INNER, LEFT, and RIGHT Joins
 
03:31
Hi! I’m Abdulrhman Uthman, a student of King Faisal University in Saudi Arabia. This series is intended for the practical class of Database Concepts students in our university, but anyone who wants to learn database, SQL or Structured Query Language and use Oracle’s APEX are welcome aboard. In this video we will continue discussing the INNER, LEFT and RIGHT joins. I would like to acknowledge the following people for their support: Dr. Majed Alshamari, Dr. Mohammed Bonais, Dr. Abdullah Alaulaimie, Dr. Mohammed Al-Naeem, Mr. Ahmed Alshawayrid, Mr. Naif Bo-Hasan, Mr. Mohammed Tawfiq, my sister, Ms. Reem Uthman, and my brother, Anas Uthman for editing the video.
Views: 1255 Abdulrhman Uthman
How to View Data With the SELECT Statement (Introduction to Oracle SQL)
 
05:39
Getting started with the SELECT statement to view data in a table.
Views: 354 Database Star
MySQL Database Tutorial - 22 - How to Join Tables
 
08:29
Facebook - https://www.facebook.com/TheNewBoston-464114846956315/ GitHub - https://github.com/buckyroberts Google+ - https://plus.google.com/+BuckyRoberts LinkedIn - https://www.linkedin.com/in/buckyroberts reddit - https://www.reddit.com/r/thenewboston/ Support - https://www.patreon.com/thenewboston thenewboston - https://thenewboston.com/ Twitter - https://twitter.com/bucky_roberts
Views: 344025 thenewboston
Oracle - Joins - Beginner
 
13:37
Oracle - Joins - Beginner
Views: 26496 Chris Ostrowski
Oracle APEX Tutorial 28 - SQL's SELECT with SELFJOIN and JOINing 3 Tables
 
03:05
Hi! I’m Abdulrhman Uthman, a student of King Faisal University in Saudi Arabia. This series is intended for the practical class of Database Concepts students in our university, but anyone who wants to learn database, SQL or Structured Query Language and use Oracle’s APEX are welcome aboard. In this video, we will use SELFJOIN and. JOIN 3 tables. I would like to acknowledge the following people for their support: Dr. Majed Alshamari, Dr. Mohammed Bonais, Dr. Abdullah Alaulaimie, Dr. Mohammed Al-Naeem, Mr. Ahmed Alshawayrid, Mr. Naif Bo-Hasan, Mr. Mohammed Tawfiq, my sister, Ms. Reem Uthman, and my brother, Anas Uthman for editing the video.
Views: 2493 Abdulrhman Uthman
joins in SQL with examples [hindi]
 
14:30
This video explains what are joins and types of joins with the help of examples.
Views: 76406 kwl zerotwonine
SQL Inner Join Multiple Tables with SUM Tutorial - SQL 2008/2012/2016/2017
 
18:03
Use inner joins with multiple tables to create reports. Uses aliases, and the SUM aggregate function to demonstrate the flexibility of the join statement. Get the SQL script to create the database and run the exercies in the video here: https://www.qewbi.com/sql/scripts/qewbijoins.zip
Views: 142660 Edward Kench
TIPOS DE CONSULTA JOINS | SELECT INNER JOIN | SQL
 
09:14
Hola queridos suscriptores, tenemos un nuevo video mostrando los tipos de joins como: Inner Join, Right Join, Left Join y Full Join. ¿Como utilizar join en select? Une tus consultas SELECT con los diferentes Joins que te ofrece sql, de acuerdo al gestor de base de datos. *Esperamos que te sea útil, ya que nuestro objetivo es compartir conocimientos ;) #SomosSistemas #ComparteYAprende Suscribete: https://www.youtube.com/channel/UCjD7... Siguenos en Facebook: https://www.facebook.com/somos.sistemas Únete a nuestro grupo Fb: https://www.facebook.com/groups/somos... Visita nuestro sitio web: http://somossistemas.org/ Twittea con nosotros: https://twitter.com/SomosSist Dale un +1: https://plus.google.com/u/2/b/1159723... Escribenos a: [email protected]
Views: 22382 Somos Sistemas Oficial
Oracle 11g SQL Tutorial & Exam 1Z0-051 : Lesson 1 SELECT Statement
 
30:07
Oracle 11g SQL tutorial (Exam 1Z0-051) for beginner / intermediate learners. We are a supplier of IT services to UK's leading Telecom and Financial organizations. This tutorial is presented by our LEAD ORACLE DBA with over 9 yrs of hands-on experience managing Oracle projects for companies such as Oracle Corp, AXA Insurance, Telefonica O2 etc. *** Subscribe for notification on full course availability *** Prev Video ( Introduction ) - http://www.youtube.com/watch?v=Ve4t_PuMaLc SELECT STATEMENT Covers the basic SELECT statement.
Views: 92291 Sahaey Edu
- ORACLE 10 - SQL Join, Group, Order
 
18:53
Unir varias tablas sin subconsultas
Views: 588 Yesod
Oracle SQL Tutorials ll Joining Tables Hands on   Part 1
 
20:56
sql interview questions,sql interview questions and answers,interview questions for freshers,SQL,sql tutorial BEGINNERS,oracle,pl sql,pl/sql,mysql,oracle interview,google interview question,trigger in oracle,dbms,rdbms, oracle tutorial,pl sql basics,pl sql tutorials, pl sql example,sql,sql server ,query,sql query,questions,interview questions,coding interview,sql coding, code , database interview questions and answers,interview questions sql, interview questions,sql server,sql interview,interview sql,interview question sql join ,inner join, group by,select sql,interview questions ,sql basic PL SQL Programs,PL SQL,PL SQL block,PL SQL Function,PL SQL Package,PL SQL Package body,PL SQL Procedure ,PL SQL Trigger,PL SQLType,PL SQL Type body,CREATE OR REPLACE PROCEDURE,database interview questions and answers,interview questions sql, interview questions,sql server,Procedural Language,interview sql,interview question sql join ,inner join, group by,select sql,interview questions ,sql basic,pl sql variable,oraclecoach,claire rajan PL SQL,PL SQL block,PL SQL Function,PL SQL Package,PL SQL Package body,PL SQL Procedure,PL SQL Trigger,PL SQLType,PL SQL Type body,database interview questions,interview questions,sql server,Procedural Language,interview sql,oracle server,oracle 9i,oracle 10g,oracle 11g,oracle 12c,sql basic,pl sql variable,express edition,free version,Procedural Language,question sql join ,inner join, group by,select sql,sql basic,pl sql variable Programming Language,C#,C# Fundamental,c# tutorial,c# tutorial for beginners,C# Fundamentals for Absolute Beginners,.NET tutorial for beginners,.NET tutorial,.NET tutorial for beginners,c sharp tutorial,.NET programming for beginners,.NET programming tutorial,.NET programming,c++,C#.NET,c#,learn c#,learn .NET,.net framework,c#.net,microsoft.net,cloud.net,namespace,System class,vb.net, visual basic,assebly.net,sharp,Absolute Beginners java scjp exam questions,scjp,ocjp,core java,ocjp question,ocjp practice,scjp interview java networking,java servlet,jsp,java server pages,java server faces,jms,jvm,class in java,inheritance in java,garbagee collection in java,private in java,inner class in class,nested class in java,ejb, enterprice java beans,java beans oracle admin,oracle administrator,starting oracle,stoping oracle,role in oracle,privilege in oracle,PL SQL Procedure,,database interview questions,interview questions,sql server,oracle server,oracle client,oracle developer,oracle engine,interview sql,oracle 10g,oracle 11g,oracle 12c,sql basic,pl sql variable,Procedural Language,sql basic,pl sql variable
Tutoriel français SQL : Jointure join multiples avec 2 tables et SELECT
 
11:57
http://www.hotosting.com/cresite/ . Tutoriel français SQL : Jointure join multiples avec 2 tables et SELECT. Trois exemples de requêtes SQL avec 2 tables jointes à connaître pour interroger deux tables d'une base de données RELATIONNELLES en même temps à l'aide de SELECT et sa JOINTURE entre 2 tables. https://www.youtube.com/user/yansay88
Views: 28893 Yannick Sayer
Oracle SQL Developer: Query Builder Demo
 
08:13
How to build queries with your mouse versus the keyboard. 2018 Update: If you'd like to see how to convert your Oracle style JOINS to ANSI style (in the FROM vs the WHERE clause) see this post https://www.thatjeffsmith.com/archive/2018/10/query-builder-on-inline-views-and-ansi-joins/
Views: 76241 Jeff Smith
Introduction to Nested Select Statements
 
09:03
Introduction to Nested Select Statements in SQL with a focus on contrasting the nested select technique to that of the natural join covered previously
Views: 8455 Brian Finnegan
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: 38108 Techtud
PL/SQL tutorial 3: SELECT INTO statement in PL/SQL by Manish Sharma RebellionRider
 
05:22
How to initialize the variable by fetching values from the table of the database or by using SELECT INTO statement in PL/SQL by Manish Sharma RebellionRider ------------------------------------------------------------------------ ►►►LINKS◄◄◄ Blog : http://bit.ly/select-into-statement-pl-sql Previous Tutorial ► Variables: https://youtu.be/2MNmodawvnE ------------------------------------------------------------------------- ►►►Let's Get Free Uber Cab◄◄◄ Use Referral Code UberRebellionRider and get $20 free for your first ride. -------------------------------------------------------------------------- ►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 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: 127501 Manish Sharma
SQL Aggregation queries using Group By, Sum, Count and Having
 
10:01
From SQL Queries Joes 2 Pros (Vol2) ch4.1. Learn up to write aggregated queries.
Views: 177738 Joes2Pros SQL Trainings
Nested Queries | SQL | Tutorial 18
 
10:23
Giraffe Academy is rebranding! I've decided to re-focus the brand of this channel to highlight myself as a developer and teacher! The newly minted Mike Dane channel will have all the same content, with more to come in the future! Source Code - http://www.mikedane.com/databases/sql. This video is one in a series of videos where we'll be looking at database management basics and SQL using the MySQL RDBMS. The course is designed for beginners to SQL and database management systems, and will introduce common database management topics. Throughout the course we'll be looking at various topics including schema design, basic C.R.U.D operations, aggregation, nested queries, joins, keys and much more. If you’re enjoying Giraffe Academy and want to invest in our future, consider leaving a contribution http://www.mikedane.com/contribute Links: Website - http://www.mikedane.com/ Facebook - https://www.facebook.com/giraffeacademy/ Twitter - https://twitter.com/GiraffeAcademy
Views: 8491 Mike Dane
SQL: Group By,  Having, Min, Max Sum
 
14:43
Learn to summarize yoru data using the SQL Aggregates such as count and sum and the GROUP BY and HAVING clauses of the SELECT statement
Views: 153723 Michael Fudge
PD - SELECT com LEFT JOIN no SQL Server 2012 ( como utilizar LEFT JOIN no SELECT )
 
19:24
Professor Drausio Henrique Chiarotti PD - SELECT com LEFT JOIN no SQL Server 2012 ( como utilizar LEFT JOIN no SELECT ) Aula: ensina a utilizar o LEFT JOIN no SQL Server 2012. A aula utiliza três tabelas, tblPessoa, tblPessoaTelefone e tblPessoaEndereco. Assista também: Criar Base de Dados (Create Database) no Microsoft SQL Server: http://youtu.be/ETtBf2AumUw Criar Tabela (Create Table) com Script SQL no Microsoft SQL Server: http://youtu.be/kKFJkFxG8vA Criar Tabela Utilizando Diagrama (Designer) no SQL Server: http://youtu.be/PmdKMDaQRhA 1ª Temporada: http://www.youtube.com/watch?v=eFydylVZ0cw&feature=c4-overview-vl&list=PLwFf8gSUEopzWGncRvk87h3uA4KWNH7jV Facebook: http://www.facebook.com/ProfessorDrausio Envie sugestões para a temporada: [email protected]
Views: 11279 professordrausio
Database Design 48 - Outer Join Across 3 Tables
 
05:44
Outer Joins in situations of multiple tables make things complicated. But with good understanding and a little practice the path will be clear. This video went over the example of a left and right outer join, but you can use any type of join to do the job. Once you figure out how each of the joins work, you can mix and match to get the result you want. Donate!: http://bit.ly/DonateCTVM2. More content: http://CalebCurry.com Courses for Download: http://www.udemy.com/u/calebcurry/ (Use the coupon code "YouTubeDiscount" without the quotes) Facebook: http://www.facebook.com/CalebTheVideoMaker Google+: https://plus.google.com/+CalebTheVideoMaker2 Twitter: http://Twitter.com/calebCurry Subscribe (it's free!): https://www.youtube.com/channel/UCZUyPT9DkJWmS_DzdOi7RIA?sub_confirmation=1 Amazing Web Hosting - http://bit.ly/ccbluehost (The best web hosting for a cheap price!)
Views: 9023 Caleb Curry
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: 42133 kudvenkat
PD - SELECT com JOIN no SQL Server 2008 ( como utilizar JOIN no SELECT )
 
31:19
Professor Drausio Henrique Chiarotti Saiba como utilizar o JOIN no SELECT no SQL Server 2008. Dúvidas e sugestões são bem vindas: [email protected] Facebook: http://www.facebook.com/ProfessorDrausio Envie sugestões para a temporada: [email protected]
Views: 47061 professordrausio
Oracle sql Interview Question : How to change rows to column
 
09:18
This video tutorial talks about the frequently asked oracle sql interview question of changing rows to the column. Based on the given scenario, we are asked to change the presentation of data in a table with 3 rows and 2 column to 3 columns and 2 rows. Decode Function in oracle https://youtu.be/YUAjPMjqMws Pivot and unpivot in oracle https://youtu.be/6s0DI1YcWIM
Views: 17012 Kishan Mashru
Subqueries in sql   Part 59
 
14:34
In this video we will discuss about subqueries in sql server. Let us understand subqueris with an example. Please create the required tables and insert sample data using the script below. Create Table tblProducts ( [Id] int identity primary key, [Name] nvarchar(50), [Description] nvarchar(250) ) Create Table tblProductSales ( Id int primary key identity, ProductId int foreign key references tblProducts(Id), UnitPrice int, QuantitySold int ) Insert into tblProducts values ('TV', '52 inch black color LCD TV') Insert into tblProducts values ('Laptop', 'Very thin black color acer laptop') Insert into tblProducts values ('Desktop', 'HP high performance desktop') Insert into tblProductSales values(3, 450, 5) Insert into tblProductSales values(2, 250, 7) Insert into tblProductSales values(3, 450, 4) Insert into tblProductSales values(3, 450, 9) Write a query to retrieve products that are not at all sold? This can be very easily achieved using subquery as shown below. Select [Id], [Name], [Description] from tblProducts where Id not in (Select Distinct ProductId from tblProductSales) Most of the times subqueries can be very easily replaced with joins. The above query is rewritten using joins and produces the same results. Select tblProducts.[Id], [Name], [Description] from tblProducts left join tblProductSales on tblProducts.Id = tblProductSales.ProductId where tblProductSales.ProductId IS NULL In this example, we have seen how to use a subquery in the where clause. Let us now discuss about using a sub query in the SELECT clause. Write a query to retrieve the NAME and TOTALQUANTITY sold, using a subquery. Select [Name], (Select SUM(QuantitySold) from tblProductSales where ProductId = tblProducts.Id) as TotalQuantity from tblProducts order by Name Query with an equivalent join that produces the same result. Select [Name], SUM(QuantitySold) as TotalQuantity from tblProducts left join tblProductSales on tblProducts.Id = tblProductSales.ProductId group by [Name] order by Name From these examples, it should be very clear that, a subquery is simply a select statement, that returns a single value and can be nested inside a SELECT, UPDATE, INSERT, or DELETE statement. It is also possible to nest a subquery inside another subquery. According to MSDN, subqueries can be nested upto 32 levels. Subqueries are always encolsed in paranthesis and are also called as inner queries, and the query containing the subquery is called as outer query. The columns from a table that is present only inside a subquery, cannot be used in the SELECT list of the outer query. Next Video: What to choose for performance? Queries that involve a subquery or a join Text version of the video http://csharp-video-tutorials.blogspot.com/2013/01/subqueries-in-sql-part-59.html Slides http://csharp-video-tutorials.blogspot.com/2013/09/part-59-subqueries-in-sql-server.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: 211620 kudvenkat
Part 12   Can we join two tables without primary foreign key relation
 
10:38
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2014/09/part-12-can-we-join-two-tables-without.html Can we join two tables without primary foreign key relation Yes, we can join two tables without primary foreign key relation as long as the column values involved in the join can be converted to one type. ID column in Departments table is not the primary Key and DepartmentId column in Employees table is not the foreign key. But we can still join these tables using ID column from Departments table and DepartmentId column from Employees table, as both the columns involved in the join have same data type i.e int. Select Employees.Name as EmployeeName, Departments.Name as DepartmentName from Employees join Departments on Departments.ID = Employees.DepartmentId The obious next question is, if primary foreign key relation is not mandatory for 2 tables to be joined then what is the use of these keys? Primary key enforces uniqueness of values over one or more columns. Since ID is not a primary key in Departments table, 2 or more departments may end up having same ID value, which makes it impossible to distinguish between them based on the ID column value. Foreign key enforces referential integrity. Without foreign key constraint on DepartmentId column in Employees table, it is possible to insert a row into Employees table with a value for DepartmentId column that does not exist in Departments table. The following insert statement, successfully inserts a new Employee into Employees table whose DepartmentId is 100. But we don't have a department with ID = 100 in Departments table. This means this employee row is an orphan row, and the referential integrity is lost as result Insert into Employees values (8, 'Mary', 'Female', 80000, 100) If we have had a foreign key constraint on DepartmentId column in Employees table, the following insert statement would have failed with the following error. Msg 547, Level 16, State 0, Line 1 The INSERT statement conflicted with the FOREIGN KEY constraint. The conflict occurred in database "Sample", table "dbo.Departments", column 'ID'.
Views: 120199 kudvenkat
Part 2   SQL query to get organization hierarchy
 
10:14
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2014/05/part-2-sql-query-to-get-organization.html To get the best out of this video, the following concepts need to be understood first. These are already discussed in SQL Server Tutorial. 1. Self-Join - http://www.youtube.com/watch?v=qnYSN_7qwgg 2. CTE - http://www.youtube.com/watch?v=ZXB5b-7HJHk 3. Recursive CTE - http://www.youtube.com/watch?v=GGoV0wTMCg0 Here is the problem definition: 1. Employees table contains the following columns a) EmployeeId, b) EmployeeName c) ManagerId 2. If an EmployeeId is passed, the query should list down the entire organization hierarchy i.e who is the manager of the EmployeeId passed and who is managers manager and so on till full hierarchy is listed. For example, Scenario 1: If we pass David's EmployeeId to the query, then it should display the organization hierarchy starting from David. Scenario 2: If we pass Lara's EmployeeId to the query, then it should display the organization hierarchy starting from Lara. We will be Employees table for this demo. SQL to create and populate Employees table with test data Create table Employees ( EmployeeID int primary key identity, EmployeeName nvarchar(50), ManagerID int foreign key references Employees(EmployeeID) ) GO Insert into Employees values ('John', NULL) Insert into Employees values ('Mark', NULL) Insert into Employees values ('Steve', NULL) Insert into Employees values ('Tom', NULL) Insert into Employees values ('Lara', NULL) Insert into Employees values ('Simon', NULL) Insert into Employees values ('David', NULL) Insert into Employees values ('Ben', NULL) Insert into Employees values ('Stacy', NULL) Insert into Employees values ('Sam', NULL) GO Update Employees Set ManagerID = 8 Where EmployeeName IN ('Mark', 'Steve', 'Lara') Update Employees Set ManagerID = 2 Where EmployeeName IN ('Stacy', 'Simon') Update Employees Set ManagerID = 3 Where EmployeeName IN ('Tom') Update Employees Set ManagerID = 5 Where EmployeeName IN ('John', 'Sam') Update Employees Set ManagerID = 4 Where EmployeeName IN ('David') GO Here is the SQL that does the job Declare @ID int ; Set @ID = 7; WITH EmployeeCTE AS ( Select EmployeeId, EmployeeName, ManagerID From Employees Where EmployeeId = @ID UNION ALL Select Employees.EmployeeId , Employees.EmployeeName, Employees.ManagerID From Employees JOIN EmployeeCTE ON Employees.EmployeeId = EmployeeCTE.ManagerID ) Select E1.EmployeeName, ISNULL(E2.EmployeeName, 'No Boss') as ManagerName From EmployeeCTE E1 LEFT Join EmployeeCTE E2 ON E1.ManagerID = E2.EmployeeId
Views: 293324 kudvenkat
Online SQL Training -Basic SELECT Statements Oracle SQL-001
 
58:51
This Video explains basic Oracle SQL Statements.Please sign-up to receive alerts on new video's and e-books at http://eepurl.com/bEuruH
Views: 75 Sujith Nair
Oracle Sql: Lecture 47: Cross Join
 
02:59
Oracle Sql: Cross Join
Views: 1274 Oracle SQL
Joins in sql server - Part 12
 
17:43
In this video we will learn about 1. The different types of Joins in sql server 2. Cross Join 3. Inner Join 4. Outer Join -- Left , Right and Full Outer Join. Text version of the video http://csharp-video-tutorials.blogspot.com/2012/08/joins-in-sql-server-part-12.html Slides http://csharp-video-tutorials.blogspot.com/2013/08/part-12-joins.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: 603225 kudvenkat
Leaner, Faster Code with Advanced SQL Techniques
 
45:45
Connor Mcdonald, Developer Advocate for SQL, Oracle Most SQL is so simple to write that we can hand off the job to an ORM tool or a similar mechanism. But by delving a little deeper into more-advanced SQL facilities, we can get performance benefits and write a lot less middle-tier code. This session highlights some SQL techniques for solving problems that would otherwise require a lot of complex coding. Learn how to become a more productive developer by expanding your knowledge of the SQL language.
Views: 6047 Oracle Developers
Retrieving (Select) Data From Table in Oracle Database in Telugu
 
07:28
#KOTHA_ABHISHEK http://sqlintelugu1.blogspot.com select command in sql retrieving data from tables in oracle database youcan download background videos from http://videezy.com http://movietools.info
Views: 896 KOTHA ABHISHEK