SQL script to insert into many to many table

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ธ.ค. 2024

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

  • @tianqinguo2963
    @tianqinguo2963 7 ปีที่แล้ว +10

    Really nice video. Thanks a lot

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  7 ปีที่แล้ว +3

      Thank you very much for taking time to give feedback. This means a lot. I am very glad you found the videos useful.
      I have organised all the Dot Net & SQL Server videos in to playlists, which could be useful to you
      th-cam.com/users/kudvenkatplaylists?view=1&sort=dd
      If you need DVDs or to download all the videos for offline viewing please visit
      www.pragimtech.com/order.aspx
      Slides and Text Version of the videos can be found on my blog
      csharp-video-tutorials.blogspot.com
      Tips to effectively use my youtube channel.
      th-cam.com/video/y780MwhY70s/w-d-xo.html
      If you want to receive email alerts, when new videos are uploaded, please subscribe to my youtube channel.
      th-cam.com/users/kudvenkat
      If you like these videos, please click on the THUMBS UP button below the video.
      May I ask you for a favor. I want these tutorials to be helpful for as many people as possible. Please share the link with your friends and family who you think would also benefit from them.
      Good Luck
      Venkat

  • @krismaly6300
    @krismaly6300 7 ปีที่แล้ว +3

    Awesome
    I enjoyed watching this video and recommend others.
    Host has very good experience and control on SQL.
    Explains the functionality clear and crisply step by step and everyone could understand even non-sql person.
    Thanks for educating the community and appreciate your volunteership in educating the world
    Thanks a bunch

  • @CaptainSlowbeard
    @CaptainSlowbeard 5 ปีที่แล้ว +8

    Dude... don't know if you still check the comments, but I can't thank you enough. Can't believe how few tutorials there are on actually implementing link tables, and this one is perfect - you're an awesome teacher 👍

  • @surajwankhade9238
    @surajwankhade9238 4 ปีที่แล้ว

    Thank you kudvenkat! Your videos have helped me immensely in cracking technical job interviews.

  • @dsy1802
    @dsy1802 7 ปีที่แล้ว +1

    Thank you very much. This this what I wanted. Very clear and lot of valuable information. keep up the good work.

  • @TimPauley
    @TimPauley 7 ปีที่แล้ว

    Great video. Thanks for including the script in the description. I also created a script to Remove FK, Truncate Tables, Replace FK. However, to get the script to work you would have to name your FK (since you didn't they are auto generated). Maybe an improvement for a later version.

  • @googler117
    @googler117 7 ปีที่แล้ว

    Thank you Venkat, for your time and such good turtorial videos it will be helpful for somany beginners. Thanks

  • @Eric-im6nn
    @Eric-im6nn 4 ปีที่แล้ว

    Sir, your video is always clear and to the point , really like it. Thanks!

  • @DaveMcTKD
    @DaveMcTKD 5 ปีที่แล้ว

    Best example I have seen for this topic. Very good.

  • @sadamshah19
    @sadamshah19 2 ปีที่แล้ว

    Thank you sir for teaching in such an easiest way great concepts. I love watching your tutorials.

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

    This channel means a lot to me!

  • @travisrichmond905
    @travisrichmond905 6 ปีที่แล้ว +1

    I recently had an interview and they asked: What do you do if you query a table, say Employee, that returns 30 rows. Then, you query that same table, name it Employee2 and it returns 31 rows. How do you find out why you're getting a different number of rows. Can you help???

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  6 ปีที่แล้ว +4

      Hi Travis - This is a great question. I believe the easiest way to find non matching records between the tables is by joining both of them in such a way you get only non-matching rows between the 2 tables. We covered how to do this in the following video. Hope this helps. Please let me know if there are any questions.
      th-cam.com/video/GKGtOABAO9s/w-d-xo.html

  • @farhanamshaik2914
    @farhanamshaik2914 7 ปีที่แล้ว

    Hello venkat Sir
    I had followed all ur sql tutorial videos . Thank you so much Sir for the videos provided for all of us
    I have a doubt Sir
    How can we delete only one duplicate record from a table having same rows without using rownumber ?

    • @Trzbne
      @Trzbne 6 ปีที่แล้ว

      Watch SQL tutorial for beginners by Venkat, there is a good description about this topic in part 109.

  • @mdziaulhaq2576
    @mdziaulhaq2576 3 ปีที่แล้ว

    Your explanation is awesome sir.... it's called a good teaching.

  • @PlanetReview
    @PlanetReview 5 ปีที่แล้ว

    how to delete a student record?for eg student same is enrolled in 3 courses.now if i want to delete sam record from students table it gives error.how to completely delete sam record from both students table and from bridge table StudentCourse at the same time?
    and how we can only delete single course of sam while keeping other twos record in the table?

  • @lesliepalmer4617
    @lesliepalmer4617 5 ปีที่แล้ว +1

    Love this and it worked! But now how do I write an update/edit stored procedure without messing up data in bridge table?

  • @siripreethu5267
    @siripreethu5267 7 ปีที่แล้ว

    Hi venkat, I have gone through all the videos of SQL server! It’s very helpful and perfect presentation😊
    I have requested you long time ago to upload videos fir SSIS as well... but I didn’t find in your complete playlist! 😕Could you please upload/teach us SSIS as well?

  • @peterl1699
    @peterl1699 7 ปีที่แล้ว

    nice one venkat! i would love to hear your talk avout machine learning in the future!

  • @namratasingh2474
    @namratasingh2474 ปีที่แล้ว

    Thanks for the beautiful explanation :) Is there a way to do this directly for a table instead of single single values.

  • @hafizsiddiqui2148
    @hafizsiddiqui2148 7 ปีที่แล้ว +1

    thank a lot sir, please upload some interview Q & A about MVC

  • @Tall-Cool-Drink
    @Tall-Cool-Drink 6 ปีที่แล้ว

    Your video series are EXCELLENT!

  • @rogerbreton6412
    @rogerbreton6412 4 ปีที่แล้ว

    Thank you for taking the time to explain. Your videos are alway invaluable. Is there a way to *automatically* insert/delete into a bridge table? I understand how to do this manually.

  • @TechBhushan6789
    @TechBhushan6789 5 ปีที่แล้ว +1

    Hello sir, I got interview question like how can we optimise query or sp to increase the performance?the ways to speed up the database operations with complicated db operations or queries? Please add video for to optimise database query.....with some proof like query with time periode prior to execution of db query and after execution of db query...

  • @safeerkhan8706
    @safeerkhan8706 4 ปีที่แล้ว

    sir if i want to retrieve the data of how many or show me the detail of student enroll in c# or anyother course how can i do that

  • @dinasamer6811
    @dinasamer6811 5 ปีที่แล้ว

    thanks a lot about your effort i'm a big fan for your channel

  • @manishprabhakaran1561
    @manishprabhakaran1561 3 ปีที่แล้ว +1

    Very clear explanation 👏. But can a student get enrolled for 2 courses at the same time? Instead of executing the script for 1 Student and 1 course, I need it as 1 Student and 2 courses at the same time. So now 2 courses will get inserted into the Courses table and 2 records will appear in the StudentCourse table.
    Hope I doubt gets clarified . Thank you

  • @avinash8535
    @avinash8535 3 ปีที่แล้ว

    Sir just would letting you know my small suggestion.. We can use IF NOT EXISTS prior to Insertion of data so there wouldn't be need of using composite keys and no duplicate data

  • @maryam4071
    @maryam4071 7 ปีที่แล้ว +1

    Hello, is there anybody knows how to convert this sript in MySQL?

  • @sufyanalishani5038
    @sufyanalishani5038 7 ปีที่แล้ว

    Thanks #venkat ,best wishes from Pakistan.

  • @cebabu
    @cebabu 5 ปีที่แล้ว

    I want to use Merge Into to add data to these table. is it possible. If these tables already has some data. I want to add new lookup data to existing data.
    Please suggest. How to use Merge .
    Thank you

  • @MakaraChhin
    @MakaraChhin 7 ปีที่แล้ว

    Thank you so much! That's very useful!

  • @SaleemKhan-qb2yp
    @SaleemKhan-qb2yp 7 ปีที่แล้ว

    What happens if you add a new student with the same name? How would you modify this query to distinguish the new student from the older one?

  • @rahulsalinskee7685
    @rahulsalinskee7685 7 ปีที่แล้ว +5

    Sir, If possible, please make tutorial videos to cover WPF including CRUD operation - using MVVM...!!!

  • @karangagrani
    @karangagrani 6 ปีที่แล้ว

    Very Helpful and explained quite well. Keep it up

  • @انامسلموكفى
    @انامسلموكفى 4 ปีที่แล้ว

    wow super thank you so much you re the best one in database God bless you but i ve a small issue how i can do insert in 2 table in one to many relation i mean i ve table user and table address in the table user there is the foreign key adressId taht references to the table address with the primary key id i thank you again for your effor & energy

  • @assassinsrose2633
    @assassinsrose2633 5 ปีที่แล้ว

    Awesome Video, It was very helpful. Thank you.

  • @mohamedomiera3021
    @mohamedomiera3021 7 ปีที่แล้ว +3

    dear youtube i wish if you can give us the capability to give some videos more than only one like.actually to give unlimited number of likes
    you are more than great
    thanks a a lot venkat
    please tell us if you are intended to upload videos on application architecture and design patterns
    you promised already
    and we are still waiting impatient

  • @Pal.Aditya
    @Pal.Aditya 5 ปีที่แล้ว

    How can use update query if we insert data one table to another table..

  • @adeelmalik6002
    @adeelmalik6002 6 ปีที่แล้ว

    Hello plz tell me how to get all courses related to a specific student . how we will query that ??? Thank You

    • @Trzbne
      @Trzbne 6 ปีที่แล้ว

      I would use join or inner select. You ask the StudentId from Students table by name, and then select CourseId from StudentsCourses table where StudentId equals from previous result. Then make an inner join with Courses table to include in your select query the CourseName column.

  • @rajeevranjan4013
    @rajeevranjan4013 7 ปีที่แล้ว

    In a single query how to fetch the all columns of Students , Course and StudentCourses??

  • @gunss404
    @gunss404 4 ปีที่แล้ว

    i have a big data from two tables ,how i insert values of those tables into the third table

  • @boyuanli7843
    @boyuanli7843 6 ปีที่แล้ว

    Very nice and clear. Thanks!

  • @wellingtondavis3482
    @wellingtondavis3482 7 ปีที่แล้ว

    Some tutorials about MSBI would be nice !!

  • @sakhanyaswartbooi4857
    @sakhanyaswartbooi4857 4 ปีที่แล้ว

    lets say you wanted to prevent a student from enrolling into more than two courses, how would you go about doing that

  • @БахтиярХайруллаев-б3г
    @БахтиярХайруллаев-б3г 7 ปีที่แล้ว

    Wonderful! Thank You very much

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

    thanks alot. it's really helpful

  • @PinasPiliNa999
    @PinasPiliNa999 7 ปีที่แล้ว

    Hope you can also make a video of One to many Relationship

  • @nuhzakir8896
    @nuhzakir8896 7 ปีที่แล้ว

    Thank you. It was helpful.

  • @stefanskoda6841
    @stefanskoda6841 7 ปีที่แล้ว

    very useful, like usual :) thanks

  • @abdoha6227
    @abdoha6227 5 ปีที่แล้ว

    How does SQL script work to update to many many table?

  • @muhammadrehbarsheikh8498
    @muhammadrehbarsheikh8498 7 ปีที่แล้ว

    thank you venkat sir.

  • @darpanwaghchawre5060
    @darpanwaghchawre5060 7 ปีที่แล้ว

    how to load specific record by dts in database ? can you please explan me

  • @sauliuspaltanavicius4106
    @sauliuspaltanavicius4106 4 ปีที่แล้ว

    how would you do this in php using ms sql database

  • @fatehdjeltiTECH
    @fatehdjeltiTECH 6 ปีที่แล้ว

    This course is helpfull
    Thank's

  • @rajir6429
    @rajir6429 4 ปีที่แล้ว

    How to loop email address one by one in stored procedure

  • @nidhipatel5916
    @nidhipatel5916 5 ปีที่แล้ว

    Very very useful..but I need one more help..how to populate excel file data instead of sample data?
    can you please describe?

  • @ВасилийИванов-ф2т9о
    @ВасилийИванов-ф2т9о 6 ปีที่แล้ว

    великолепно. жаль что на english - но все равно - все понятно. в конце даже создал из запросов хранимую процедуру.

  • @bertmeijeringh9559
    @bertmeijeringh9559 3 ปีที่แล้ว

    Nice one!

  • @putinninovacuna8976
    @putinninovacuna8976 3 ปีที่แล้ว

    ok but what if you has more than just 1 field "CourseName" but CourseDate, CourseRating etc this won't work this only works just for one field

  • @darpanwaghchawre5060
    @darpanwaghchawre5060 7 ปีที่แล้ว

    how to load specific record by dts in database ? can you please explan me ex: i have to load 1000 record out of 5000 in database

  • @feng3625
    @feng3625 6 ปีที่แล้ว

    Very clear , excellent

  • @millner100
    @millner100 4 ปีที่แล้ว

    Very nice!

  • @raqibul1000
    @raqibul1000 7 ปีที่แล้ว

    Thanks a billions.

  • @kdpoint4221
    @kdpoint4221 3 ปีที่แล้ว

    Thats amazing.

  • @rasmimohan8142
    @rasmimohan8142 6 ปีที่แล้ว

    Wonderful explanation

  • @נתןחורי
    @נתןחורי 7 ปีที่แล้ว

    hello , is it ok to add a video on how to update multi database and change them with script

  • @Kdram119
    @Kdram119 2 ปีที่แล้ว

    It's not working this command

  • @kavitajena9100
    @kavitajena9100 7 ปีที่แล้ว

    please upload a video on dynamic sql query

  • @Sminthsonth
    @Sminthsonth 5 ปีที่แล้ว

    Thank you!

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

    great thanks!!!

  • @saurabhchauhan232
    @saurabhchauhan232 7 ปีที่แล้ว

    If possible sir try online training course which are not available here Pragim is not giving online training Please start it. I would like to enroll in it. :)

  • @raqibul1000
    @raqibul1000 7 ปีที่แล้ว

    please upload video on Design pattern.

  • @Albshr77
    @Albshr77 7 ปีที่แล้ว

    Thank you

  • @rezak9041
    @rezak9041 7 ปีที่แล้ว

    thank you ;)

  • @ahmedaraby1113
    @ahmedaraby1113 5 ปีที่แล้ว

    very nice , thanks

  • @chaudhryalisalam3668
    @chaudhryalisalam3668 7 ปีที่แล้ว

    thank you sir

  • @zxmasha
    @zxmasha 7 ปีที่แล้ว

    amazing