Тёмный
Learn With Chirag
Learn With Chirag
Learn With Chirag
Подписаться
Hello Friends,
Learn with Chirag is your go-to destination for insightful videos on coding tutorials, interview experiences, and navigating both college and corporate life. Join me on a journey of skill-building and personal growth! 💫

Connect With Me On :-
Instagram Handles :
@createwithchirag
@learn.with.chirag

For Sponsorship & Business
Enquiries :-
chiragsehgalwork@gmail.com

Subscribe to the channel and press the bell 🔔 for the latest updates!
Комментарии
@sarthakgupta3548
@sarthakgupta3548 11 часов назад
First of all thank you so much sir for this interview series , You are literally giving a lot to the community. I wanted to ask how to figure out in every question that it could be done through joins, subquery, clauses. Basically how to strike our mind that this is problem of subquery or joins etc.
@Sparzzzzzzzzzzz
@Sparzzzzzzzzzzz День назад
bhai you explain so well. to the point. love this
@saifilicious1749
@saifilicious1749 2 дня назад
what if we dont use the min function in the subquery. isnt just select player_id, event_date enough?
@rahulkumar-sk9sj
@rahulkumar-sk9sj 2 дня назад
select case when income < 20000 then "Low Salary" when income between 20000 and 50000 then "Average Salary" when income > 50000 then "High Salary" end as category,count(*) as accounts_count from Accounts group by category; but the problem is how to put 0 for average salary. please reply sir
@IqraMubeen.sheikh
@IqraMubeen.sheikh 2 дня назад
Leetcode 😃😄
@K4AYO
@K4AYO 3 дня назад
bhaai css me ghabraa gayaa 😐
@thevagabond85yt
@thevagabond85yt 3 дня назад
1:52:00 in this solution DISTINCT is redundant. why ? (contest_id, user_id) is the primary key and final answer is grouped by (contest_id) . after LEFT JOIN's ON condtion each of the group is going to have distinct user_id. there cannot be two (208, 5) 1:57:30 SELECT query_name, ROUND(AVG(rating/position),2) AS quality, ROUND(SUM(rating<3)*100/COUNT(*),2) AS poor_query_percentage FROM Queries q GROUP BY query_name HAVING query_name IS NOT NULL
@thevagabond85yt
@thevagabond85yt 3 дня назад
1:40:25 A point worth considering while performing SUM() on column containing some or all values as NULL is : # SUM() function ignores NULL values when calculating the sum of a set of values # SUM(null) returns NULL # null/null returns NULL DEMO : mysql> select * from num; +----+------+ | id | val | +----+------+ | 1 | NULL | | 4 | NULL | +----+------+ 2 rows in set (0.00 sec) mysql> select SUM(val) from num; +----------+ | SUM(val) | +----------+ | NULL | +----------+ 1 row in set (0.00 sec) mysql> select SUM(val)/SUM(val) from num; +-------------------+ | SUM(val)/SUM(val) | +-------------------+ | NULL | +-------------------+ 1 row in set (0.00 sec) After inserting a valid number : mysql> select * from num; +----+------+ | id | val | +----+------+ | 1 | NULL | | 2 | 3 | | 4 | NULL | +----+------+ 3 rows in set (0.00 sec) mysql> select SUM(val) from num; +----------+ | SUM(val) | +----------+ | 3 | +----------+ 1 row in set (0.00 sec)
@madhusudhan4001
@madhusudhan4001 4 дня назад
you have a great solution, but decided to explain only to people who can understand hindi.
@satyamchauhan9775
@satyamchauhan9775 4 дня назад
bhai agar solutin hi dekhna hota to chat gpt kar leta main
@learnwithchirag
@learnwithchirag 4 дня назад
@@satyamchauhan9775 nhi bhai explanation bhi mil jati h udhr, vaise toh video ki need hi nhi honi chahiye SQL meh I think.....just logon neh request kri toh jitna aata tha bana diya...
@thevagabond85yt
@thevagabond85yt 4 дня назад
58:40 For question like these always start as shown below TO GET THE FEELING OF WHAT IS GOING UNDER THE HOOD : ``` SELECT * # l.machine_id as machine_id, # ROUND(( SUM(r.timestamp-l.timestamp) / COUNT(DISTINCT(l.process_id)) ), 3) as processing_time FROM Activity l JOIN Activity r ON l.machine_id = r.machine_id AND l.process_id = r.process_id AND l.timestamp < r.timestamp #GROUP BY l.machine_id ```
@Abhay14
@Abhay14 4 дня назад
bhai ye SQL ki query ka syntax kitna hard h ye interval vala new syntax aa gya
@kavya.r1908
@kavya.r1908 5 дней назад
Hi I got selected in carelon's for "associate software engineer" role in February 2024, they made me wait till September telling we will onboard soon. But after these 8 months, i got a mail today saying that onboarding is deferred to next year due to some reasons. How is this acceptable? Can you please help me with this. Can I do something to Join work soon? I had created workplace account. I was waiting for offer letter. Waiting for your response. Thank you
@srivenkatesh3450
@srivenkatesh3450 5 дней назад
I got the same mail from yesterday and I got selected Feb 2024 and now I don't know what to do. Actually I'm from Bangalore and where your from @kavya.r1908. And I have one doubt, they're saying to give around next year March. So I will wait for that. If they didn't means? And also they will revoke the Offer?
@kavya.r1908
@kavya.r1908 4 дня назад
@@srivenkatesh3450 hi, Iam from Bangalore. I would advice you to not wait for carelon's until next year, IT industry is vulnerable. Start looking for other jobs and join other companies if u get offers. That's what Iam doing right now.
@srivenkatesh3450
@srivenkatesh3450 4 дня назад
​@@kavya.r1908 Thanks for the advice, I will follow your lead and try looking for another job. But a small doubt is I have asked you question, your didn't answer. "Can they revoke the Offer now? "
@NawafXRMFC
@NawafXRMFC 5 дней назад
🤨🤨🤨🤨🤨🤨🤨🤨
@thevagabond85yt
@thevagabond85yt 6 дней назад
cant believe showing only 224 likes.... should be 2M likes
@im_ykp
@im_ykp 6 дней назад
This is also working is JOIN instead of CROSS JOIN. What the difference between them?
@shraddhapawar454
@shraddhapawar454 7 дней назад
Let's say we have one more salary 400 here, so in e1 salary 300 will be less than e2 salary 400. And if we take max of e1 salary it will be 300 not 200. So how can we solve this using method that you've used in the video
@krishnavishwakarma9949
@krishnavishwakarma9949 7 дней назад
thanks
@siddharthakar9369
@siddharthakar9369 9 дней назад
nice
@hammadali4638
@hammadali4638 11 дней назад
Came here for "Just enough information for the solution". Stayed and subbed for the EPIC explanation! Thank you :0
@PracticePrecision
@PracticePrecision 11 дней назад
Amazing Bhai , your expalnation is AWESOME
@SajanKumar-ec2us
@SajanKumar-ec2us 11 дней назад
not clear transction count
@nisargbhamat7077
@nisargbhamat7077 12 дней назад
can you upload bigfrontend dev js questions??
@srushtikale7455
@srushtikale7455 12 дней назад
Great Explanation I finally understood aggregate function for confirmation_rate
@samridhshubham8109
@samridhshubham8109 12 дней назад
This is impressive stuff, NGL
@SajanKumar-ec2us
@SajanKumar-ec2us 13 дней назад
please explain what is does in function
@sardarhussain8497
@sardarhussain8497 13 дней назад
Top class bro
@skabdulkhahirahammed3757
@skabdulkhahirahammed3757 13 дней назад
Hi chirag, I am passed out of 2024 from KL University And I too selected for the carelon global solutions as an associate software engineer But till now I recieved only an LOI around in the month of May and I have been waiting for offer letter May I know How many days did u taken to recieve the offer letter and can you please help me out with the above problem Waiting for your reply Thank you
@learnwithchirag
@learnwithchirag 11 дней назад
First of all congratulations 🎉 You will be getting an offer letter 2 to 4 weeks prior to joining. I got it after 6 months of getting LOI. For more information, you can connect with your seniors from college who were selected last year in Carelon. Usually every year they onboard during the same time depending on college to college. So ask your seniors in which month they were onboarded , you will be onboarded most probably in that month only. If it's the first time Carelon is coming in your campus then u can mail them or whenever the HR mails you or calls you u can directly ask them the expected month of joining.
@srivenkatesh3450
@srivenkatesh3450 5 дней назад
Hello Chirag, I'm Sri Venkatesh from Bangalore for Associate Software Engineer. I got selected in Feb 2024 and also I got LOI in the month of March and I applied the Workday in the month of August. Main Problem: They said, "They will finish the onboarding process before November". Now I got the Mail "Letter of Deferring (i.e. Early of next year means Jan - Mar)". So what can I do sir, can I wait for the job so will they give offer surely? or-else leave the offer so I will try another company. So reply soon Chirag brother.
@vishalmane3139
@vishalmane3139 15 дней назад
what is ids r nt consecutive.. wt will be the query ?
@ranaammar984
@ranaammar984 16 дней назад
amazing
@maqbollodhraofficial915
@maqbollodhraofficial915 17 дней назад
Thanks sir
@Sjjsjam
@Sjjsjam 18 дней назад
Sir make one shot on sql in depth
@mdamirhussain2095
@mdamirhussain2095 18 дней назад
select max(num) as num from MyNumbers where (num) IN (select num from MyNumbers group by num having count(num) = 1) group by num maine ye likha tha ... Maloom nahi kyuu nahi chal raha hai ye
@mdamirhussain2095
@mdamirhussain2095 18 дней назад
last wala group by lagane se galat kyu ho jaa raha hai bhai ....
@karunakarverma6467
@karunakarverma6467 19 дней назад
TLE mar gya ye to
@ajaharuddinmohd9590
@ajaharuddinmohd9590 19 дней назад
Second Highest Salary: with Sub query SELECT (SELECT DISTINCT salary FROM Employee ORDER BY salary DESC LIMIT 1 OFFSET 1) AS SecondHighestSalary;
@adityashrivastav3148
@adityashrivastav3148 19 дней назад
can we use between clause into this ?
@sumitkesarwani7082
@sumitkesarwani7082 20 дней назад
sir mujhe ye function compostions mai doubt hai clear samjh mai nhi aya
@supriyakashyap3295
@supriyakashyap3295 20 дней назад
Sir, the syntax you are using is for MYSQL or POSTGRESQL?
@dheerajghazipuria7310
@dheerajghazipuria7310 22 дня назад
Bhai kaam chahiye
@shivendrapratapsingh8781
@shivendrapratapsingh8781 23 дня назад
# Write your MySQL query statement below SELECT product_id, MIN(year) AS first_year, quantity, price FROM Sales GROUP BY product_id what is the problem with this solution?
@dhruvinchawda439
@dhruvinchawda439 16 дней назад
Because if you will read the concept of group by clause you will find that any column not included in the GROUP BY clause must be an aggregate function (e.g., MIN(), SUM()). However, quantity and price are not aggregated, and hence the query is invalid. Since you want to group by only by product_id that's why we used sub query here. Hope this cleared your's and everyone's doubt :)
@AyanAbbas-ps8xv
@AyanAbbas-ps8xv 24 дня назад
people dont know how underrated this guy is...... you deserve a lot bro
@ajaharuddinmohd9590
@ajaharuddinmohd9590 25 дней назад
*Immediate Food Delivery* Why am I getting an error when I use AVG() function in the query? SELECT ROUND(AVG(IF(MIN(order_date) = customer_pref_delivery_date, 1, 0)),2) immediate_percentage FROM Delivery WHERE (customer_id, order_date) IN (SELECT customer_id, MIN(order_date) first_order_date FROM Delivery GROUP BY customer_id)
@ajaharuddinmohd9590
@ajaharuddinmohd9590 25 дней назад
*Queries Quality and Percentage* In question 19, all test cases are passing with your solution but one is failing which has NULL values in the query_name column. To pass all test cases: SELECT query_name,ROUND(AVG(rating/position),2) quality, ROUND(AVG(IF(rating <3, 1,0)*100),2) poor_query_percentage FROM Queries WHERE query_name IS NOT NULL GROUP BY query_name;
@thevagabond85yt
@thevagabond85yt 3 дня назад
ROUND(SUM(rating<3)*100/COUNT(*),2) AS poor_query_percentage also works. but yes WHERE or HAVING clause is required to eliminate NULL query_name
@baivabsarkar
@baivabsarkar 26 дней назад
Great explanation! I was trying a new approach and came across this query, the runtime of 197ms, beating 87.71% SELECT a1.machine_id, ROUND(AVG(a2.timestamp - a1.timestamp), 3) AS processing_time FROM Activity a1 JOIN Activity a2 ON a1.machine_id = a2.machine_id AND a1.process_id = a2.process_id AND a1.activity_type = 'start' AND a2.activity_type = 'end' GROUP BY a1.machine_id;
@RajeshKR-q3y
@RajeshKR-q3y 27 дней назад
Very Well Explained
@sonavijapure
@sonavijapure 27 дней назад
🥲omg it was so easy why i did not think in this way i have written such long query 😓 I still need lot of practice 😓
@MANI_bhaii
@MANI_bhaii 27 дней назад
Bhai agar aap Striver ki DSA A2Z sheet pe Bna sakte ho , RU-vid pe Javascript DSA hai nhi ache se
@MANI_bhaii
@MANI_bhaii 27 дней назад
Bhai yaar best series itna depth me kisi ne nhi karayi ye JS series on RU-vid hats off bro 👍👍
@justcodeitbro1312
@justcodeitbro1312 28 дней назад
if we are using group by then it will count the number of user_id in each group right ? no need of distinct worked for me without it
@HarshalDevre-x8w
@HarshalDevre-x8w Месяц назад
@Learn With Chirag why this problem cant be solved using self join plz answer