Choosing Between Views, Functions, and Stored Procedures in SQL With Examples

Поділитися
Вставка
  • Опубліковано 6 жов 2024
  • When it comes to querying databases, SQL offers several different options: views, functions, and stored procedures. But which one is the best for your specific needs? In this video, we'll explore the differences between these options and help you choose the right tool for the job. With practical examples and a detailed explanation of each option, you'll gain a better understanding of how to optimize your SQL queries for performance and efficiency. Whether you're a beginner or an experienced programmer, this video is a must-watch for anyone looking to take their SQL skills to the next level. Join us and learn how to choose between views, functions, and stored procedures in SQL with confidence.
    Don't forget to subscribe to our channel for more SQL and programming education videos!
    SQL Series Playlist - • Mastering SQL Commands...
    #codingtips #education #databasemanagement #softwaredevelopment #sql #storedprocedures #techtutorials #sqlinterview #indexing #sqlperformance #programming #programmingtips #tsql #programmingtutorial #sqlmastery #queryoptimization #sqltutorialforbeginners #sqltutorial #sqltutorials #sqlserver #sqlforbeginners #sqltraining #sqltips #technology #softwareengineer #softwaredeveloper #softwareengineering #softwarecourses #softwaretesting #sqlviews #sqlfullcourse #sqlfunctions #sqlfundamentals

КОМЕНТАРІ • 48

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

    If you enjoyed this video and would like to see more, please consider subscribing to our channel. I appreciate your support and it helps me create more content. Currently, only a small percentage of viewers are subscribed, so I would be grateful if you could help me grow our community. Thank you for watching!

  • @pedrocorreia2911
    @pedrocorreia2911 3 роки тому +6

    My guy, I just want to thank you for the great work you're doing for free.
    I wish you well

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

      Thank you for your kind words.

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

    that was great, and I think this channel seems underrated. My class teacher does not ask that we actually create our own functions and stored procedures but rather has us copying and pasting them from the assignment outline to Microsoft SQL Server, but I think that would be interesting to go through a sort of live tutorial where the host instructs how to go about building and the syntax of the functions and stored procedures.

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

      Thanks for your comment. Please help the channel by subscribing. I have been inactive for a while and I will be posting new videos soon. If you have any topics you want me to go through let me know.

  • @rafeekahamed7510
    @rafeekahamed7510 2 роки тому +1

    Very clear explanations , Thank you for your effort.

  • @saayoo3479
    @saayoo3479 3 роки тому +3

    Thank you for this great video Sir!

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

      Thank you for your kind comment.

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

    Very good explanation. Thank You

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

      Thanks for your support 👍

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

    Thank you for this great video. Appreciate it.

  • @faiyazkhans5694
    @faiyazkhans5694 Рік тому +1

    clear explanation..thanks

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

    Thanks, great explanation ❤️❤️

  • @janlauzy1404
    @janlauzy1404 Рік тому +1

    great explanation!

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

    Thanks for the content

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

      Thank you for your support 🙏

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

    Thanks for this video 🙏🏻

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

      Thanks for the support. Please share with others!

  • @ZiaulHaqOfficial-786
    @ZiaulHaqOfficial-786 2 роки тому +1

    great

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

    Keen explanation👏👏thank u😊

  • @frikosimon
    @frikosimon Рік тому +2

    Thank you, now i am ready to do my exam haha

    • @TECNOVIQ
      @TECNOVIQ  Рік тому +1

      Glad to hear that. Let me know if you need further help in future.

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

    I think the function can be used for insert/update/delete in the case of PostgreSQL.

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

      Hi thanks for the message. You are right. These SQL videos are for SQL Server though which I mentioned in the first video in the series.

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

      I can do videos on PostgreSql if you need?

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

      @@TECNOVIQ It's Ok. I understood the concept. This much is enough. :)

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

    Hi SIR can you please explain when to use cursors, loops what is the difference between them,

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

      Sure. Thanks for your comment. I can make a video to explain about it 👍.

  • @harshitshahi5856
    @harshitshahi5856 2 роки тому +1

    Can you pls show how to debug a big SP and create dynamic queries etc. Also make a course on Azure Data engineering (including ADF, Az databricks) etc ! Paid is fine if you can give proper guidance & support

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

      Hi, I am soon coming up with a full course. I shall share it with you soon.

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

      @@TECNOVIQ Please ping as soon as it is out. Thanks

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

      Following

  • @TECNOVIQ
    @TECNOVIQ  3 роки тому +3

    Watch the rest of the SQL Series videos here ua-cam.com/play/PLXfnbRd6NGx-57KX1YoYiWJ1x1gqxMlb3.html

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

    We can use delete and upadate in views,you can try it.

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

      You mean ON a view rather than IN?

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

    Thank you for the video but why do you always start with drop function/procedure if exists? Confused why we are dropping when we are trying to create.

    • @TECNOVIQ
      @TECNOVIQ  3 роки тому +4

      Thanks for your comment. The reason I drop function or procedure is that, it makes the script reusable. You can use ‘ALTER’ after creating them but only if they were already created.

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

      @@TECNOVIQ THANK YOU, UNDERSTOOD

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

    Why we can't run insert or update in a function ?

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

      It’s a limitation from the SQL server. Postgres uses functions for everything.

  • @mohitjain1234512
    @mohitjain1234512 Рік тому +1

    Very nice explanation. Thank you

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

      Thank you 🙏

    • @TECNOVIQ
      @TECNOVIQ  Рік тому +1

      Please share with your friends and colleagues to watch and subscribe