Learn SQL the right way - session 3 | Primary Key vs Unique Key | Trendytech

  Рет қаралды 102,873

Sumit Mittal

Sumit Mittal

Күн бұрын

Пікірлер: 89
@sumitmittal07
@sumitmittal07 2 жыл бұрын
Checkout the Big Data course details here: trendytech.in/?referrer=youtube_sql4
@SANATANIAMERICA
@SANATANIAMERICA Жыл бұрын
I have been working as a QA automation engineer. would like to update my skill/competency. which course do you suggest for me sir?
@traveltv1707-eu7em
@traveltv1707-eu7em Жыл бұрын
​😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊
@Soham_III
@Soham_III 2 ай бұрын
I have watched a lot off tutorial on udemy and youtube no one teach like you sir. Your teaching is simple and understandable thanx a lot sir ❤❤
@nikhilgupta6803
@nikhilgupta6803 3 жыл бұрын
waiting for the completion of basics and upcoming advanced concepts of sql sumit sir....excellent work n gift for working professionals.
@sumitmittal07
@sumitmittal07 3 жыл бұрын
Thank you Nikhil for those kind words. Motivates me to create more :)
@nikhilgupta6803
@nikhilgupta6803 3 жыл бұрын
@@sumitmittal07 🙏
@dineshchavan9462
@dineshchavan9462 3 жыл бұрын
Beyond the ordinary..No words to describe your teaching..it is flawless..
@sumitmittal07
@sumitmittal07 3 жыл бұрын
humbled 😀
@pankajmaheshwari128
@pankajmaheshwari128 Жыл бұрын
It is rare to find such easy and descriptive session .My suggestion is to go through complete playlist practice along side . It will take some time but trust it will worth it. I am one of student of Sumit sir's big data program. The way he explain the concept is just phenomenal. Thanks Sumit sir :)
@narenderreddynarender8970
@narenderreddynarender8970 3 жыл бұрын
Hello Sumit. Thank you for providing valuable course in tough times. I've followed few channels for SQL and it's always confusing because lot of other flavours of SQL are mixed with it. Hopefully I'll find out complete SQL course and be able to write easy to intermediate queries required for Data Analyst. Thank you again and very good luck to all the viewer's and subscribers of this course 👍🙏🙂
@yogeshkumarkumawat
@yogeshkumarkumawat 2 жыл бұрын
Amazing SQL videos.. finally i have found good channel for SQL
@sumitmittal07
@sumitmittal07 2 жыл бұрын
Glad to hear that!
@dlakhaiyar
@dlakhaiyar 3 жыл бұрын
Sumit Sir makes everything simple, he is a true magician. Thank you so much Sir for the SQL couse, I am loving it! ❤️
@sumitmittal07
@sumitmittal07 3 жыл бұрын
Pleased that you are liking the SQL series :)
@PriyankaBhatt-m7o
@PriyankaBhatt-m7o Жыл бұрын
It is really a very good course. I am learning SQL from your videos and I am loving it. Thank you.
@rokibchi
@rokibchi 11 ай бұрын
Well described, My 2nd Day of this learning session.
@ksktest187
@ksktest187 2 жыл бұрын
Hi Sir, an amazing journey, I am starting it to sharpen my skills in SQL, without you it wouldn't have possible. Hats of for you Sir.
@atigyamishra4894
@atigyamishra4894 Жыл бұрын
Really appreciate your way of teaching sir . Clarity is on next level . Many thanks for your complete SQL play list .
@asifbhat3796
@asifbhat3796 Жыл бұрын
This is the way of teaching
@saurabhtekale5084
@saurabhtekale5084 3 жыл бұрын
Wonderful lession sir ...looking forward to go deeper into SQL🙂
@sumitmittal07
@sumitmittal07 3 жыл бұрын
Keep following, you will master SQL the right way :)
@Oisimran
@Oisimran 3 жыл бұрын
Spark-Sumit Forever😁
@charansai235
@charansai235 Жыл бұрын
so far the session are upto point, very easy to understand - good work sumit sir 👏
@kvmadhu13
@kvmadhu13 2 жыл бұрын
Sir, your way of teaching is amazing.
@abhishekkumar-sj2jj
@abhishekkumar-sj2jj 2 жыл бұрын
thank you for the quality course SUMIT SIR
@akshay8756
@akshay8756 2 жыл бұрын
13:45 autoincrement is irrespective of primary key right ? good candidate i didnt get 🤔
@tushardesai644
@tushardesai644 3 жыл бұрын
Excellent teaching Sumit Sir.
@sumitmittal07
@sumitmittal07 3 жыл бұрын
Happy to know that you are enjoying my teaching :)
@yashdhas8202
@yashdhas8202 3 жыл бұрын
Excited for 4th Video
@jyothia2177
@jyothia2177 2 жыл бұрын
You are doing an excellent work sir. Keep it up.
@fitking1234
@fitking1234 8 ай бұрын
Amazing Lecture
@saqibtariq3909
@saqibtariq3909 2 жыл бұрын
Thankyou Sumit Sir ! Nice tutorials 🙂
@akp7-7
@akp7-7 2 жыл бұрын
sir when primary key is set auto-increment for id and we have a unique key for name ..why for each wrong value for unique key ..the primary key auto increment it self? like my id=1 if i give unique key two times wrong .then 3rd time i gave correct value as per unique key..now my id=4..why not id=2 or 3 because value was not inserted in db and they were wrong as per unique key.
@SoumyaChatterjee-o7t
@SoumyaChatterjee-o7t Жыл бұрын
@Sumit Sir: If you can share the commands & class notes in the description section that would be really great.
@CricketLivejavwad
@CricketLivejavwad 11 ай бұрын
Sir kar diya subscribe :)
@purnenduduttajha7244
@purnenduduttajha7244 3 жыл бұрын
Amazing ❤🔥
@abhijeetsondkar3593
@abhijeetsondkar3593 2 жыл бұрын
Hi Sumit sir, can you please help with the names of other DB's where multiple null values are not allowed for Unique Key constraint?
@saurabhdhyani4498
@saurabhdhyani4498 2 жыл бұрын
Great video SIr!
@kaneezfatimakhan9692
@kaneezfatimakhan9692 2 жыл бұрын
Thanks sumit ! Good job 👍
@kiran4608
@kiran4608 2 жыл бұрын
Thank you sir🙌
@sumitmittal07
@sumitmittal07 2 жыл бұрын
Most welcome
@lakshminarayanavanapalli6769
@lakshminarayanavanapalli6769 Жыл бұрын
Hello sir.....do we have a concept of composite unique key??
@naga4326
@naga4326 2 жыл бұрын
Hey Sumit can you pls procedures, views, and triggers
@pawanseth70
@pawanseth70 2 жыл бұрын
You are the best
@navneet2649
@navneet2649 2 жыл бұрын
Sir can u give real life scenarios in which only Primary Key can/should be used and in situations where only Unique Key can/should be used? and thanks for the video 👍👍💖💖
@akashshirale1927
@akashshirale1927 8 ай бұрын
If we make the unique key as not null as well, will it behave like primary key?
@VinaySingh-op1el
@VinaySingh-op1el Жыл бұрын
Thank you so much sir
@moyeenshaikh9915
@moyeenshaikh9915 2 жыл бұрын
sir combination of unique keys means the same thing as putting the unique key in from of column name?
@vishnuvardhanyerasi
@vishnuvardhanyerasi 11 ай бұрын
Sir can you also please do the videos of plsql course please
@viratsharma5830
@viratsharma5830 2 жыл бұрын
When you use auto increment the structure of a table was showing thats the primary key is also active but you are using auto increment how both of them can be use at the same time.
@sameerpandey2344
@sameerpandey2344 3 жыл бұрын
Fall in love with learning SQL
@richathakur7715
@richathakur7715 2 жыл бұрын
Hi Sumit, i have started this course can you please tell shortcut to paste the code from notepad to the groomIDE workspace as ctrl+V does not work.
@hasanmougharbel8030
@hasanmougharbel8030 2 жыл бұрын
Hey there, kudos to your great efforts. I have a simple enquiry as an newbie sql learner. Why cant i have more than one primary key in a single table? Thanks for taking care of this.
@Naveen-qz1rv
@Naveen-qz1rv 2 жыл бұрын
Basically its like a roll number of a student.. you can have multiple keys which can uniquely identify records, bt those keys will be candidate key.. one key among them will be chosen as primary key for the table.. And yes, a table xan only have one and only primary key.. they key can be combo of multiple columns, but ony one primary key can exist
@chandannandy809
@chandannandy809 3 жыл бұрын
excellent
@hareramrai4190
@hareramrai4190 Жыл бұрын
Hello Sir, Good day. Sir , You mentioned about in session 1 you will provide this notepad where you are writing . But this is the 3rd video but i am not able to find any link related about this note. if you will provide it will very helpful for us.. Thank you Sir:)
@vaibhavdeodhar3301
@vaibhavdeodhar3301 2 жыл бұрын
Hi Sumit sir, From where I can download notes for these seasions
@RahulKumar-io1fw
@RahulKumar-io1fw 2 жыл бұрын
Sir Can we get your notes for sql series it is reallly very helpful
@amazingriknow5986
@amazingriknow5986 2 жыл бұрын
Dont waste money on paid lectures. Trust me , this sql series is better than almost 99.9% of paid lectures.
@AdityaSharma-xh8tg
@AdityaSharma-xh8tg 3 жыл бұрын
Sir, based on below screen shot here if ID is unique key, then does that mean records 2 and 3 are different, since Null means (we do not know the value) hence records 2 and 3 are distinct? even though they look same, but the records are unique Please advise..
@avinash9291
@avinash9291 Жыл бұрын
Sir, Auto_increment dint work alone, i had to add Primary Key to it
@mandakinigiri7493
@mandakinigiri7493 7 ай бұрын
While explaining about unique key , As you said we can have one primary key But in composite primary key you used two columns as primary key i.e PRIMARY KEY (ID, NAME) Then how it is possible ? THEN
@Venom-yk3wu
@Venom-yk3wu 2 жыл бұрын
bt u added two primary keys in the table ? when u said we can add only 1
@ahomosapienforlife5902
@ahomosapienforlife5902 Жыл бұрын
If unique key allow NULL values but if table definition has NOT NULL constraint then would NULL be accepted??
@sa2742
@sa2742 Жыл бұрын
Thx
@niteshadwani8522
@niteshadwani8522 Жыл бұрын
where i can find this notes
@PiyushAtghara
@PiyushAtghara 2 жыл бұрын
I am a working professional and loved your teaching methodology. Is there a way to get the running notes you are creating during the videos? @Trendytech Insights
@jimitshah7636
@jimitshah7636 2 жыл бұрын
What is a real life example where a unique key can be used?
@fawadzaadi
@fawadzaadi 2 жыл бұрын
Hello Sir, Can we auto-increment Unique Keys?
@shreyanshsingh2782
@shreyanshsingh2782 2 жыл бұрын
yes we can have it , but no meaning to do as we do it for primary key just to ensure if we have duplicate records then also we can distingiush between them.
@rahulkale3984
@rahulkale3984 2 жыл бұрын
For Auto Increment key Default it would take 1,2,.... For 1101,1102,.... how can we get this ID's in auto increment. Sumit Sir Could pls tell us ?
@SAURABHKUMAR-nn8sl
@SAURABHKUMAR-nn8sl 2 жыл бұрын
Insert the first record with id 1101 explicitly eg: INSERT INTO employee(id, fn, ln, age) VALUES (1101, '.....', ....... ); Then insert normally, no need to specify id in columns, it will auto-increment. eg: INSERT INTO employee(fn, ln, age) VALUES ..... ;
@kamilmohammed9722
@kamilmohammed9722 3 жыл бұрын
Why u r dropping table, can't we use alter /update table?
@sumitmittal07
@sumitmittal07 3 жыл бұрын
We can definitely use alter as seen in session 4... However Update is to update the record but not the structure.
@swarajkumar9550
@swarajkumar9550 2 жыл бұрын
when I create table in this format and then describe the table it shows id as primary key although I have specified it as UNIQUE KEY, if you could please tell the reason behind this.. create table employee ( id int UNIQUE KEY AUTO_INCREMENT, firstname varchar(20), lastname varchar(20), age int NOT NULL );
@swarajkumar9550
@swarajkumar9550 2 жыл бұрын
if this happened because of the auto increment then what if want to use auto increment with unique key.
@amreishpadmaraju2749
@amreishpadmaraju2749 Жыл бұрын
@@swarajkumar9550 create table employee ( id int AUTO_INCREMENT, firstname varchar(20), lastname varchar(20), age int NOT NULL, UNIQUE KEY (id) );
@AdityaSharma-xh8tg
@AdityaSharma-xh8tg 3 жыл бұрын
Hi Sir, Thank you very much for this video, I have a question here which others might have as well: Primary key (FirstName,LastName) is this same as FirstName varchar(20) Primary Key, LastName Varchar(20) PrimaryKey, will the sql editor accept the second statement? Since you said there is only one Primary key but we can have combination of 2 columns as Primary Key? Looking at the schema if there are more than 1 column with Primary key, should we say that Primary key was imposed on the combination of those columns?
@Pvamsikg
@Pvamsikg 2 жыл бұрын
Hi Aditya , have you got the answer for it, if please can you replay it! thanks
@shreyanshsingh2782
@shreyanshsingh2782 2 жыл бұрын
hey they are not same PRIMARY KEY(...) will work but second one will not work you can try maybe because if we give it for seperate columns, then this statement will be wrong like we can have only one primary key
@sandeepdvn9275
@sandeepdvn9275 Жыл бұрын
spr
@nukallakarthik9926
@nukallakarthik9926 7 ай бұрын
Where is the notepad document sir
@piyushjani8141
@piyushjani8141 2 жыл бұрын
Sumit sir ye document provide kardo please
@harishboddula9639
@harishboddula9639 Жыл бұрын
@SachinSharma-yd1ck
@SachinSharma-yd1ck 2 жыл бұрын
Hi Sumit sir, I cannot connect to your LinkedIn account. Please provide a link so that I can connect to you. I need some help so want to get in touch with you. Thanks in advance!
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Difference between Database vs Data lake vs Warehouse
25:05
Sumit Mittal
Рет қаралды 36 М.
Learn SQL the right way - Session 2 | Trendytech
37:23
Sumit Mittal
Рет қаралды 187 М.
The 25 SQL Questions You MUST Know for Data Analyst Interviews
32:47
KSR Datavizon
Рет қаралды 255 М.
Python Complete Course | Variables & Data Types | Session 1
56:43
Sumit Mittal
Рет қаралды 74 М.
End to End Azure Data Engineering Project by Sumit Sir
5:40:46
Sumit Mittal
Рет қаралды 42 М.