SQL TUTORIAL for Beginners | SUBQUERY in SQL

  Рет қаралды 732

Tahir Imtiaz

Tahir Imtiaz

Күн бұрын

Sub query or nested query is very powerful technique to fetch data from RDBMS. In this SQL tutorial video all the major types of sub queries are explained with example and at the end of the video practice questions for sub queries are also given.

Пікірлер: 11
@hiranaeem7582
@hiranaeem7582 2 жыл бұрын
Jazak Allah o khairah Sir g 🙏🙏🙏🙏 Thanks
@maoon9449
@maoon9449 2 жыл бұрын
Query ❤ owesome sir جزاك الله الخیرا
@zobialatifzobialatif1205
@zobialatifzobialatif1205 2 жыл бұрын
Amazing sir g👌
@huzaifakaramat5042
@huzaifakaramat5042 2 жыл бұрын
Thank you so much sir 🔥👑
@tahirimtiaz
@tahirimtiaz 2 жыл бұрын
Most welcome
@maliknoman5215
@maliknoman5215 2 жыл бұрын
Sir g next video b send kr dy table and html ki jazakallah sir g plz
@tahirimtiaz
@tahirimtiaz 2 жыл бұрын
Ek 2 din mn share ho jae gi in sha Allah..
@huzaifakaramat5042
@huzaifakaramat5042 2 жыл бұрын
Allah Razi ho AP se
@innocentperson7194
@innocentperson7194 2 жыл бұрын
Sir for count(hiredate).... & more than one value we want to know than what query will be written.... For example we want 2 know the number of employees hired in 1981,81,83 so....????
@tahirimtiaz
@tahirimtiaz 2 жыл бұрын
Good to see that you are curious to learn. This problem can be solved in many ways. One of them is to use a type conversion function. We can use TO_CHAR(Date, ' format') to convert date value in to character. So if we write TO_CHAR(hiredate, 'YY') it will return last two digits of any hire date like 81,82. And then we can compare these values by using in operator. Here is the final query that will give you the required result. select count (hiredate) from emp where TO_CHAR(hiredate, 'yy' ) in ( '81' , '82' , '83' ) ; Remember we are converting date to character value so we will use single quotes.
@innocentperson7194
@innocentperson7194 2 жыл бұрын
@@tahirimtiaz okay thankewww sir
SQL TUTORIAL for Beginners | Joins in SQL
15:46
Tahir Imtiaz
Рет қаралды 618
SQL TUTORIAL for Beginners | Aggregate Functions in Urdu/Hindi
19:09
Сюрприз для Златы на день рождения
00:10
Victoria Portfolio
Рет қаралды 2,4 МЛН
Ouch.. 🤕⚽️
00:25
Celine Dept
Рет қаралды 17 МЛН
How do SQL Indexes Work
12:12
kudvenkat
Рет қаралды 630 М.
The 25 SQL Questions You MUST Know for Data Analyst Interviews
32:47
KSR Datavizon
Рет қаралды 233 М.
Network Topology in  Urdu/Hindi animation
10:03
Tahir Imtiaz
Рет қаралды 1,2 М.
SQL Joins: Difference Between Inner/Left/Right/Outer Joins
10:52
SQL Tutorial for Beginners [Full Course]
3:10:19
Programming with Mosh
Рет қаралды 12 МЛН
Database Indexing Explained (with PostgreSQL)
18:19
Hussein Nasser
Рет қаралды 312 М.
Сюрприз для Златы на день рождения
00:10
Victoria Portfolio
Рет қаралды 2,4 МЛН