Difference between DELETE, TRUNCATE AND DROP in SQL.

  Рет қаралды 131,076

Crack Concepts

Crack Concepts

Күн бұрын

In this video, we'll understand the difference between DELETE, Truncate and drop. This is an important interview question.
✨Work related mails can be sent on:
work.sadiasiddiqui@gmail.com
✨If you appreciate my work and would like to donate to support our channel, you can do so here:
paypal.me/sadi...

Пікірлер: 80
@crackconcepts
@crackconcepts Жыл бұрын
✨Link to my SQL e-book: imojo.in/rkajq9 ✨Link to 'Switch your career easily' e-book: imojo.in/1FL7KaG (Perfect for anyone willing to switch to a completely new field or to a different company in the Tech World)
@imanoo3
@imanoo3 4 жыл бұрын
Better explanation than my confused instructor. Thank you!
@sohammajumder9743
@sohammajumder9743 5 жыл бұрын
Your voice is very sweet 🥺🥺🥺
@foodloverchannel1820
@foodloverchannel1820 4 жыл бұрын
kzbin.info/www/bejne/j3qTZ4ZjZdl0pcU
@justinrocky6645
@justinrocky6645 4 жыл бұрын
kzbin.info/www/bejne/j3qTZ4ZjZdl0pcU
@simranbanwait
@simranbanwait 2 жыл бұрын
Sigma male never simp , anyways thanks for the video mam
@ANURAGSINGH-nl2ll
@ANURAGSINGH-nl2ll Жыл бұрын
Aww😂
@Youcefstark
@Youcefstark 9 ай бұрын
😂😂😂
@kavitha-99
@kavitha-99 2 жыл бұрын
Very cleanly explained and straight to the point. Thank you!
@subramaniang5265
@subramaniang5265 4 жыл бұрын
Hi Mam, you are explaining in a very well manner and requesting to post similar kind of videos for SQL. Thanks for your good work and keep up the same.
@foodloverchannel1820
@foodloverchannel1820 4 жыл бұрын
kzbin.info/www/bejne/j3qTZ4ZjZdl0pcU
@foodloverchannel1820
@foodloverchannel1820 4 жыл бұрын
kzbin.info/www/bejne/j3qTZ4ZjZdl0pcU
@foodloverchannel1820
@foodloverchannel1820 4 жыл бұрын
kzbin.info/www/bejne/j3qTZ4ZjZdl0pcU
@foodloverchannel1820
@foodloverchannel1820 4 жыл бұрын
kzbin.info/www/bejne/j3qTZ4ZjZdl0pcU
@justinrocky6645
@justinrocky6645 4 жыл бұрын
kzbin.info/www/bejne/j3qTZ4ZjZdl0pcU
@Tanu-mw4jg
@Tanu-mw4jg 4 жыл бұрын
Good one dear.But, just remove * from delete query bcoz it will give error. Also,with respect to identity column there is a difference in between delete and truncate.In case of delete identity value is not reset while in case of truncate identity value gets reset to the initial seed value given in the table definition.
@justinrocky6645
@justinrocky6645 4 жыл бұрын
kzbin.info/www/bejne/j3qTZ4ZjZdl0pcU
@vinaykumar-xf5mo
@vinaykumar-xf5mo 3 жыл бұрын
Go to Edit --> Preferences. Click "SQL Editor" tab and uncheck "Safe Updates" (rejects UPDATEs and DELETEs with no restrictions) check box. Query --> Reconnect to Server.
@ArunKumar-ri4bo
@ArunKumar-ri4bo 3 жыл бұрын
Hlo mam your explanation is very good and your voice also🥰
@ArunKumar-ri4bo
@ArunKumar-ri4bo 3 жыл бұрын
👋
@sohammajumder9743
@sohammajumder9743 5 жыл бұрын
I was facing a problem in finding the difference between these 3 but you helped me out
@foodloverchannel1820
@foodloverchannel1820 4 жыл бұрын
kzbin.info/www/bejne/j3qTZ4ZjZdl0pcU
@safarnaama8798
@safarnaama8798 3 жыл бұрын
Firoz Alam here, concepts are well explained.
@Shreysanthu
@Shreysanthu 5 жыл бұрын
Good teaching with good and clear voice .... thank you. Better you explain practically with SQL workbench please
@foodloverchannel1820
@foodloverchannel1820 4 жыл бұрын
kzbin.info/www/bejne/j3qTZ4ZjZdl0pcU
@foodloverchannel1820
@foodloverchannel1820 4 жыл бұрын
kzbin.info/www/bejne/j3qTZ4ZjZdl0pcU
@justinrocky6645
@justinrocky6645 4 жыл бұрын
kzbin.info/www/bejne/j3qTZ4ZjZdl0pcU
@sank8277
@sank8277 5 жыл бұрын
Nice explanation.But remove that * in delete query.if we give * query wont work
@harishbmn
@harishbmn 4 жыл бұрын
Simple and clear. Be little louder mam.
@foodloverchannel1820
@foodloverchannel1820 4 жыл бұрын
kzbin.info/www/bejne/j3qTZ4ZjZdl0pcU
@vinaykumar-xf5mo
@vinaykumar-xf5mo 3 жыл бұрын
Go to Edit --> Preferences. Click "SQL Editor" tab and uncheck "Safe Updates" (rejects UPDATEs and DELETEs with no restrictions) check box. Query --> Reconnect to Server.
@nagarajanerode
@nagarajanerode 3 жыл бұрын
Simple and to the point expected.
@MiteshRathva
@MiteshRathva 4 жыл бұрын
Thank you 🙏
@aakashsakharkar9349
@aakashsakharkar9349 2 жыл бұрын
yes i m also able to understand this difference thanks
@yashkhade
@yashkhade Жыл бұрын
Thank you this helped me.
@IQBees
@IQBees 2 жыл бұрын
Nice Explanation
@digambar6191
@digambar6191 2 жыл бұрын
thnx☺☺
@techconcepts1318
@techconcepts1318 4 жыл бұрын
The main difference between delete and truncate is, delete does not reset the identity value, truncate resets the identity value.
@justinrocky6645
@justinrocky6645 4 жыл бұрын
kzbin.info/www/bejne/j3qTZ4ZjZdl0pcU
@mederamadan8945
@mederamadan8945 4 жыл бұрын
Hello from Kurdistan, Thank u varrrry🔥
@doratv4892
@doratv4892 2 жыл бұрын
Thank you
@meghnagupta313
@meghnagupta313 2 жыл бұрын
We do can use flashback after drop by checking is table shows still in recycle bin correct?
@Nishant.420
@Nishant.420 2 жыл бұрын
And what about drop when we use it with alter fun. To drop column...?
@debarghyamukherjee7834
@debarghyamukherjee7834 3 жыл бұрын
you should have mentioned that DELETE can be rollbacked and not DROP & TRUNCATE... anyways, good explanation
@stargazingblindly
@stargazingblindly 5 жыл бұрын
Thank you very much you explained the difference very clearly =]
@justinrocky6645
@justinrocky6645 4 жыл бұрын
kzbin.info/www/bejne/j3qTZ4ZjZdl0pcU
@Ganeshay-09
@Ganeshay-09 Жыл бұрын
TRUNCATE command delete all rows even that Table has Primary or Foreign Key . Right ?
@shashankdwivedi258
@shashankdwivedi258 4 жыл бұрын
Ohh My God!!!! Your Voice is mesmerizing!!!!
@recreate5421
@recreate5421 3 жыл бұрын
Informative 👍🏻
@ragavendrad574
@ragavendrad574 3 жыл бұрын
Hi Madam, I want to insert data to a table ....I need to check whether data exist before inserting data... Do we have anything like check constraints ?
@apurvakulkarni9409
@apurvakulkarni9409 3 жыл бұрын
I thought simply you can use desc table ....or select*from table...it shows you whether data present or not..... and one more way I thought is simply you give insert into table name(column parameters).. values (input according to column.. but take care of null not null and primary key..and insert value)..it will add new row without overwrite previous one.
@naazvlogs12
@naazvlogs12 4 жыл бұрын
In this drop can be rolled back using Rollback-tcl statement right?
@Shiva-zi9nw
@Shiva-zi9nw 5 жыл бұрын
Very well explained
@justinrocky6645
@justinrocky6645 4 жыл бұрын
kzbin.info/www/bejne/j3qTZ4ZjZdl0pcU
@nagendrababu5740
@nagendrababu5740 3 жыл бұрын
i think u missed (*,) as star &cama in CTE query is it correct
@kashmeershaik9217
@kashmeershaik9217 5 жыл бұрын
Good explanation.. 😊😊👌
@justinrocky6645
@justinrocky6645 4 жыл бұрын
kzbin.info/www/bejne/j3qTZ4ZjZdl0pcU
@aayushisoni4009
@aayushisoni4009 3 жыл бұрын
if i drop a database , all the tables under it will also be removed?
@lavarajugiduturi2441
@lavarajugiduturi2441 Жыл бұрын
yes
@muralikrishna8882
@muralikrishna8882 4 жыл бұрын
Thanks madam.
@justinrocky6645
@justinrocky6645 4 жыл бұрын
kzbin.info/www/bejne/j3qTZ4ZjZdl0pcU
@kannanr1827
@kannanr1827 5 жыл бұрын
Good one...👌👌👏👏
@hemayerubandi7015
@hemayerubandi7015 5 жыл бұрын
whta do mean by freeing the space here ? Delete from table and truncate table both will remove all the records from table .... What this space is about ? Kind of confused
@justinrocky6645
@justinrocky6645 4 жыл бұрын
kzbin.info/www/bejne/j3qTZ4ZjZdl0pcU
@HarshaSaivizagfan
@HarshaSaivizagfan 2 жыл бұрын
Syntax for delete and truncate
@snigdharoy1938
@snigdharoy1938 5 жыл бұрын
Good 👍
@foodloverchannel1820
@foodloverchannel1820 4 жыл бұрын
kzbin.info/www/bejne/j3qTZ4ZjZdl0pcU
@justinrocky6645
@justinrocky6645 4 жыл бұрын
kzbin.info/www/bejne/j3qTZ4ZjZdl0pcU
@vipinkumark4476
@vipinkumark4476 3 жыл бұрын
Madam please attach the photo of that paper in discrimination.. It will. Be helpfull
@nancyguruswamy9488
@nancyguruswamy9488 3 жыл бұрын
In delete we need to add commit ;
@barkatulislam4639
@barkatulislam4639 4 жыл бұрын
Ma'am I want a better career in IT please guide me 🙏🙏🙏
@justinrocky6645
@justinrocky6645 4 жыл бұрын
kzbin.info/www/bejne/j3qTZ4ZjZdl0pcU
@saltech2024
@saltech2024 Жыл бұрын
Nice
@venkateshgg9519
@venkateshgg9519 4 жыл бұрын
super explenation
@revanthm2982
@revanthm2982 Жыл бұрын
Need SQL notes. ..
@sushilpal5460
@sushilpal5460 5 жыл бұрын
dulcet voice mam.....
@justinrocky6645
@justinrocky6645 4 жыл бұрын
kzbin.info/www/bejne/j3qTZ4ZjZdl0pcU
SQL "difference between" interview questions (part 2)
7:15
Crack Concepts
Рет қаралды 226 М.
Difference Between DELETE, DROP and TRUNCATE | SQL | DBMS
7:32
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Lec-57 Difference between Delete, Drop & Truncate in SQL | DBMS
10:19
Gate Smashers
Рет қаралды 653 М.
7 Database Design Mistakes to Avoid (With Solutions)
11:29
Database Star
Рет қаралды 101 М.
WHY NORMALIZATION IS NEEDED IN DBMS? (WITH EXAMPLE)
5:42
Crack Concepts
Рет қаралды 263 М.
SQL "difference between" interview questions (part 1)
8:20
Crack Concepts
Рет қаралды 640 М.
SQL Joins: Difference Between Inner/Left/Right/Outer Joins
10:52