No video

127. Databricks | Pyspark| SQL Coding Interview:LeetCode-1045: Customers Who Bought All Products

  Рет қаралды 1,916

Raja's Data Engineering

Raja's Data Engineering

Күн бұрын

Azure Databricks Learning: Coding Interview Exercise: Pyspark and Spark SQL
=================================================================================
Coding exercises are very common in most Big Data interviews. It is important to develop coding skills before appearing for Spark/Databricks interviews.
In this video, I have explained a coding scenario to find the customers who bought all the products available. This is also one of the common coding exercises asked in MAANG/FAANG/GAMAM companies such as Google, Apple, Microsoft, Amazon, Meta, etc.
Consider the following tables:
Products Table:
+-----------+
|product_key|
+-----------+
| 5|
| 6|
+-----------+
Customers Table:
+-----------+-----------+
|customer_id|product_key|
+-----------+-----------+
| 1| 5|
| 2| 6|
| 3| 5|
| 3| 6|
| 1| 6|
+-----------+-----------+
Output:
+-------------+
| Customer_Id |
+-------------+
| 1 |
| 3 |
+-------------+
In this example, customer 1 and 3 bought all the products (5 and 6), so they are included in the output. Watch the video to understand the approach and solution for this coding problem, which can be very useful in your Big Data interviews."
To get more understanding, watch this video
• 127. Databricks | Pysp...
#Leetcode1045,#LeetcodeSQL1045, #LeetcodeCustomersBoughtAllProducts, #LeetCodeSQL, #HackerRankSQL,#MAANG/FAANG/GAMAM,#FAANGCodingQuestion, #SQLCoding, #PysparkCoding, #CodingInterviewQuestion, #ApacheSparkInterview, #SparkCodingExercise, #DatabricksCodingInterview,#SparkWindowFunctions,#SparkDevelopment,#DatabricksDevelopment, #DatabricksPyspark,#PysparkTips, #DatabricksTutorial, #AzureDatabricks, #Databricks, #Databricksforbeginners,#datascientists, #datasciencecommunity,#bigdataengineers,#machinelearningengineers

Пікірлер: 12
@sravankumar1767
@sravankumar1767 2 ай бұрын
After a long time came with new concept .Thanks Raja
@rajasdataengineering7585
@rajasdataengineering7585 2 ай бұрын
Thanks Sravan! 🙂
@vishnupriyaarora
@vishnupriyaarora Ай бұрын
Hello Raja, what's the best way to reach you?
@selvavinayaganmuthukumaran1332
@selvavinayaganmuthukumaran1332 2 ай бұрын
Hi Sir, do u have any git repo for all these notebook. It would be helpful if you could share these notebooks for reference
@rawat7203
@rawat7203 2 ай бұрын
Hi Sir My Way: count_product = product_df.distinct().count() grp_df = customer_df.groupBy('customer_id').agg(countDistinct('product_key').alias('count_of_product')) list_customers = grp_df.filter(col('count_of_product')==count_product).select('customer_id') list_customers.show() SQL: select customer_id from customers group by customer_id having count(distinct(product_key)) = (select count(product_key) from products);
@rajasdataengineering7585
@rajasdataengineering7585 2 ай бұрын
Thank you for sharing your approach!
@prajanna9696
@prajanna9696 2 ай бұрын
Hi sir..I am interested to join dataengineering please share your contact details like mail id..your KZbin mailid not receive mails
@rajasdataengineering7585
@rajasdataengineering7585 2 ай бұрын
Hi Rajanna, KZbin email Id is active and you can share your requirement to that email id. Thanks
@prajanna9696
@prajanna9696 2 ай бұрын
@@rajasdataengineering7585 this mail id mails not send ..please share mail id sir
@prajanna9696
@prajanna9696 2 ай бұрын
Hi sir can you please share your mail id ..
@rajasdataengineering7585
@rajasdataengineering7585 2 ай бұрын
audaciousazure@gmail.com
@prajanna9696
@prajanna9696 2 ай бұрын
@@rajasdataengineering7585 tq sir
121. Databricks | Pyspark| AutoLoader: Incremental Data Load
34:56
Raja's Data Engineering
Рет қаралды 16 М.
115. Databricks | Pyspark| SQL Coding Interview: Number of Calls and Total Duration
16:52
Harley Quinn lost the Joker forever!!!#Harley Quinn #joker
00:19
Harley Quinn with the Joker
Рет қаралды 28 МЛН
CHOCKY MILK.. 🤣 #shorts
00:20
Savage Vlogs
Рет қаралды 28 МЛН
SPILLED CHOCKY MILK PRANK ON BROTHER 😂 #shorts
00:12
Savage Vlogs
Рет қаралды 46 МЛН
Data Validation with Pyspark || Real Time Scenario
37:34
DataSpark
Рет қаралды 4,9 М.
19. Databricks & Pyspark: Real Time ETL Pipeline Azure SQL to ADLS
17:04
Raja's Data Engineering
Рет қаралды 44 М.
My Brain after 569 Leetcode Problems
7:50
NeetCode
Рет қаралды 2,5 МЛН
4 Recently asked Pyspark Coding Questions | Apache Spark Interview
28:39
117. Databricks | Pyspark| SQL Coding Interview: Total Grand Slam Titles Winner
19:08
23. Databricks | Spark | Cache vs Persist | Interview Question | Performance Tuning
18:56
How do indexes make databases read faster?
23:25
Arpit Bhayani
Рет қаралды 60 М.
109. Databricks | Pyspark| Coding Interview Question: Pyspark and Spark SQL
20:46
Raja's Data Engineering
Рет қаралды 15 М.
Harley Quinn lost the Joker forever!!!#Harley Quinn #joker
00:19
Harley Quinn with the Joker
Рет қаралды 28 МЛН