Oracle PL SQL interview question | SQL to Delete duplicate records

Поделиться
HTML-код
  • Опубликовано: 8 ноя 2024
  • НаукаНаука

Комментарии • 102

  • @jay.shah96
    @jay.shah96 4 года назад +8

    This is how I practice, I read the question in thumbnail and try to solve on my own.. this helps a lot! Today my solution was correct!! Thank you Sir, your videos are great.

    • @SivaAcademy
      @SivaAcademy  4 года назад

      Its my pleasure, thank you 🙏

  • @learntolive5001
    @learntolive5001 Месяц назад

    It's Amazing!!! You are sharing your knowledge with others so dedicatedly. It proves you are a man with a big heart and a beautiful mind. People like me will benefit from your video.

  • @sandipjadhao1990
    @sandipjadhao1990 3 года назад

    Really it was nice vedio on deleting duplicate rows by different approaches thanks Siva..

  • @ramanaatchala
    @ramanaatchala 2 года назад

    Hi Shiva,
    Very good training.Nice explanation.Thank you so much

  • @sujaa1000
    @sujaa1000 4 года назад

    Very clear explanation, and it was very helpful.
    Thank you very much Siva,
    Sujaa

    • @SivaAcademy
      @SivaAcademy  4 года назад

      You are welcome 😊. Thanks Again

  • @alimsheikh1029
    @alimsheikh1029 2 года назад

    Thank you so much Siva sir for your dedicated video

  • @bharatbagul9292
    @bharatbagul9292 4 года назад

    Thanks Siva.. much clearly you explain the things..

  • @girishpatil5351
    @girishpatil5351 2 года назад

    Delete from emp where rowid>(select emp.*, Min(rowid) as rr from emp) where rr>1;

  • @vickypatekar9532
    @vickypatekar9532 4 года назад +1

    Doubts Cleared Thank you, Sir Please Make Vedios on Analytical Functions

    • @SivaAcademy
      @SivaAcademy  4 года назад +1

      Its my pleasure 🙏 thank you, please stay tuned for more videos

  • @venkatapathiuppalapati9673
    @venkatapathiuppalapati9673 3 года назад

    Thanks Siva garu we are expecting more videos like this

    • @SivaAcademy
      @SivaAcademy  3 года назад +1

      Welcome bro, absolutely, please stay tuned for more videos

    • @vishalsaxena5081
      @vishalsaxena5081 3 года назад

      @@SivaAcademy If i enter any number like 100 but output will be display as hundred

    • @daljeetsingh5192
      @daljeetsingh5192 Год назад

      @@vishalsaxena5081 select 100, to_char(to_date(100, 'j') , 'jsp') from dual

  • @srinivasreddy186
    @srinivasreddy186 4 года назад

    Hii Mr. shiva, how r u. whn I see ur new video always , I used to feel like if I dnt watch, I could miss some imp tip frm tht video and I liked the last method... Thank u so much

    • @SivaAcademy
      @SivaAcademy  4 года назад

      Welcome Srinivas, Thank you so much

  • @oyevamsikrishnareddy2446
    @oyevamsikrishnareddy2446 Месяц назад

    We can use group by and having to identify the duplicate or distinct records

  • @yadagirishankar
    @yadagirishankar 4 года назад +2

    Sir, Which is the best way to delete duplicate records if the table is having millions of records?

  • @sudha2732
    @sudha2732 4 года назад

    Hi Siva, there is 3different column and 3different table,like one table have dept id,ename, another table have prod I'd &ename column, another table has dept id, ename - there is different column in3 different table but return a result department wise name----- one table has dept id another table table doesn't have dept id column---ename is common column for entire 3tables

    • @SivaAcademy
      @SivaAcademy  4 года назад

      May I know your question? Can you post a sample example data and expected output

  • @joseronald111
    @joseronald111 4 года назад

    Thank you sir for another good video:) thank you so much all your videos and for the efforts you are putting for them...thanks much again...keep up the good work

  • @muralisethi
    @muralisethi 4 года назад

    Thank you sir for such detailed explanation!!!

  • @avijitnagare
    @avijitnagare 6 месяцев назад

    Nice information.
    Can we write function in pl/sql block? And call from same block?

  • @abinashmandal7925
    @abinashmandal7925 2 года назад

    hii shiva , you are doing great , my question is why equi join returned matching rows , could be please answer this ?

  • @abhisheknittala7181
    @abhisheknittala7181 4 года назад

    awesome content !!! very very very handy!!

  • @devanaidu9406
    @devanaidu9406 4 года назад

    Hi Sir thank you so much we got another great video...well explained...pls make an Oracle architecture..and perfoance tuning video like . explain plan and auto trace..tk proof..and analysis

    • @SivaAcademy
      @SivaAcademy  4 года назад +1

      sure, please stay tuned, will post it soon

    • @devanaidu9406
      @devanaidu9406 4 года назад +1

      @@SivaAcademy I am waiting sir please post asap.. thank you 😊

  • @naveenp1843
    @naveenp1843 4 года назад

    very well explained siva sir thanks for the video :)

    • @SivaAcademy
      @SivaAcademy  4 года назад +1

      Welcome bro 🙏 thank you 💐

  • @anilk3233
    @anilk3233 4 года назад +1

    Hi Siva, which method out of 5 will be mostly used in real time?

    • @SivaAcademy
      @SivaAcademy  4 года назад

      I need to test with large volume of data, i will post a video after my analysis with numbers

  • @nntrainingandplacementsolu9734
    @nntrainingandplacementsolu9734 4 года назад

    thanks sir, what a great teaching skill you have. Please start SQL, PL/SQL course from scratch

    • @SivaAcademy
      @SivaAcademy  4 года назад +1

      Welcome, sure, please stay tuned

  • @vigneshkrish4742
    @vigneshkrish4742 4 года назад

    Hi siva, thank you for the wonderful videos and I have a doubt here in the second method (core related sub query) is that mandatory to use min / max keyword in inner query ?

  • @VinayKumar-ij4eu
    @VinayKumar-ij4eu 2 года назад

    Hi Siva, Thanks for this video, just one question when I am deleting the duplicate records and then run select * command and then rollback, so it is deleting entire data of my table...any solution for this?

  • @madhumitakumari2082
    @madhumitakumari2082 4 месяца назад

    Hi Sir, from is missing after delete. But still how it worked?

  • @vaniganapathi830
    @vaniganapathi830 2 года назад

    Thank you so much sir

  • @deepakjagdale6215
    @deepakjagdale6215 4 года назад

    Hi Siva sir, Is any online training course your providing for expert level or corporates. If yes then pls let me know.

  • @iswaryarajendran2022
    @iswaryarajendran2022 3 года назад

    Is it possible to delete duplicate records using having clause sir?

  • @shashank2004
    @shashank2004 4 года назад

    Nice explanation bro👍

    • @SivaAcademy
      @SivaAcademy  4 года назад +1

      Thank you, next video is on NOCOPY bro, I will try to cover remaining you asked later

    • @shashank2004
      @shashank2004 4 года назад +1

      @@SivaAcademy thanks bro... I am eagerly waiting

  • @manochoco23
    @manochoco23 4 года назад

    Hi is it that , rowid is assigned to records based on time stamp? if selecting max(rowid) throws the recently inserted record and min(row) throws the original record.

    • @SivaAcademy
      @SivaAcademy  4 года назад +2

      No, don't rely upon on rowid to get Last inserted record, if few records are deleted, then the empty space would be utilised by subsequent insertion, hence don't depend on rowid to identify latest inserted row

  • @kirthikamurugesan1514
    @kirthikamurugesan1514 4 года назад

    Well explained. Can you explain about performance tuning and explain plan?

    • @SivaAcademy
      @SivaAcademy  4 года назад

      Thank you 🙏, sure please stay tuned

  • @KaranChaudhary-zt4no
    @KaranChaudhary-zt4no 4 года назад

    can i have two databases in my sql developer that is 11g and 19c at the same time?

  • @nareshchoudhary9774
    @nareshchoudhary9774 2 года назад

    sir which of these method is cte method ?

  • @vijayarajan2599
    @vijayarajan2599 3 года назад

    @Siva, Can you please do a demo on Oracle Concurrency Control, Serilaizationa and Isolation levels with proper expample.

  • @manjutharak
    @manjutharak 4 года назад

    I Brother I have a Question related to INDEX , My Question is
    1.Is it possible to create an index on views? And
    2.Is it possible to create an index on updatable view?

    • @SivaAcademy
      @SivaAcademy  4 года назад

      Index only on physical data is allowed, since view relay on underlying table data, no indexes are allowed now on views

  • @ananthaselvi9019
    @ananthaselvi9019 4 года назад

    Hi sir could you please help me in below scenario
    There is a clob column . I want to extract particular line after match pattern
    Type1:
    None
    Typr2:
    None
    Type3:
    Services,re
    Type4:
    None
    My output should be whatever under type 3

    • @SivaAcademy
      @SivaAcademy  4 года назад

      not sure, whether this is what you are looking for
      substr(c,instr(c,'Type3:')+length('Type3:')+1)

  • @HandloomChoice
    @HandloomChoice Год назад

    Very good

  • @prashantsisodiya1391
    @prashantsisodiya1391 3 года назад

    Sir I have question that ,suppose we 10 records (first name), 5 records in small letters(abc) and 5 records in upper letters (ABC) so I want those records who are in small letters so what will be quary?

    • @SivaAcademy
      @SivaAcademy  3 года назад +1

      Sample query
      Select* from table where column_name = lower(column_name)

    • @prashantsisodiya1391
      @prashantsisodiya1391 3 года назад

      @@SivaAcademy thanks team

    • @SivaAcademy
      @SivaAcademy  3 года назад

      🙏💐

    • @prashantsisodiya1391
      @prashantsisodiya1391 3 года назад

      @@SivaAcademy if possible to make video pls try because question asked me 2,3 times in interview

    • @SivaAcademy
      @SivaAcademy  3 года назад

      Sure, please stay tuned

  • @ravipatisrikanth8331
    @ravipatisrikanth8331 3 года назад

    sir,how to findout the dupliate values without using distinct keyword

    • @SivaAcademy
      @SivaAcademy  3 года назад

      Please look into this video ruclips.net/video/2G8zuE5JuUA/видео.html

  • @gomathinama5876
    @gomathinama5876 4 года назад

    Thank you🙏

  • @kumarbrajesh5051
    @kumarbrajesh5051 4 года назад

    Without using rowid.
    Is it possible to delete duplicate data
    Please answer me.

    • @SivaAcademy
      @SivaAcademy  4 года назад +1

      Not by using single statement, but using set of SQL statements you can do, method 4 and method 5 will show you how to do it in the same video

  • @ssskkk9079
    @ssskkk9079 3 года назад

    Sir , can u pls upload vedio on joins and which join yield more records than other joins interview question?please

    • @SivaAcademy
      @SivaAcademy  3 года назад

      Sure, will add soon, please stay tuned

  • @Ronaldo-yl7zv
    @Ronaldo-yl7zv 4 года назад

    Thank you Sir

  • @tejan8804
    @tejan8804 2 года назад

    can't we do with Ran function?

  • @prashantmate8340
    @prashantmate8340 3 года назад

    Hi siva, can u please make a video on "alter table emp_test enable constraint emp_pk exceptions into exceptions;".

    • @prashantmate8340
      @prashantmate8340 3 года назад

      Exceptions is a table here

    • @SivaAcademy
      @SivaAcademy  3 года назад

      Yes Prasanth, will post it couple of days, please stay tuned

    • @prashantmate8340
      @prashantmate8340 3 года назад

      @@SivaAcademy thank you so much!!

  • @rajanayak8093
    @rajanayak8093 4 года назад

    A table has number as well as alphabets in a single column, how to separate this?

    • @karthickm8042
      @karthickm8042 4 года назад

      Update Table_name set column1=reqexp_replace(column1,^[0_9]);
      Update Table_name set column2=reqexp_replace(column1,^[a-z_A-Z]);

    • @SivaAcademy
      @SivaAcademy  4 года назад

      Please look into this video
      ruclips.net/video/ZuO8QmnzpdY/видео.html

  • @Ramesh-rp6jq
    @Ramesh-rp6jq 4 года назад

    Can you please make a video to download database and connect to sql developer

    • @SivaAcademy
      @SivaAcademy  4 года назад

      Do you mean, download and install, and connect to database through SQL developer?

    • @Ramesh-rp6jq
      @Ramesh-rp6jq 4 года назад

      @@SivaAcademy yes I want to install

    • @SivaAcademy
      @SivaAcademy  4 года назад

      Sure Ramesh, I will post a seperate video on how to download, install and connect and start with soon, please stay tuned

  • @vivektarab16
    @vivektarab16 18 дней назад

    00:23, 07:23

  • @tusharsonwane8468
    @tusharsonwane8468 2 года назад

    Thank you so much sir

  • @vsr1727
    @vsr1727 4 года назад

    Thank you 👍