Big Data Interview | Mock | Problem Solving | Technical Round | Pyspark , SQL #interview #question

preview_player
ะŸะพะบะฐะทะฐั‚ัŒ ะพะฟะธัะฐะฝะธะต

I have trained over 20,000+ professionals in the field of Data Engineering in the last 5 years.

๐–๐š๐ง๐ญ ๐ญ๐จ ๐Œ๐š๐ฌ๐ญ๐ž๐ซ ๐’๐๐‹? ๐‹๐ž๐š๐ซ๐ง ๐’๐๐‹ ๐ญ๐ก๐ž ๐ซ๐ข๐ ๐ก๐ญ ๐ฐ๐š๐ฒ ๐ญ๐ก๐ซ๐จ๐ฎ๐ ๐ก ๐ญ๐ก๐ž ๐ฆ๐จ๐ฌ๐ญ ๐ฌ๐จ๐ฎ๐ ๐ก๐ญ ๐š๐Ÿ๐ญ๐ž๐ซ ๐œ๐จ๐ฎ๐ซ๐ฌ๐ž - ๐’๐๐‹ ๐‚๐ก๐š๐ฆ๐ฉ๐ข๐จ๐ง๐ฌ ๐๐ซ๐จ๐ ๐ซ๐š๐ฆ!

"๐€ 8 ๐ฐ๐ž๐ž๐ค ๐๐ซ๐จ๐ ๐ซ๐š๐ฆ ๐๐ž๐ฌ๐ข๐ ๐ง๐ž๐ ๐ญ๐จ ๐ก๐ž๐ฅ๐ฉ ๐ฒ๐จ๐ฎ ๐œ๐ซ๐š๐œ๐ค ๐ญ๐ก๐ž ๐ข๐ง๐ญ๐ž๐ซ๐ฏ๐ข๐ž๐ฐ๐ฌ ๐จ๐Ÿ ๐ญ๐จ๐ฉ ๐ฉ๐ซ๐จ๐๐ฎ๐œ๐ญ ๐›๐š๐ฌ๐ž๐ ๐œ๐จ๐ฆ๐ฉ๐š๐ง๐ข๐ž๐ฌ ๐›๐ฒ ๐๐ž๐ฏ๐ž๐ฅ๐จ๐ฉ๐ข๐ง๐  ๐š ๐ญ๐ก๐จ๐ฎ๐ ๐ก๐ญ ๐ฉ๐ซ๐จ๐œ๐ž๐ฌ๐ฌ ๐š๐ง๐ ๐š๐ง ๐š๐ฉ๐ฉ๐ซ๐จ๐š๐œ๐ก ๐ญ๐จ ๐ฌ๐จ๐ฅ๐ฏ๐ž ๐š๐ง ๐ฎ๐ง๐ฌ๐ž๐ž๐ง ๐๐ซ๐จ๐›๐ฅ๐ž๐ฆ."

๐‡๐ž๐ซ๐ž ๐ข๐ฌ ๐ก๐จ๐ฐ ๐ฒ๐จ๐ฎ ๐œ๐š๐ง ๐ซ๐ž๐ ๐ข๐ฌ๐ญ๐ž๐ซ ๐Ÿ๐จ๐ซ ๐ญ๐ก๐ž ๐๐ซ๐จ๐ ๐ซ๐š๐ฆ -

BIG DATA INTERVIEW SERIES

This mock interview series is launched as a community initiative under Data Engineers Club aimed at aiding the community's growth and development

Link of Free SQL & Python series developed by me are given below -

Don't miss out - Subscribe to the channel for more such informative interviews and unlock the secrets to success in this thriving field!

Social Media Links :

TIMESTAMPS : Questions Discussed

Music track: Retro by Chill Pulse
Background Music for Video (Free)

Tags
#mockinterview #bigdata #career #dataengineering #data #datascience #dataanalysis #productbasedcompanies #interviewquestions #apachespark #google #interview #faang #companies #amazon #walmart #flipkart #microsoft #azure #databricks #jobs
ะ ะตะบะพะผะตะฝะดะฐั†ะธะธ ะฟะพ ั‚ะตะผะต
ะšะพะผะผะตะฝั‚ะฐั€ะธะธ
ะะฒั‚ะพั€

As per me, we can do the second question with below :

with t1 as (
select customer_number, count(*) as count from orders group by customer_number)

select t1.customer_number from t1 where t1.count = (select max(count) from t1)

mayanksatija
ะะฒั‚ะพั€

I think the join condition in the solution for the first question should be employee(e1).managerid = employee(e2).id.

SunilKumar-hqbt
ะะฒั‚ะพั€

1.1st qstn, the join condition should be like
ON e.manager_id = m.id
WHERE e.sal > m.sal

So you can match the manager id first nd check for the manager's id coming as emp id which will give the proper answer i gss

2. Also 2nd qstn we can do
order by count(ord_no) desc limit 1
Which will fetch the cust no who placed largest no.of orders in general

Correct me if I'm wrong

anithas
ะะฒั‚ะพั€

first one

Select name from salary_table as a where salary>(select salary from salary_table where id =a.managerid)

gurupradeep
ะะฒั‚ะพั€

with c as(select e.*, m.salary as manager_salary, m.name as manager_name
from employees_prac e left join employees_prac m
on e.managerid=m.id where e.salary-m.salary>0)

select name from c;
My solution

souravdas-ktgg
ะะฒั‚ะพั€

In real life coalesce is used while writing/saving the data in storage location in single partion while repartition is used to achieve parallelism that will use worker node properly

gudiatoka
ะะฒั‚ะพั€

Dear team..missing your videos of mock interview..pls do upload โค

gudiatoka
ะะฒั‚ะพั€

GroupByKey and reduceByKey both used on rdd level

gudiatoka
ะะฒั‚ะพั€

not cool second sql question answer is wrong and if interview went wrong at least you can put the correct answe at the end of video this will help full for others it is not like just posting the thing.

dataanalyst
ะะฒั‚ะพั€

Hi Brother currently I am doing job in TCS and i am BCA graduate and I am thinking that after I will complete 2 year in tcs I will take Leave without pay for 2 year and I will do Full time MCA. Its that right way I am going or wrong way . Please suggest me what to do or esle I will go with Part time MCA ??

sabmelegarebaba
ะะฒั‚ะพั€

This is not upto the mark interview. Answers are wrong for sql query.

abhishekmodak
ะะฒั‚ะพั€

Select customer_id from(Select top 1 Customer_id, count(order_id) as NO_of_orders from orders group by customer_id order by No_of_orders desc);

kamalprajapati
ะะฒั‚ะพั€

The query which wrote in the video for salary is wrong. here is the exact query which will work
select e.sal, e.name, e.emp_id, e.mngr_id from employee e
inner join employee m on e.emp_id=m.mngr_id
where(e.sal<m.sal)

ynreddy