Union and union all in sql server Part 17

Поделиться
HTML-код
  • Опубликовано: 5 фев 2025

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

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot  11 лет назад +18

    Thank you very much for taking time to give feedback. In the description of this video, I have included the link for ASP .NET, C#, and SQL Server playlists. All the videos are arranged in logical sequence in these playlists, which could be useful to you. Please share the link with your friends who you think would also benefit from them. If you like these videos, please click on the THUMBS UP button below the video. For email alerts, when new videos are uploaded, you may subscribe to my channel.

    • @pravingaddam8541
      @pravingaddam8541 5 лет назад

      Thanks for great video explanation. Can u please help answer of question---
      Question--> I am having 2 table emp, employee table. emp contain eid, salary and employee contain eid, salary and ename column now here I want to represent Only all columns of employee table using Union clause of this 2 tables

  • @etherealvox2010
    @etherealvox2010 9 лет назад +9

    Whenerver I look up a programming topic on youtube and the search returns among others a video of yours I know I'm gonna master that topic . Thank you very much for your videos . Professionally made , clear , concise . Keep up the good work !

  • @KingofKingziam
    @KingofKingziam 8 лет назад +8

    Best explanation for UNIONS right here. I understood it the first time I watched it. I will definitely recommend this videos to all my SQL learning buddies. Thanks :) awesome!!!!

  • @anjujain4149
    @anjujain4149 10 лет назад +2

    You are simply the best. I took SQl course etc but didn't learn much ..tks!!

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

    I've been searching for my problem on Google for so long untill found out your videos. Thank you so much for this super clear explanation.

  • @armandohernandez5574
    @armandohernandez5574 8 лет назад +3

    Im watching this in 2017.. Thankyou so much for posting this. really helps a lot!

  • @TrainITHard
    @TrainITHard 9 лет назад +7

    Thanks for the course! Nice and easy-understandable explanations! Continue watching.

  • @devikar8224
    @devikar8224 5 лет назад +1

    One of the best explained tutorials on SQL Server. Your videos has helped me a great in learning SQL Server.

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  5 лет назад

      Hello Devi - Thank you very much for taking time to give feedback. This means a lot. I am very glad you found the videos useful.

  • @krzysztofs8535
    @krzysztofs8535 8 лет назад +1

    I'm going to see all videos from this SQL course. Great , really great job! Greetings from POLAND

  • @balakrishnamodugula8116
    @balakrishnamodugula8116 9 лет назад +2

    No one can explain Better than you .............Good!!!!!!

    • @72sh
      @72sh 8 лет назад +1

      If you dont mind, ur statement is wrong actually and will give wrong impression to the ppl who sees it.
      It should be 'No one can explain better than you'

  • @onemanenclave
    @onemanenclave 6 лет назад +4

    Superb meticulous explanation! Thank you! It would've taken me an extra hour to understand this without your video.

  • @TheBitles
    @TheBitles 9 лет назад +6

    Thanks for this video, it's very easy to understand even for beginners like me.

  • @reemasharma5833
    @reemasharma5833 5 лет назад +1

    Teacher is "who make complex thing simple" like you sir!!!!!!!!!!!! :)

  • @BoYcLuE
    @BoYcLuE 11 лет назад

    Best...SQL..Tutorials...Ever constructed. Thank you so much.

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

    Actually, I give like to your videos before watching them, that is how Amazing you are.

  • @KhanhLe-ci3fc
    @KhanhLe-ci3fc 4 года назад +1

    You are a great teacher! Thank you so much for your time.

  • @stubbymr
    @stubbymr 8 лет назад +2

    You are a blessing :) A great teacher !

  • @charbelhajjar10
    @charbelhajjar10 10 лет назад +61

    select * from Kudvenkat :) Thank you

    • @univuniveral9713
      @univuniveral9713 7 лет назад +3

      select * from these lessons ill help me for my next interviews union I do not have to read huge books

    • @IbrahimEl-khalilMAdams
      @IbrahimEl-khalilMAdams 7 лет назад +5

      select * from Kudvenkat where youtube.channel = N"SQL server" or youtube.channel = N"C#"

  • @adil47ful
    @adil47ful 5 лет назад

    Superbb..Explanation! wenever i need an explanation for a IT topic, first i checked wd KUDVENKAT..because his teaching style is unique and simple! ALLAH bless you!

  • @sophiama6304
    @sophiama6304 7 лет назад +1

    very good explanation of the difference between union and join: one combines rows, one combines columns.

  • @sreenusreenu3099
    @sreenusreenu3099 5 лет назад

    Yeah atlast i found a wonderful teacher to learn

  • @pritiiBisht
    @pritiiBisht 9 месяцев назад +1

    Bestest:))

  • @64090sayan
    @64090sayan 10 лет назад +1

    Venkat sir....GOD BLESS YOU...:)....UR VIDEOS WERE OF IMMENSE HELP TO ME....LONG LIVE VENKAT SIR....

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

    your teaching is awesome. but what I like the most is "HELLOO".

  • @rira4956
    @rira4956 9 лет назад +6

    Great Videos !! I am a great fan of your videos.

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  9 лет назад +6

      +ri ra Thanks a million for taking time to give feedback. I am glad you found the videos useful.
      Free Dot Net & SQL Server videos for web developers
      ruclips.net/user/kudvenkatplaylists?view=1&sort=dd
      If you need DVDs for offline viewing, you can order them using the link below
      www.pragimtech.com/Order.aspx
      Code Samples, Text Version of the videos & PPTS on my blog
      csharp-video-tutorials.blogspot.com
      Tips to effectively use our channel
      ruclips.net/video/y780MwhY70s/видео.html
      Want to receive email alerts, when new videos are uploaded, please subscribe to our channel using the link below
      ruclips.net/user/kudvenkat
      Please click the THUMBS UP button below the video, if you think you liked them
      Thank you for sharing these links with your friends
      Best
      Venkat

  • @manishavishwakarma5363
    @manishavishwakarma5363 7 лет назад

    Very nice explanation, you covered all the points regarding union, very nice.

  • @piyako3586
    @piyako3586 9 месяцев назад

    Watching in 2024🎉🎉🎉Best tutorial ever

  • @lavandeepgarg8824
    @lavandeepgarg8824 11 лет назад

    Great Work Mr. Venkat .... You are simply awesome ..

  • @Trzbne
    @Trzbne 6 лет назад +1

    Wonderful tutorial again! I am looking forward to see Stored procedures!!!

  • @shamsnoman1402
    @shamsnoman1402 9 лет назад

    great videos. easy to understand. thanks for sharing

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

    wonderfull explanation , thanks a lot for putting these videos

  • @PuniKM
    @PuniKM 5 лет назад

    You are saving lives!

  • @mrafaqatpk
    @mrafaqatpk 7 лет назад

    Great Great Great work !!

  • @dheerajkeerthi
    @dheerajkeerthi 12 лет назад

    nice videos mr.venkat am learning lot of things.. hope u cover much topics.....Tq

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

    Thank you sir, for this video. 🙏🙏

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

    Very useful videos venkat

  • @huiqingxu5286
    @huiqingxu5286 6 лет назад

    You are an amazing teacher!

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

    May god bless you sir !!!

  • @piyasidey2117
    @piyasidey2117 8 лет назад

    You are really great Sir...Thank You very Much...

  • @raoulisdimitris3396
    @raoulisdimitris3396 11 лет назад

    Great tutorials , respect to the Tutor!

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

    easy and understandable , AWESOME , THANK YOU SO

  • @pramodmaurya6610
    @pramodmaurya6610 6 лет назад

    Thanks for your knowledge sharing.. thanks a lot sir

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

    Nice video. Thank you, Sir.

  • @clivesibiya
    @clivesibiya 7 лет назад +1

    Great teacher. Thank you

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

    Thanks for the Tutorial.

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

    Thanks for the nice explanation

  • @ventjemazzel8822
    @ventjemazzel8822 6 лет назад

    Clear explanation; thanks!

  • @ancarada2916
    @ancarada2916 8 лет назад

    Thank you for the videos!!! You are so talented and smart. :)

  • @शंभु-ङ5थ
    @शंभु-ङ5थ 3 года назад

    Excellent video sir

  • @kumarraja1441
    @kumarraja1441 5 лет назад

    Thanks man. Really it was helpful in my project that too deadline at last day of project release .. Kudos 👏🏻. That’s y one like and one subscribe for u..okay. Bell 🔔 kuda pressed 🤪😀

  • @NicholasNemirsky
    @NicholasNemirsky 8 лет назад

    Very Helpful! Thank You!!

  • @vishnu_bhatt
    @vishnu_bhatt 6 лет назад

    Detailed Explanation.Thank you sir.

  • @shedhenriqueFNS
    @shedhenriqueFNS 8 лет назад

    Thank's for share, nice work.

  • @Nicetrycutiepie
    @Nicetrycutiepie 7 лет назад +4

    Thanks for letting us know about execution plan and short cut for it ctrl L

  • @aliazad1118
    @aliazad1118 5 лет назад

    As usual perfect

  • @rkb8379
    @rkb8379 11 лет назад

    you are correct mouradbarakat123 but with your query in the output will look like this:
    1. Murad Mumbai
    2. Pune Singh
    Logically it works fine but it doesn't make sense as the end result hence following the right order, datatype of the columns really helps to sort it in a meaningful way
    I hope this clarifies and Venkat's video also explains the same...
    Please do correct if required...
    Cheers !

  • @slyrak_dota
    @slyrak_dota 5 лет назад

    Nice explanation!

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

    Thank you! ❤

  • @raghavendrareddy5275
    @raghavendrareddy5275 5 лет назад

    thank u sir, it is very helpful.

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

    nice and informative

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

    Awesome sir

  • @mouradbarakat123
    @mouradbarakat123 12 лет назад

    Thanks for the video. It's the best on the web for SQL Server.
    The "order of the columns" should be irrelevant, in fact even columns names doesn't have to match, only number of columns and data type are what matter! The individual data sets may come from completely different tables or queries. For example:
    select Name, City from tblEmployee
    union
    select City, Name from tblEmployee1
    is perfectly fine, even the "order of the columns" is reversed! but from the SQL Server it's irrelevant!

    • @MaheshTiwari-hq7lr
      @MaheshTiwari-hq7lr Год назад

      try out, this would not give you the exact result , For Name you will get city and for City you will get name if you font follow the order.

  • @piyasidey2117
    @piyasidey2117 8 лет назад

    Like the way You speak..

  • @justinli19901027
    @justinli19901027 8 лет назад

    as helpful as ever! thank you !

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

    Thanks for sharing

  • @nehamaggu3719
    @nehamaggu3719 8 лет назад

    hello kudvenkat...ur videos are so clear for developing basic understng.if possible please provide trainning on database testing videos ..thanks you

  • @bizzar31
    @bizzar31 12 лет назад

    you are awesome sir

  • @mattlesort3394
    @mattlesort3394 11 лет назад

    great work

  • @vivek77
    @vivek77 8 лет назад

    thanks for posting these videos, can you please add in description create table queries also which is being used in the video. It will make it easier to follow and practice.

  • @nino9044
    @nino9044 12 лет назад

    Thank you , very good online lessons
    found small error
    has to be in writing blue screen - UNION performs distinct sort to remove duplicates, which makes it less SLOWER than UNION ALL ( instead od faster)

  • @lemonvariable72
    @lemonvariable72 9 лет назад +1

    Great vid

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

    well explanation

  • @javierflores2543
    @javierflores2543 5 лет назад

    Thank you sir!!!!!

  • @KiranNadukula
    @KiranNadukula 11 лет назад

    Thank you, Sir!!!!!!!!!!

  • @stutitehri993
    @stutitehri993 10 лет назад

    nice tutorials

  • @nehamaggu3719
    @nehamaggu3719 8 лет назад

    hello kudvenkat. nice videos if possible please provide trainning on database testing videos ..thanks you

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

    Thank you so much for ur videos
    Could you please do a Playlist videos in SSRS, SSIS, SSAS, POWER BI.

  • @dhanrajdhan266
    @dhanrajdhan266 6 лет назад

    Thank you so much

  • @sijimathew9982
    @sijimathew9982 9 лет назад +1

    Thank you sir

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

    sweet voice

  • @aimeeschoeman3914
    @aimeeschoeman3914 7 лет назад

    love!!!

  • @danny63843
    @danny63843 6 лет назад

    thank you

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

    Can we get the database that you are using throughout this course? It will be really helpful.

  • @sureshrajput5794
    @sureshrajput5794 9 лет назад +1

    Venket sir will u please teach me what is the use of INTERSECT and MINUS operator ??

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

    Hello
    As I notice, the number of rows in the the tables should be the same too for the UNION to work, otherwise it doesn't remove the duplicate, only sorts the rows, leave the duplicate in place. Why didn't you tell us about THIS?
    Anyways thanks as always for the videos.

  • @IbrahimEl-khalilMAdams
    @IbrahimEl-khalilMAdams 7 лет назад

    I think that Kudvenkat should be awarded by Microsoft.

  • @SHIVAKUMAR-mp7ux
    @SHIVAKUMAR-mp7ux 5 лет назад

    👍

  • @neilsukalikar4257
    @neilsukalikar4257 11 лет назад

    Please start adding tytorials for JQuery as well ..

  • @gjhxfy754ghh
    @gjhxfy754ghh 7 лет назад

    Can't we use UNION along with CTE and SELECT INTO to extract unique rows from a table which contains duplicate rows.
    With exCTE as
    (
    select * from dupeRows
    UNION
    select * from dupeRows
    )
    select * into tmptbl from exCTE
    This works, but not sure whether it is resource intensive.

  • @vattikiti
    @vattikiti 7 лет назад

    Hi Venkat, Can you please share sql interview questions ?

  • @SuperGojeto
    @SuperGojeto 9 лет назад

    Actually OrderBy is needed more for UNION ALL otherwise if u execute the same query for UNION on those 3 tables without OrderBy it automatically sorts the result based on names. I think that is what you meant by Distinct Sorting in Union Query.

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

    How to put Union All query Result into a new table or temporary table? Please help.

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

    The video was not that user-friendly but you'll concept will be clear.

  • @adilxaif4551
    @adilxaif4551 8 лет назад

    what if the number of rows in the table are difference does it works?

  • @kbkonatham1701
    @kbkonatham1701 6 лет назад

    what if when one of my select statements have duplicates records

  • @jackkaran3405
    @jackkaran3405 7 лет назад

    What is there are more than two tables

  • @sadenlav
    @sadenlav 6 лет назад +2

    select * from Countries
    UNION
    select * from States
    All queries combined using a UNION, INTERSECT or EXCEPT operator must have an equal number of expressions in their target lists.

  • @semiileka9571
    @semiileka9571 7 лет назад +1

    where can i get the script for this database

  • @ramprakashchalla8978
    @ramprakashchalla8978 6 лет назад

    hi how to union tables dynamically

  • @MDARIF-yo3tq
    @MDARIF-yo3tq 6 лет назад

    i am using union but it doesn't remove duplicate value

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

      Same in my case
      Did you get the answer why it's not removing duplicate value??