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!
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.
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
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
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)
@@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...
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 ```
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
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?
@@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.
@@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? "
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
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
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.
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.
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
# 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?
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 :)
*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)
*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;
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;