Union and union all in sql server Part 17

Поделиться
HTML-код
  • Опубликовано: 24 июл 2024
  • In this video we will learn about the
    1. Purpose of UNION and UNION ALL
    2. Difference between UNION and UNION ALL
    3. Difference between JOIN and UNION
    Text version of the video
    csharp-video-tutorials.blogspo...
    Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our RUclips channel. Hope you can help.
    / @aarvikitchen5572
    Slides
    csharp-video-tutorials.blogspo...
    All SQL Server Text Articles
    csharp-video-tutorials.blogspo...
    All SQL Server Slides
    csharp-video-tutorials.blogspo...
    All Dot Net and SQL Server Tutorials in English
    ruclips.net/user/kudvenka...
    All Dot Net and SQL Server Tutorials in Arabic
    / kudvenkatarabic

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

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot  10 лет назад +17

    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 8 лет назад +8

    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 7 лет назад +7

    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!!!!

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

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

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

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

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

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

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

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

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

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

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

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

  • @charbelhajjar10
    @charbelhajjar10 9 лет назад +59

    select * from Kudvenkat :) Thank you

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

      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 лет назад +4

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

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

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

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

    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.

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

    You are a blessing :) A great teacher !

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

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

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

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

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

    Great tutorials , respect to the Tutor!

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

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

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

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

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

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

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

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

  • @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  4 года назад

      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.

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

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

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

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

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

    Yeah atlast i found a wonderful teacher to learn

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

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

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

    Great teacher. Thank you

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

    Detailed Explanation.Thank you sir.

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

    You are an amazing teacher!

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

    as helpful as ever! thank you !

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

    great videos. easy to understand. thanks for sharing

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

    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!

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

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

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  8 лет назад +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

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

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

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

    Very Helpful! Thank You!!

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

    Thanks for your knowledge sharing.. thanks a lot sir

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

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

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

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

    • @72sh
      @72sh 7 лет назад +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'

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

    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 🤪😀

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

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

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

    wonderfull explanation , thanks a lot for putting these videos

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

    You are saving lives!

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

    Great Great Great work !!

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

    Clear explanation; thanks!

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

    Thank's for share, nice work.

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

    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.

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

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

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

    Thank you sir, for this video. 🙏🙏

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

    May god bless you sir !!!

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

    thank u sir, it is very helpful.

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

    Very useful videos venkat

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

    easy and understandable , AWESOME , THANK YOU SO

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

    Thanks for the Tutorial.

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

    Nice video. Thank you, Sir.

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

    Great vid

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

    As usual perfect

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

    Thank you sir

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

    Thank you! ❤

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

    Nice explanation!

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

    Like the way You speak..

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

    Thank you sir!!!!!

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

    Thanks for the nice explanation

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

    Thank you so much

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

    you are awesome sir

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

    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)

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

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

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

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

  • @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 !

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

    great work

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

    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 6 месяцев назад

      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.

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

    Excellent video sir

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

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

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

    Thanks for sharing

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

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

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

    nice tutorials

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

    thank you

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

    Watching in 2024🎉🎉🎉Best tutorial ever

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

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

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

    Awesome sir

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

    love!!!

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

    well explanation

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

    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.

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

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

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

    nice and informative

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

    what if when one of my select statements have duplicates records

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

    where can i get the script for this database

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

    Hi Venkat, Can you please share sql interview questions ?

  • @pritiiBisht
    @pritiiBisht 3 месяца назад

    Bestest:))

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

    sweet voice

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

    👍

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

    Please start adding tytorials for JQuery as well ..

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

    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.

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

    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.

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

    What is there are more than two tables

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

    hi how to union tables dynamically

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

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

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

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

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

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

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

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

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

    hey guys ! any one having the same problem , my UNION is not omitting the duplicate

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

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