Learning MySQL - CREATE VIEW

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

КОМЕНТАРІ • 59

  • @9841554468
    @9841554468 2 роки тому +4

    my 4 months of college course and the professor couldn't explain in better way to make me understand, watching your 9 minutes of video and few practices I mastered in views. You are my real professor. thank you.

  • @cr2093
    @cr2093 3 роки тому +13

    I've pdf files consisting 29 pages to learn about view and you made it just in a 9 mins video! thank you!

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

    Reviewing this stuff right before my exam and I'm finding your channel super helpful. Thank you very much.

  • @lazytocook
    @lazytocook Рік тому

    thanks Steve, very clear and concise.

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

    great video man, learned from you in 5 min what i couldnt learn in 3 hours

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

    Harry Potter Sci-Fi :D
    Thanks for the Video. Helped me to understand it now :)

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

    Thanks buddy !! Clear Explanation. Loved it. Great Learning Experience.

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

    Best quality of voice so far

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

    You got an amazing voice bro, and great content too.

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

    Thank you so much!!! I will make sure that I like, comment and subscribe this.

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

    What a course! Great job. Thanks

  • @MostafaMASLOUHI
    @MostafaMASLOUHI 4 роки тому +1

    Thank you. Clear and direct.

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

    thanks man, learned really fast from u, also very nice voice :D

  • @ahmadalghali90
    @ahmadalghali90 4 роки тому +2

    Hi steve, when I do this and save it as a view in MySQL Workbench It becomes read only.. so I cannot select single cells to update... I have seen some stackoverflow answers saying that rules to edit a view is you cannot have joins, but you clearly have joins and its working with you, any tips?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  4 роки тому +4

      Views are intended to be read only. They can be regenerated but shouldn't be edited. If you need to edit the data then a TEMP TABLE is a better option.

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

    I have a view but its saying there is no unique column. How do I make the id of the view unique? maybe using row_number()?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  2 роки тому

      When you are creating the view you need to be bringing in a unique column. The primary key of the other table is the best choice.

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

    I have got a doubt? Since we are using INNER Joins, We should use ON are USING to relate the colomns without that how can we get the result

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  3 роки тому

      Generally with inner joins you will use ON to connect the tables yes. You can also use USING. The two are very similar. Here is a good answer about their similarities stackoverflow.com/questions/11366006/mysql-join-on-vs-using

  • @kalkalasch
    @kalkalasch 4 роки тому +1

    how did you manage a join without indicating what it should be joined on? or when doing views is it smart enough to understand it on his own?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  4 роки тому +2

      Best practice was that I should have included the `ON`. This simple example worked because I was doing a WHERE clause filter on the data. I was creating a bigger dataset than needed and reducing it with the WHERE. I should have added the ON.

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

      @@SteveGriffith-Prof3ssorSt3v3 great tutorials thank you 've learned a lot from you. in the particular tutorial there is a small error. without ON movie list is wrong for example labyrinth movie is fantasy not sci-fi. without ON , it will just make every movie as sci-fi. we need ON g.genre_id=m.genre_id
      OR we can have this instead of ON-> using(genre_id)

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

    thankyou show much very clear and understandble

  • @red_l6634
    @red_l6634 3 роки тому +2

    great tutorials thank you 've learned a lot from you. in the particular tutorial there is a small error. without ON movie list is wrong for example labyrinth movie is fantasy not sci-fi. without ON , it will just make every movie as sci-fi. we need ON g.genre_id=m.genre_id
    OR we can have this instead of ON-> using(genre_id)

  • @KeffelewAssefa
    @KeffelewAssefa Рік тому

    Thanks a lot

  • @ivanlik
    @ivanlik 4 роки тому +1

    Thanks , great channel , why you don't use 'on' for 'join' ?

  • @Egg-bn4fw
    @Egg-bn4fw 4 роки тому +1

    thank you steve!

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

    Thanks for the info sir!

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

    👏🏻👏🏻👏🏻👏🏻👏🏻👏🏻 outstanding!

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

    Sweet !!! 😋
    Thanks a lot 🙏🏿

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

    Great tutorial. But I'm interested to know how did you configured your phpmyadmin's command line. When I install phpmyadmin via xampp, I always get a command line that is behaving differently from yours. What I mean by that, when I do my queries in the sql command line, the results would always be shown in a different page and the command line plus the queries are gone? Whereas, yours is staying in the same page with the results and the sql command line intact.

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  3 роки тому

      Look right below where I am typing. See the checkbox "Show this query here again".

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

      @@SteveGriffith-Prof3ssorSt3v3 ty so much. Didn't expect you to reply so fast. I've fixed it now thank you.

  • @robotronix-co-il
    @robotronix-co-il 4 роки тому

    THANKS ,how do you make VIEW with parameters such as @ID for example
    ?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  4 роки тому +1

      IF you are talking about being able to do custom filters of the data in a view then what you probably want to use is either a Stored Function or a Stored Procedure. Those let you pass in parameters.
      You can create the View of the data which will keep the data up to date for a specific query. Then you can use the VIEW in a Function or Stored Procedure.

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

    the problem with view is its limitation like mentioned and u cannot edit the query used to generate the view, the only thing u can do is drop and create new view, which is very frustrating specially if u only need to adjust some minor change on ur query. pls correct me if im wrong with this, bec i tried updating it on phpymadmin it didnt work it throws some errors

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  3 роки тому +1

      That limitation is true. The purpose of the views is for efficiency when running your queries. They are not something that you should be changing. If you need to change the query frequently then consider stored procedures and temporary tables.

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

      @@SteveGriffith-Prof3ssorSt3v3 thanks for the info steve, ill check stored procedures and temporary tables then :)

  • @Musa-bt8wt
    @Musa-bt8wt 3 роки тому

    how do i create a view joining columns from different tables

  • @simonepaganoni1825
    @simonepaganoni1825 4 роки тому +1

    bella voce

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

    thanks

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

    Thank you sir!!!

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

    thank you sir

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

    Thank you ❤️

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

    Thank you :)

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

    Can I create a view from an array?

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

    Thank you

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

    View vs Routine
    What's the difference? thank you!

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  3 роки тому +1

      routines - functions and procedures are dynamic ways of working with data from multiple sources and manipulating that data. A view is a like a modified table that you create because you frequently access the data in the same way. The process that creates the view stays the same, the result stays in the same structure and is tied to actual tables. A View is data. Routines are a process.

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

      @@SteveGriffith-Prof3ssorSt3v3 So... view is just like linked columns of another table? Anyway thank you for the answer :)

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

    The Hobbit is Sci-Fi? Lol!

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  3 роки тому

      In the original data it, and others, were Fantasy. They got changed in previous tutorials in the series.

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

    I couldn't help but to notice how many browsers you have why does one man need all of them are you "trying to catch them all"

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  4 роки тому +1

      I'm primarily a web developer and teach web development. I need to test on different browsers and be able to use and demonstrate the dev tools in all the browsers.

  • @JA-vt1mh
    @JA-vt1mh 3 роки тому

    why is Conan the Barbarian a sci-fi movie

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  3 роки тому +1

      These are the types of things that happen when you experiment with your data while teaching people. :P