1) EY Data Engineer Interview Question | SQL Interview Question | Data Analyst Interview Question |

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024
  • Hi,
    This question was shared to me by one of my linked in followers. Please do watch it completely and let me know your thoughts.
    Please find the create table and insert statement scripts below:
    create table category(
    Category varchar(50),
    SubCategory varchar(50),
    Price varchar(50) );
    insert into category values('Chips', 'Bingo', 10),
    ('Chips', 'Lays', 40),
    ('Chips', 'Kurkure', 60),
    ('Choclate', 'Dairy Milk', 120),
    ('Choclate', 'Five Star', 40),
    ('Choclate', 'Perk', 25),
    ('Choclate', 'Munch', 5),
    ('Biscuits', 'Oreo', 120)
    Please follow me on LinkedIn and reach out for any queries: / suriya-senthilkumar-3a...
    Send an email to: suriya.senthil@outlook.com
    #dataengineer #sql #sqlinterview #EY #datanalytics #scenario #datascience #big4 #deloite #pwc

ความคิดเห็น • 56

  • @suriyas_zone
    @suriyas_zone  7 หลายเดือนก่อน +2

    Hi All,
    This video is for beginner who is planning to get a job in the data field. If you're a person who is having some good experience and planning to revise the topics then please increase speed of the video. Thanks

  • @Kirankumar-ml1ro
    @Kirankumar-ml1ro 2 หลายเดือนก่อน +4

    Please change the data type of the price column to numeric in the create table script in the description. Data was not getting as expected while (order by price desc) for category choclate in PostgreSQL.

  • @anujshinde6541
    @anujshinde6541 2 หลายเดือนก่อน +1

    with cte as (select *,row_number() over(partition by category order by price desc) as rank,count(subcategory) over(partition by category) as count from category)
    select Category,SubCategory from cte where rank = 50 and count = 1;

  • @rawat7203
    @rawat7203 6 หลายเดือนก่อน +1

    with cte as(
    select Category, SubCategory, cast(Price as signed) as price_int from Category), cte2 as (
    select Category, SubCategory, price_int,
    rank() over(partition by Category order by price_int desc) as rnk,
    count(Category) over(partition by Category) as total_cnt
    from cte)
    select * from cte2
    where rnk 1 then 2
    when total_cnt = 1 and price_int >= 50 then 1
    end )

  • @prabhatgupta6415
    @prabhatgupta6415 7 หลายเดือนก่อน +2

    with cte as (select * from (select *,dense_rank()over(partition by category order by price) dk from category)x where dk50 then 'yes' else 'no' end as flag from b )m where flag='yes';

  • @nishantchavan2980
    @nishantchavan2980 4 หลายเดือนก่อน +1

    Great effort. Keep it up

    • @suriyas_zone
      @suriyas_zone  4 หลายเดือนก่อน

      Thank you Nishant ☺️ Please share

  • @deepakchawde4180
    @deepakchawde4180 4 หลายเดือนก่อน +1

    Amazing sir
    Thanks for sharing ❤

    • @suriyas_zone
      @suriyas_zone  4 หลายเดือนก่อน

      Thank you. Please do share and subscribe 🎉

  • @amarpc3532
    @amarpc3532 3 หลายเดือนก่อน

    Informative ❤ and subscribed

    • @suriyas_zone
      @suriyas_zone  3 หลายเดือนก่อน

      @@amarpc3532 thank you ❤️

  • @tomshri1453
    @tomshri1453 7 หลายเดือนก่อน +1

    Sir.. really useful 🎉

  • @ogunniransiji2686
    @ogunniransiji2686 3 หลายเดือนก่อน +1

    WHERE (rn = 50); I prefer this

    • @suriyas_zone
      @suriyas_zone  3 หลายเดือนก่อน

      @@ogunniransiji2686 great

    • @macherlarishika8748
      @macherlarishika8748 หลายเดือนก่อน

      ​@@suriyas_zoneHii bro i am having online tests and in that they were asking sql codes , due to time restriction i am trying to use chatgpt , but i am not getting proper codes , errors i am getting , please do u know any other website or any suggestion to get proper code
      Please try to help or give ur suggestions please to use in ot

  • @maheshnagisetty4485
    @maheshnagisetty4485 4 หลายเดือนก่อน

    select category,subcategory from
    (
    select *,rank() over(partition by category order by cast(price as money) desc) as rn from category
    ) as a
    where rn50

    • @suriyas_zone
      @suriyas_zone  4 หลายเดือนก่อน

      It will give the category which has single subcategories and also if it's price is less than 50.
      Good try...keep practicing!

    • @macherlarishika8748
      @macherlarishika8748 หลายเดือนก่อน

      Hii bro i am having online tests and in that they were asking sql codes , due to time restriction i am trying to use chatgpt , but i am not getting proper codes , errors i am getting , please do u know any other website or any suggestion to get proper code
      Please try to help or give ur suggestions please to use in ot

    • @suriyas_zone
      @suriyas_zone  หลายเดือนก่อน

      @@macherlarishika8748 Hi, please send the question to suriyauxd@gmail.com

  • @edumail1016
    @edumail1016 2 หลายเดือนก่อน

    This is so easy question, don't know how it was asked for Data Engineer role

    • @suriyas_zone
      @suriyas_zone  2 หลายเดือนก่อน

      @@edumail1016 Is it ? May I know how much work experience do you have in the data engineering field ?
      Data engineers with 1-3 years experience got this type of questions.

    • @MubarakAli-qs9qq
      @MubarakAli-qs9qq หลายเดือนก่อน

      I have 1 month of experience

    • @macherlarishika8748
      @macherlarishika8748 หลายเดือนก่อน

      Hii bro i am having online tests and in that they were asking sql codes , due to time restriction i am trying to use chatgpt , but i am not getting proper codes , errors i am getting , please do u know any other website or any suggestion to get proper code
      Please try to help or give ur suggestions please to use in ot

  • @shovilgupta5679
    @shovilgupta5679 หลายเดือนก่อน

    Change the data type of price to numeric

  • @pathanfirozkhan5503
    @pathanfirozkhan5503 7 หลายเดือนก่อน

    Informative

    • @suriyas_zone
      @suriyas_zone  7 หลายเดือนก่อน

      Thanks ! Please do share with your friends. Videos will be uploaded weekly once !

  • @piyushramkar9404
    @piyushramkar9404 4 หลายเดือนก่อน

    correct me if i am wrong.
    --query:
    with cte1 as (
    select category, subcategory, price,
    rank() over(partition by category order by price) rnk
    from category
    )
    select category, subcategory
    from cte1
    where rnk in (1,2)
    --output:
    CATEGORY SUBCATEGORY
    Biscuits Oreo
    Chips Bingo
    Chips Lays
    Choclate Dairy Milk
    Choclate Perk

    • @suriyas_zone
      @suriyas_zone  4 หลายเดือนก่อน +1

      Hi Piyush,
      Your query won't give expected results. It will give all the subcategories based on the rank(1,2) which you've generated based on category and price. What will happen if the price is less than 50 ?

    • @macherlarishika8748
      @macherlarishika8748 หลายเดือนก่อน

      ​@@suriyas_zoneHii bro i am having online tests and in that they were asking sql codes , due to time restriction i am trying to use chatgpt , but i am not getting proper codes , errors i am getting , please do u know any other website or any suggestion to get proper code
      Please try to help or give ur suggestions please to use in ot

  • @keerthianand212
    @keerthianand212 7 หลายเดือนก่อน +1

    Sir window functions full explanation video podunga

    • @suriyas_zone
      @suriyas_zone  7 หลายเดือนก่อน

      Sure

    • @macherlarishika8748
      @macherlarishika8748 หลายเดือนก่อน

      ​@@suriyas_zoneHii bro i am having online tests and in that they were asking sql codes , due to time restriction i am trying to use chatgpt , but i am not getting proper codes , errors i am getting , please do u know any other website or any suggestion to get proper code
      Please try to help or give ur suggestions please to use in ot

  • @vaibhavverma1340
    @vaibhavverma1340 3 หลายเดือนก่อน

    My Solution :)
    with cte as
    (select *, dense_rank() over (partition by category order by price desc)dr
    , count(*) over (partition by category)cnt_category
    from category)
    select category, subcategory from cte
    where cnt_category = 1 and price > 50
    union
    select category, subcategory from cte where cnt_category > 1 and dr

    • @suriyas_zone
      @suriyas_zone  3 หลายเดือนก่อน +1

      Great

    • @macherlarishika8748
      @macherlarishika8748 หลายเดือนก่อน

      ​@@suriyas_zoneHii bro i am having online tests and in that they were asking sql codes , due to time restriction i am trying to use chatgpt , but i am not getting proper codes , errors i am getting , please do u know any other website or any suggestion to get proper code
      Please try to help or give ur suggestions please to use in ot

  • @mohammedvahid5099
    @mohammedvahid5099 3 หลายเดือนก่อน

    Nice bro

    • @suriyas_zone
      @suriyas_zone  3 หลายเดือนก่อน

      Thank you bro

    • @macherlarishika8748
      @macherlarishika8748 หลายเดือนก่อน

      ​@@suriyas_zoneHii bro i am having online tests and in that they were asking sql codes , due to time restriction i am trying to use chatgpt , but i am not getting proper codes , errors i am getting , please do u know any other website or any suggestion to get proper code
      Please try to help or give ur suggestions please to use in ot

  • @tejas2167
    @tejas2167 22 วันที่ผ่านมา

    WITH cte AS (
    SELECT *,
    RANK() OVER(PARTITION BY category ORDER BY price DESC) AS rn
    FROM sales)
    SELECT category, subcategory FROM cte WHERE rn=1 OR rn=2;

  • @mohammedvahid5099
    @mohammedvahid5099 7 หลายเดือนก่อน

    Pleas share more with SQL scenarios pls

    • @suriyas_zone
      @suriyas_zone  6 หลายเดือนก่อน

      Sure. Weekly once video will be uploaded

    • @macherlarishika8748
      @macherlarishika8748 หลายเดือนก่อน

      Hii bro i am having online tests and in that they were asking sql codes , due to time restriction i am trying to use chatgpt , but i am not getting proper codes , errors i am getting , please do u know any other website or any suggestion to get proper code
      Please try to help or give ur suggestions please to use in ot

    • @mohammedvahid5099
      @mohammedvahid5099 หลายเดือนก่อน

      @@suriyas_zone thnks bro

  • @zaravind4293
    @zaravind4293 6 หลายเดือนก่อน

    Find my approach below.
    select category,subcategory from (
    select c.*,
    case when count(*) over(partition by category)=1 and price

    • @gouravbhatt5099
      @gouravbhatt5099 2 หลายเดือนก่อน

      Shouldn't the price have >=50 in this query ?
      select category,subcategory from (
      select c.*,
      case when count(*) over(partition by category)=1 and price>=50 then 0 else
      dense_rank()over(partition by category order by price desc) end rk from
      category c
      )
      where rk

    • @macherlarishika8748
      @macherlarishika8748 หลายเดือนก่อน

      ​@@gouravbhatt5099 Hii bro i am having online tests and in that they were asking sql codes , due to time restriction i am trying to use chatgpt , but i am not getting proper codes , errors i am getting , please do u know any other website or any suggestion to get proper code
      Please try to help or give ur suggestions please to use in ot

  • @SuprajaBijjigiri-o4s
    @SuprajaBijjigiri-o4s 7 หลายเดือนก่อน

    Hai can we get job in Data Engineer role as a fresher

    • @suriyas_zone
      @suriyas_zone  7 หลายเดือนก่อน

      Hi,
      Yes for sure. Definitely, a fresher can get a job as data engineer. But, many companies will not offer directly. I would recommend you to learn SQL, python, story telling, basics of data modelling, basics of Excel initially to get a job as a data analyst full-time or for the intern.. Get into the field first and try for a data engineer by learning, spark/Hadoop/hive (spark will be my choice) and one cloud.
      Keep an eye on my TH-cam Channel to learn more about SQL, data modelling and python.

    • @SuprajaBijjigiri-o4s
      @SuprajaBijjigiri-o4s 7 หลายเดือนก่อน

      Thank you so much @@suriyas_zone

    • @macherlarishika8748
      @macherlarishika8748 หลายเดือนก่อน

      ​@@SuprajaBijjigiri-o4sHii bro i am having online tests and in that they were asking sql codes , due to time restriction i am trying to use chatgpt , but i am not getting proper codes , errors i am getting , please do u know any other website or any suggestion to get proper code
      Please try to help or give ur suggestions please to use in ot

  • @roobanj9432
    @roobanj9432 3 หลายเดือนก่อน +2

    Hi bro.,
    Very informative and impressive content
    Love to connect with you
    May I know your LinkedIn Id

    • @suriyas_zone
      @suriyas_zone  3 หลายเดือนก่อน

      @@roobanj9432 Please find the link below: www.linkedin.com/in/suriya-senthilkumar-3a069118b?

    • @macherlarishika8748
      @macherlarishika8748 หลายเดือนก่อน

      Hii bro i am having online tests and in that they were asking sql codes , due to time restriction i am trying to use chatgpt , but i am not getting proper codes , errors i am getting , please do u know any other website or any suggestion to get proper code
      Please try to help or give ur suggestions please to use in ot