I Nailed the Deloitte Interview with This Tricky SQL Query!

  Рет қаралды 3,618

Manish Sharma

Manish Sharma

Күн бұрын

Пікірлер: 24
@Rebellionrider
@Rebellionrider 2 ай бұрын
Odin School cohort starts soon - hubs.la/Q02PW0gm0
@vru5696
@vru5696 2 ай бұрын
I request you to create detailed video on Data modelling and Query optimization (multiple ways)
@sowmya6471
@sowmya6471 19 күн бұрын
Super...I don't know to use using clause with delete
@kishorekumar4542
@kishorekumar4542 2 ай бұрын
Thanks for the information sharing
@DeepikaJ-s6q
@DeepikaJ-s6q Ай бұрын
Isn't this possible with Join itself?
@davidwarshawsky1559
@davidwarshawsky1559 Ай бұрын
Amazing video, I will pray though that you learn the shutter noise is so annoying
@crickmoments3732
@crickmoments3732 Ай бұрын
Is this feature available in SQL Server.
@sanandmath4127
@sanandmath4127 26 күн бұрын
The DELETE command would delete the primary key record from the medicines_table, and that primary key would be gone. But now the stock_table would continue to have that record containing medicine_id (Foreign key), but there is no corresponding medicine_id (primary key) in the medicines_table. So will this DELETE statement succeed?
@sanandmath4127
@sanandmath4127 26 күн бұрын
Because of the Referential Integrity Violation.
@sandhyarani2342
@sandhyarani2342 Ай бұрын
How can we do it in sqlserver without cte
@DeepikaJ-s6q
@DeepikaJ-s6q Ай бұрын
isnt this possible with join operation itself?
@nmaurya347
@nmaurya347 12 күн бұрын
Oracle doesnt allow delete with joins
@debayanapanigrahi8121
@debayanapanigrahi8121 2 ай бұрын
can we perform it in oracle ?
@Rebellionrider
@Rebellionrider 2 ай бұрын
unfortunately no! Oracle does not support DELETE with USING we have to go with CTE option there
@vru5696
@vru5696 2 ай бұрын
​@@Rebellionrider request you to create detailed video on data modelling and optimization(multiple ways). Thank you
@Ujjwalmishra-t1w
@Ujjwalmishra-t1w 2 ай бұрын
I'm big fan of yours
@Superhuman757
@Superhuman757 2 ай бұрын
But you are oracle guy and using sql syntax here.
@chinmayamuduli468
@chinmayamuduli468 2 ай бұрын
In this query stock table has foreign key for medicine if medicine id 1 comes multiple times and different. Expiry date if it has date of 2024-10-10 and other date is 2023-12-2 then medicine id 1 will be totally deleted
@Rebellionrider
@Rebellionrider 2 ай бұрын
Hi there, I was reviewing your comment and wanted to get your thoughts on something. You mentioned that the same medicine_id could appear multiple times in the stock table with different expiration dates. Could you help me understand why that would happen in a real-world scenario? For example, I’m wondering why a single medicine (with the same medicine_id) would have multiple expiry dates. Is it related to different batches or a specific stock management system? I just want to make sure I’m looking at this the right way. Thanks so much for your insight!
@chinmayamuduli468
@chinmayamuduli468 2 ай бұрын
In the stock table the medicine id is foreign key so that's why i think medicine id would be duplicate herre
@aamirsohail3381
@aamirsohail3381 Ай бұрын
Great video. Bad editing. Humble request, don't pop comments suggestions in b/w explaining query.
@av98
@av98 2 ай бұрын
Start a startup bro. Don't pursue this rat race when you just need to redirect your efforts.
@Rebellionrider
@Rebellionrider 2 ай бұрын
You have no idea I seriously want to do that but I have no idea how to do that above that I have no one to support me.
@Ujjwalmishra-t1w
@Ujjwalmishra-t1w 2 ай бұрын
Tu nikal gya mat de
Stop Slow Queries! Learn Query Optimization in DBMS Today!
14:20
Manish Sharma
Рет қаралды 2,1 М.
When u fight over the armrest
00:41
Adam W
Рет қаралды 28 МЛН
HR mock interview|| Best HR round question and answers for freshers - 54
5:21
Techqflow Software Solutions
Рет қаралды 1,2 МЛН
The 25 SQL Questions You MUST Know for Data Analyst Interviews
32:47
KSR Datavizon
Рет қаралды 242 М.
SQL Common Table Expressions Explained in 2024 | SQL Tutorial
8:30
5-Minute SQL Performance Boost Using Execution Plans
8:02
Manish Sharma
Рет қаралды 3 М.
Learn 12 Basic SQL Concepts in 15 Minutes (project files included!)
16:48
TCS Campus Interview I Campus Placements I Gauri Shrimali I Arvind Singh Pemawat
18:09