Checkout the Big Data course details here: trendytech.in/?referrer=youtube_lc4
@sakshijain35348 ай бұрын
with cte as(select email ,row_number() over(partition by email order by email) as rn from person) select distinct email from cte where rn > 1;
@mohammadshahfaishal27472 жыл бұрын
#duplicate email.You don't need to write a derived table. You can do it one email. "Select email from table_name group by 1 Having count(*)> 1"
@souvik55602 жыл бұрын
Loved it 👍🏼 Thank you for the session. It would be really great if you could explain why one query is better than the other query. The interviews do ask for optimisation and the basis for it.
@sumitmittal072 жыл бұрын
Glad that you are liking the sessions. Yes, will cover it in the upcoming videos.
@abhisheksuman65922 жыл бұрын
Very Informative 👍 Continue this series as it will help a lot to people looking to crack data analyst interview.
@manoharmanu399 Жыл бұрын
select name from customers where id not in(select customerID from orders)
@Anonymous_it_is2 жыл бұрын
Thanks for this video sir. Alternate solution using Partition : SELECT DISTINCT email FROM (SELECT email, COUNT(email) OVER (PARTITION BY email) AS part FROM Person) AS temp WHERE temp.part > 1; Sir, could you please explain - is there any performance differentiation between the above query and the query shown in video. Thank You!
@arunsundar37398 ай бұрын
able to solve sql problems on my own now :)
@mallikarjunpatil75532 жыл бұрын
Thanks for very nice explanation.. Waiting for the premium questions
@shananwar31992 жыл бұрын
Thanks a lot, waiting for next session.
@sumitmittal072 жыл бұрын
Very soon :)
@shivangikhanna61632 жыл бұрын
I got this question in one of the interviews last week. You are just late by few days 😅. Just kidding! Incredible content Sumit sir.
@sayantansarbadhikary69176 ай бұрын
🎉
@vijaybabukommuri51254 күн бұрын
select name as Customers from Customers where id not in (select customerId from Orders group by customerId)
@vijaybabukommuri51254 күн бұрын
I think this is more simpler way SELECT email FROM person GROUP BY email HAVING COUNT(email) > 1;
@akkiwadhwa6618 Жыл бұрын
Jb nhi pta kyu btara hai..Chu
@pragyajaiswal57542 жыл бұрын
select Customers.name as "Customers" from Customers join Orders ON Customers.id != Orders.customerid; Can someone point out where i am doing wrong?
@HARSHRAJ-gp6ve7 күн бұрын
select email FROM Person GROUP BY email HAVING COUNT(id)>1; select name as Customers FROM Customers LEFT JOIN Orders ON Customers. id=Orders.CustomerID where CustomerId is null;