Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Correlated subquery in sql Part 60

Автор: kudvenkat

Загружено: 2013-01-10

Просмотров: 250748

Описание:

In this video we will discuss about Corelated Subqueries

In Part 59, we discussed about 2 examples that uses subqueries. Please watch Part 59, before proceeding with this video. We will be using the same tables and queries from Part 59.

Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.
   / @aarvikitchen5572  

In the example below, sub query is executed first and only once. The sub query resutls are then used by the outer query. In a non-corelated subquery, the subquery can be executed independently of the outer query.
Select [Id], [Name], [Description]
from tblProducts
where Id not in (Select Distinct ProductId from tblProductSales)

If the subquery depends on the outer query for its values, then that sub query is called as a correlated subquery. In the where clause of the subquery below, "ProductId" column get it's value from tblProducts table that is present in the outer query. So, here the subquery is dependent on the outer query for it's value, hence this subquery is a correlated subquery. Correlated subqueries get executed, once for every row that is selected by the outer query. corelated subquery, cannot be executed independently of the outer query.
Select [Name],
(Select SUM(QuantitySold) from tblProductSales where ProductId = tblProducts.Id) as TotalQuantity
from tblProducts
order by Name

Text version of the video
http://csharp-video-tutorials.blogspo...

Slides
http://csharp-video-tutorials.blogspo...

All SQL Server Text Articles
http://csharp-video-tutorials.blogspo...

All SQL Server Slides
http://csharp-video-tutorials.blogspo...

All Dot Net and SQL Server Tutorials in English
https://www.youtube.com/user/kudvenka...

All Dot Net and SQL Server Tutorials in Arabic
   / kudvenkatarabic  

Correlated subquery in sql   Part 60

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Creating a large table with random data for performance testing   Part 61

Creating a large table with random data for performance testing Part 61

Understanding Correlated Queries in SQL

Understanding Correlated Queries in SQL

Subqueries in sql   Part 59

Subqueries in sql Part 59

SQL Server tutorial for beginners

SQL Server tutorial for beginners

Вопрос собеседования по SQL в Infosys

Вопрос собеседования по SQL в Infosys

⚡️ США объявили войну ЕС || РФ экстренно стягивает войска

⚡️ США объявили войну ЕС || РФ экстренно стягивает войска

7 поступков, которые тихо свидетельствуют о вашем высоком статусе

7 поступков, которые тихо свидетельствуют о вашем высоком статусе

Эти 5 приемов работы с пользовательскими столбцами упростят использование Power Query.

Эти 5 приемов работы с пользовательскими столбцами упростят использование Power Query.

Subquery in SQL | Correlated Subquery + Complete SQL Subqueries Tutorial

Subquery in SQL | Correlated Subquery + Complete SQL Subqueries Tutorial

Для Чего РЕАЛЬНО Нужен был ГОРБ Boeing 747?

Для Чего РЕАЛЬНО Нужен был ГОРБ Boeing 747?

What to choose for performance   SubQuery or Joins   Part 62

What to choose for performance SubQuery or Joins Part 62

Fresher Mock Interview SQL | Technical Round | SQL Interview for Fresher | HR Interview | JAVA

Fresher Mock Interview SQL | Technical Round | SQL Interview for Fresher | HR Interview | JAVA

Функция GROUPBY в Excel обладает скрытыми возможностями, о которых никто не знает.

Функция GROUPBY в Excel обладает скрытыми возможностями, о которых никто не знает.

Он вам не Диод! Таинственный Диод Ганна.

Он вам не Диод! Таинственный Диод Ганна.

Операторы SQL WITH (общие табличные выражения — CTE)

Операторы SQL WITH (общие табличные выражения — CTE)

6 SQL-соединений, которые вы ОБЯЗАТЕЛЬНО должны знать! (Анимация + Практика)

6 SQL-соединений, которые вы ОБЯЗАТЕЛЬНО должны знать! (Анимация + Практика)

ЯПОНИЯ — ОШИБКА? Почему о переезде сюда жалеют

ЯПОНИЯ — ОШИБКА? Почему о переезде сюда жалеют

Как делать подзапросы в SQL с примерами

Как делать подзапросы в SQL с примерами

Путин сделал угрозу НАТО реальной.

Путин сделал угрозу НАТО реальной.

Спорные и стыдные вопросы о блокаде Ленинграда

Спорные и стыдные вопросы о блокаде Ленинграда

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com