SQL Tutorial - 13: Inserting Data Into a Table From Another Table

Поділитися
Вставка
  • Опубліковано 5 лют 2025

КОМЕНТАРІ • 92

  • @bobich1244
    @bobich1244 3 роки тому

    Save my week. Now I need to do that in Node.js Thanks

  • @efuaamoatemaa8983
    @efuaamoatemaa8983 8 днів тому

    Good explanation 👏🏼. Please what will be the syntax INSERT Query to copy only 15 minutes data from one table into another table?

  • @tick_tack
    @tick_tack 2 роки тому

    hours trying to do this because the info given by my teacher says to use VALUE before the select sentence, now I tried without it and it worked perfectly, I am frustrated by the faults in my info but also thankful you helped me fix it, finally.

  • @McGavel1
    @McGavel1 10 років тому +3

    This is really fun! Great vid.

  • @tendongzegodson4730
    @tendongzegodson4730 5 років тому

    thank you so much. You have saved me from a lot of stress.

  • @ahmedgalal3702
    @ahmedgalal3702 3 роки тому

    tooooo excellent
    great thanks

  • @kshitizsharma25
    @kshitizsharma25 4 роки тому

    Thanks, this is easy to copy from one file to other. (For having backup)

  • @SanjayKumar-yh8fd
    @SanjayKumar-yh8fd 3 роки тому

    very very thanks full before this video i did not know about this

  • @krishnavamshimudi6624
    @krishnavamshimudi6624 3 роки тому

    tq so much u r video helped me a lot

  • @adammansouri6448
    @adammansouri6448 5 років тому

    You're a hero bro !

  • @pratibhalohiya9874
    @pratibhalohiya9874 2 роки тому

    It save my life thnku soo mch

  • @arixalasian
    @arixalasian 8 років тому +1

    Great!!!
    thanks a lot!!!!
    it's working on me..
    i make my website project and you help me a lot..

  • @randomgameplay647
    @randomgameplay647 6 років тому

    Nice video it's very helpful to me thanks

  • @rahulkumarpal4887
    @rahulkumarpal4887 7 років тому

    nice vidio It 's very helpful for me

  • @fredyuldashev
    @fredyuldashev 5 років тому

    Amazing work my brother!

  • @romylloydcruz301
    @romylloydcruz301 9 років тому +1

    Thanks dude, it gave me an idea. Great!

    • @sightraja
      @sightraja 8 років тому

      +romy lloyd cruz
      are u don this??

  • @dinushkamahawedage3186
    @dinushkamahawedage3186 4 роки тому

    Just brilliant and very clear explanation... thank you very much sir and I just hit the subscribe button and the bell icon... you added me as a new subscriber !!!!!!!!!!!

  • @dieudonnebagirizina6038
    @dieudonnebagirizina6038 4 роки тому

    Thank you so much for this tuto. It's helpful...

  • @ritu7180
    @ritu7180 10 років тому

    Very nice tutorials.Your all tutorials are enough to learn for sql???

  • @prodipgogoi2485
    @prodipgogoi2485 5 років тому

    Very good tutorial.

  • @Achinta-lk9ex
    @Achinta-lk9ex Рік тому

    How do i copy a particular column values from one table to a column in an empty table?

  • @tetsuoshima454
    @tetsuoshima454 10 років тому

    Good work, good work!

  • @albertcabanday801
    @albertcabanday801 2 роки тому

    this is so f-ing helpful thank you so much!

  • @siriluxkeawoud1014
    @siriluxkeawoud1014 3 роки тому +1

    Thank you sir.

  • @StoicPhilosopher1953
    @StoicPhilosopher1953 2 роки тому

    How did you make the emp_info table? In which video? Because when I make it, it shows yes under null value infront of integer. Please help?

  • @Defense89
    @Defense89 2 роки тому

    hi @Simplified do you have a video for how to populate new tables from 2 tables 1 new table that regroups some of the 2 tables column ( exemple table clients , table invoices populating Clients invoices)
    regrouping all invoice from each clients)?

  • @anjianjaneyulu5338
    @anjianjaneyulu5338 6 років тому

    Thank you for preparing this kind of video.....!!!!!

  • @CWCNS
    @CWCNS 2 роки тому

    It's pulling data from source table to an empty table. Actually is it simpler to create a new table with new column names? If the table is not empty, I want to add a column to pull data from any table's column, I don't want those data to be after the origin null value, how to make it happen?

  • @SatyendraSingh-ul5iq
    @SatyendraSingh-ul5iq 3 роки тому

    Please make a video on ‘how to data migrate from one table to another Table by using store procedure in oracle.

  • @chundurusriharsha2402
    @chundurusriharsha2402 3 роки тому

    What if i don't know the columns present in the other table but I want all the data to place into another table? can you tell me the command

  • @botrrun9399
    @botrrun9399 6 років тому +1

    in the previous slide you had us delete emp_info, but in this video you have that table present. You should have had us re-create that table so we can stay in sync with you. Maybe you were just testing us to have us create it again.

  • @jomelcadiente5138
    @jomelcadiente5138 5 років тому

    Sir what if i only want to get specific data from two different table like for example in table one i only want to pull the column1 and column and the same time in table two i want to pull column 1, column3 and columnn 5 and insert it to table three.

  • @renuphukon6321
    @renuphukon6321 8 місяців тому

    Thanks Sir ❤

  • @BinaryByte
    @BinaryByte 5 років тому

    good video.Thanks

  • @Balajiji4888
    @Balajiji4888 7 місяців тому +1

    Thanks Bro

  • @mannyparmar
    @mannyparmar 6 років тому +1

    Is it possible to use this INSERT command to add a computed column from table 1 (source) to destination? My syntex (shown below) works for calculating running total however, it doesn't work if i try to use same query to insert running total to new table;
    select t_date, amount,
    sum(amount) over (order by t_date) as balance
    from bank
    order by t_date;
    If i add one additional line as your video "INSERT INTO new_tb (t_date, amount, balance), the balance column in new_tb is still zero.
    Any input would be highly appreciated.

  • @martyinsumatra
    @martyinsumatra 9 років тому

    I'm using Access2013 the SQL you provided at 1:05 did not work.

  • @IamXample
    @IamXample 4 роки тому

    THANK YOU SO MUCH!

  • @qaziabaan8237
    @qaziabaan8237 6 років тому

    Wil it move data or it copies from one table to another

  • @sureshdharavath1191
    @sureshdharavath1191 11 років тому +1

    Sir, your tutorials are so nice .... Actually I was listening your shell script tutorial ................
    In this tutorial what IDE your using ?

  • @shaikkhadarvali5963
    @shaikkhadarvali5963 7 років тому

    can we the move the data of different table structure in same database

  • @shomikishomiki7436
    @shomikishomiki7436 4 роки тому

    How do i get the SQL object browser so i can practice?

  • @emyt1670
    @emyt1670 3 роки тому

    can you make a tutorial to insert data from a table to another table but ignoring the duplicates. thanks

  • @jitendramishra6696
    @jitendramishra6696 7 років тому

    Is the data insert in another table remains in table from which it is inserted

  • @crisdabz6728
    @crisdabz6728 6 років тому

    sir how about two table are not in the same database?

  • @drkraw
    @drkraw 7 років тому

    Can this method be used like a draft table scenario?
    So, the insert query copies the data over to the live table with the first table taking the data as the 'draft table'?

  • @nicolehaylynn7391
    @nicolehaylynn7391 4 роки тому

    Hi. Where could I find that SQL files?

  • @ankushsingh6668
    @ankushsingh6668 6 років тому

    this is good example, but how to sync local database to server database using sp or trigger without any program

  • @dhirendragiri8585
    @dhirendragiri8585 9 років тому

    how to load data from one table to multiple table using stored procedure???????????

  • @yhm4220
    @yhm4220 2 роки тому

    how make it in access?

  • @shahidchoudhary6542
    @shahidchoudhary6542 2 роки тому

    THANKYOU SO MACH

  • @solastametanoia7217
    @solastametanoia7217 7 років тому

    sir I want to copy data from one table to another only if a condition satifies...how to do that? please reply

  • @AshokKumar-eu8yl
    @AshokKumar-eu8yl 7 років тому

    how we insert record in table from two different table by using mysql

  • @ThanhHai_Tran
    @ThanhHai_Tran 9 років тому

    I Want insert data into two Table in SQL ? Are you help me?

  • @gefiedelacruz5537
    @gefiedelacruz5537 8 років тому +1

    I have a question sir what if i have a 5 records into tb1 and i want to insert only one row into tb2

  • @philtoa334
    @philtoa334 3 роки тому

    Nice thx.

  • @satyabanukil779
    @satyabanukil779 8 років тому

    Sir thanx for your video tutorial. I stay in India where comprehensive books on ms access is not available. I have a simple question, Suppose I have two tables A and B with ID being the relationship key between the two tables. Suppose I update or insert new data in Table A. How that data could automatically be updated in table B. Thanx and Regards, Satyaban, India

  • @tenochxipilli6715
    @tenochxipilli6715 5 років тому

    thank you!

  • @balmhwari
    @balmhwari 6 років тому +1

    How to Insert Into Table from table another without duplication in sql؟

    • @anupriya1153
      @anupriya1153 5 років тому

      Mai v JB value insert kr ri to ek row do Baar aa Ra don't know why😑

  • @SathishKumarS-r2b
    @SathishKumarS-r2b Рік тому

    SUPER

  • @YNC0124
    @YNC0124 8 років тому

    can I use this sql code in c#?

  •  10 років тому +1

    tks Madhur ! But, I wanna Inserting Data Into a Table From Another Table and add a column in new table :) Can you give me a solution ? :) tks

  • @abdelazizbourhriba9741
    @abdelazizbourhriba9741 9 місяців тому

    thanks

  • @Shridhar26
    @Shridhar26 11 років тому

    Nice.. thank you.

  • @adalife8222
    @adalife8222 10 років тому

    how to use this in php? please help me :(. realy need your help

  • @eyyyjan4442
    @eyyyjan4442 7 років тому

    Hi Sir. I have a problem. I want to insert first the data to my recycle_bin table before I delete it. how can I do that? thank you Sir and Godbless

  • @charlemagnedomingo6185
    @charlemagnedomingo6185 8 років тому +3

    good day sir, is it possible to insert data from one table to another with different number of fields? but i only want to insert the specific data i want to put in.pls reply

  • @noorulhuda9468
    @noorulhuda9468 7 років тому +1

    Bhai apki wja sa paper acha hugya 😂

  • @stella-annepopoola3806
    @stella-annepopoola3806 8 років тому

    how do I insert telephone number in a table?

  • @vishnuduggirala9583
    @vishnuduggirala9583 5 років тому

    how to avoid duplicates record while inserting data into a table

  • @8694vicky
    @8694vicky 6 років тому

    insert INTO employee(en_cust_id) SELECT id FROM customer where name = 'avi'
    Error Code: 1364. Field 'emp_id' doesn't have a default value
    can anybody tell me why i am getting this error?
    en_cust_id -->fk of employee table
    'emp_id'--> pk of employee table
    'id'-->is pk of customer table

  • @flavoursoflifelsvcookingcr4602
    @flavoursoflifelsvcookingcr4602 5 років тому

    im getting continously left parenthesis error

  • @abnwebtech774
    @abnwebtech774 6 років тому

    This NICE

  • @sightraja
    @sightraja 8 років тому

    0 rows created
    its not work dude ??

  • @botrrun9399
    @botrrun9399 7 років тому

    in tutorial 11 we dropped emp_info, when was it added back since this tutorial refers to it?

    • @nargeesansari6337
      @nargeesansari6337 6 років тому

      before he started the tutorial , he added again just to not waste time .

  • @lendritsh71
    @lendritsh71 10 років тому

    hello friend one question :
    how to width a column in mysql workbench
    answer please :D

  • @Mmmagikarp
    @Mmmagikarp 10 років тому

    @Suresh MySQL

  • @HumberStudent
    @HumberStudent 11 місяців тому

    Thank you!

  • @qaziabaan8237
    @qaziabaan8237 6 років тому

    Wil it move data or it copies from one table to another

  • @Thuase
    @Thuase 5 місяців тому

    thank you!