SQL Interview Question: Find the Last Record in a Table (SOLVED!)

Sdílet
Vložit
  • čas přidán 4. 10. 2023
  • Ace your SQL interview with this simple query!
    In this video, I will teach you the most efficient way to write a SQL query to find the last record of a table. This is a common interview question, so knowing the answer will give you a leg up on the competition.
    In addition to the video tutorial, I will also provide you with some tips for answering SQL interview questions effectively. So if you're preparing for a SQL interview, be sure to watch this video!
    Whatsapp Channel - whatsapp.com/channel/0029Va8x...
    -------------------------------------------------------------------------
    ►►►Social Media - Where I sort of Live
    / rebellionrider
    / therebellionrider
    / rebellionrider
    / mannbhardwaj
    -------------------------------------------------------------------------
    ►►►Books I refer to
    PL/SQL amzn.to/2QE1jX0
    Performance Tuning amzn.to/2sgiAw4
    1z0-071 Exam amzn.to/2sgfeJw
    Python Programming amzn.to/305UEbh
    -------------------------------------------------------------------------
    ►►►Camera Gears
    ► Video Gears That We Use For Creating Our CZcams Video
    www.amazon.in/shop/manishshar...
    ► Work From Home Essential Tech That We Use Daily
    www.amazon.in/shop/manishshar...
    AFFILIATE DISCLOSURE:
    Some of the links used in the description will direct you to Amazon.in. As an Amazon Associate, I earn from qualifying purchases at no additional cost to you.
    #RebellionRider

Komentáře • 19

  • @Rebellionrider
    @Rebellionrider  Před 9 měsíci +3

    Whatsapp Channel - whatsapp.com/channel/0029Va8xCKqATRSqp4wAvo3n

    • @ramanangi5660
      @ramanangi5660 Před 9 měsíci

      How can I follow in whatsapp

    • @ramanangi5660
      @ramanangi5660 Před 9 měsíci

      But I can feel as an expert in Oracle with reference to your channels

    • @Rebellionrider
      @Rebellionrider  Před 9 měsíci +2

      simply click on the link

    • @alltech7730
      @alltech7730 Před 9 měsíci

      Link not working

    • @anmolgoswami8904
      @anmolgoswami8904 Před 3 měsíci

      Link is not working sir please share correct link for join

  • @sidmoitra007
    @sidmoitra007 Před 11 dny +3

    What is the last record of the table is not having the highest employee id number?
    Or what if there is no employee id?
    At that time you need to make a row number and then you can do the orderby desc to find the last or the bottom most entry.

    • @victorychannel2952
      @victorychannel2952 Před 6 dny

      Select * from (select dense_rank() over(employee_id) as order_id from employees) order by order_id desc limit 0 1;

  • @AbhishekSharma-vm7tr
    @AbhishekSharma-vm7tr Před 12 dny +1

    Do they hard sql question for fresher role for data analyst role or something like this in the video?

  • @prafulyelekar661
    @prafulyelekar661 Před 20 dny +2

    Bro if there is emp_id column not present then how

    • @rajn2155
      @rajn2155 Před 19 dny

      Apply row_number and do the same on row number column

  • @xrhl
    @xrhl Před měsícem +3

    Bhai dono solution galat hain ..

  • @Rooster-777
    @Rooster-777 Před 12 dny

    🤟

  • @alltech7730
    @alltech7730 Před 9 měsíci

    Link not working

    • @Rebellionrider
      @Rebellionrider  Před 8 měsíci +1

      Try now. I must work. By the way did you get the chance to join my Instagram channel I am posting daily polls there