Unions in MySQL | Intermediate MySQL

Поділитися
Вставка
  • Опубліковано 29 лис 2024

КОМЕНТАРІ • 48

  • @obed_m16
    @obed_m16 10 місяців тому +45

    Apart from learning Data Analysis, I'm also learning satire. Thank you man.😄

  • @dakshbhatnagar
    @dakshbhatnagar 10 місяців тому +47

    I loved it when he said “so that our job is still secure” 😂

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

      Yea the job market is tough these days 😂

  • @aalanaa
    @aalanaa Місяць тому +3

    UNION is used to combine the result sets of two or more SELECT queries into a single result set. key points about using UNION:
    Distinct rows only: By default, UNION removes duplicate rows.
    Same number of columns: Each SELECT query must have the same number of columns.
    Column data types must match: The corresponding columns should have compatible data types.
    You can use UNION ALL if you want to keep duplicate rows in the final result.

  • @qamaruddinkhichi904
    @qamaruddinkhichi904 10 місяців тому +8

    Hello Alex, let me thank you with the core of my heart from Pakistan.
    The way you teach SQL is the best way I have ever experienced. I have completed your SQL Server courses (Beginners - Advanced) and beginners series of MySQL, now, eagerly waiting for complete intermediate and advanced series of MySQL.

  • @walk4754
    @walk4754 6 місяців тому +41

    "If someone is over 50 years old, we're gonna try to push them out"
    Sir that's ILLEGAL 🤣

    • @GMunoz-oj5zb
      @GMunoz-oj5zb 2 місяці тому

      Exactly my thought. I didnt't like this example at all. I am 46

  • @ramazanali1367
    @ramazanali1367 9 місяців тому +7

    This nice program of yours is so good & has been a very nice help for me in many ways, especially MySQL Database Management Currier. I have been learning a lot through Your UA-cam Channel. I have downloaded most of the SQL courses from beginners to Advanced courses.
    Thanks a million, man. You became a nice teacher for me.

  • @momohtimothy6898
    @momohtimothy6898 5 місяців тому +2

    Couldn't understand a thing on this topic on Udemy, but you lay it down simple here. Glad there's a channel like this.

  • @rootyroot
    @rootyroot 9 місяців тому +1

    Used SQL for years when I was younger (mainly for web development projects - PHP) but not really used it for a good few years (Still use it slightly for PowerBi but have not had to write queries for ages), just refreshing my SQL knowledge before my Data Engineer interview, I forgot about UNIONS and WINDOW functions.. oops. Thanks for the great content it's all coming back to me

  • @SomeStatus
    @SomeStatus 10 місяців тому +1

    Love these! Went through the Business Analyst MySQL course on Udemy, started to do some more project learning now. These snippets of information are a great help.

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

    Very helpful and clear tutorial about Unions, so thank you! Your videos are very helpful to refresh my SQL knowledge and learn new stuff to help me prep for my data analyst job search

  • @mjb070781
    @mjb070781 5 місяців тому +10

    Don't push out those older employees LOL

    • @AlexTheAnalyst
      @AlexTheAnalyst  5 місяців тому +8

      It’s corporate - I can’t control it. Sorry. 😞

    • @nataliavioli3970
      @nataliavioli3970 4 місяці тому +2

      I just stopped and laughed when Alex said, Donna is just an old lady hahaha 😂

  • @BruceBeck-f1n
    @BruceBeck-f1n 6 місяців тому +1

    [NOTE: Just copied this comment from the STRING FUNCTIONS lesson where I had entered it by mistake. 😜] Well, that was fun! Ending my day with Alex the Analyst while my lovely Bride is preparing dinner (I'm one lucky 'Wanna-Be-Data-Nerd'). Somehow UNION just makes more sense than JOINS for me. I just need more exposure and practice - like this Intermediate MySQL Series for example. Thanks again Alex!

  • @juwonoluwole5609
    @juwonoluwole5609 6 місяців тому +1

    big up Alex, great course!

  • @knall13
    @knall13 Місяць тому +1

    Wow i heard the tech industry was age-ist. This video just made my anxiety go through the roof. We're going to push folks out for being old at 40 years old? i'm 44. should i even bother switching my career to data analysis?

  • @aaron-evans-cruz
    @aaron-evans-cruz 7 місяців тому

    Most thorough tutorial on what a UNION can actually do, just love these videos as always Alex. Also, notice from previous video on JOINS, there is no FULL OUTER JOIN in MySQL. You need to do it via a UNION I'm guessing by combining a LEFT and RIGHT join?

  • @onazeumoru162
    @onazeumoru162 10 місяців тому +1

    THANK YOU ALEX😊😊

  • @Robert-sb1fp
    @Robert-sb1fp 10 місяців тому

    Can you do a video on BI analyst vs data analyst

  • @preetshah3793
    @preetshah3793 10 місяців тому

    Please sir make a video on SPSS

  • @sarkersaadahmed
    @sarkersaadahmed 6 місяців тому

    quick note
    if you have UNEQUAL ROWS
    set the columns which are present on the econd database table but not the fist database table as NULL
    set the columns which are present on the first database table but not the second database table as NULL
    since union actually merges so it will create additional rows to merge those columns NOW IF WE PUT NUILL IT WILL MATCH THE UMBER OF ROWS

    • @d_auspicious1
      @d_auspicious1 3 місяці тому

      can you tell me how to do that? like how do i set a column as null?

  • @GoGetSP
    @GoGetSP 15 днів тому

    at 6:32 when we order by both first_name and last_name what's the difference when we order it by just first_name?

  • @mrased10
    @mrased10 5 місяців тому +2

    You say at 4:55 that the age 50 is too low and lower it further to 40 😂

  • @afzalshaikh7014
    @afzalshaikh7014 16 днів тому

    Alex here executing commands and other people's job🤣🤣

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

    superb!

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

    You’re making more than 70 sure the parks department is gonna try and get rid of you 😂😂😂😂

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

    At 6.25, why ORDER BY not only first_name? result will be the same. Then why last_name included?

  • @ontheram
    @ontheram 5 місяців тому +2

    Got to do whatchu got to do 😭😭😭

  • @arikamasroor7969
    @arikamasroor7969 Місяць тому

    Can i anybody how he is using old first time,he says it is a label. I know alias but i don't know label.Can anybody explain?

  • @TasmiyaZaheer-k5j
    @TasmiyaZaheer-k5j 10 місяців тому

    hello alex, where can we get this dataset for practice

    • @riomouris4767
      @riomouris4767 7 місяців тому

      If you go back to his SQL Studio setup video, he manually creates the table using CREATE TABLE, then I think you'd have to add the first/last name columns to salary table

  • @kagisomogapi2675
    @kagisomogapi2675 Місяць тому

    Hi All, please help. Please send me a link to download database

  • @kjschannel6223
    @kjschannel6223 19 днів тому

    We send it to a person who needs it so our job is secure, job market is tough nowadays LOL 🤣🤣

  • @Dhikrdua
    @Dhikrdua 7 місяців тому +2

    What's the use of Union?
    To fire people😂😂😂

  • @_wenhuang
    @_wenhuang 4 місяці тому

    you gotta do what you gotta do 😂

  • @munchingmogul
    @munchingmogul 3 місяці тому

    omg not you calling Jerry old

  • @efloop6335
    @efloop6335 6 місяців тому

    wow

  • @MikeM-uy6qp
    @MikeM-uy6qp 6 місяців тому

    What a weird use case, discriminating against employees over 40 ( 'Old men" and 'Old Ladies') and cutting salaries or firing high-paid employees. "i've done something similar to this in my real job.' Charming.

  • @dinamuhamad1028
    @dinamuhamad1028 3 місяці тому

    40 is middle age not old 😀

  • @markshrigley4064
    @markshrigley4064 12 днів тому

    Wow - not cool about using the term "old" over 50. Not cool at all. I'm 57 and was offended.