Procedure Tutorial in SQL | SQL Stored Procedure | Procedure in SQL
HTML-код
- Опубликовано: 11 июл 2024
- Visit brilliant.org/techTFQ/ to get started learning STEM for free, and the first 200 people will get 20% off their annual premium subscription.
This video is about Stored Procedure in SQL. We look at what is a procedure, what is the purpose of using a procedure in SQL, syntax for creating and executing a procedure and also we shall create simple yet realistic procedure with and without parameters. We cover the concept of SQL Procedure for the most popular RDBMS such as PostgreSQL, Oracle, Microsoft SQL Server and MySQL.
All the scripts and dataset used in this video can be downloaded for free from my discord channel.
Link to join my discord below:
/ discord
My Recommended SQL Course:
learnsql.com/?ref=thoufiqmoha...
My Recommended platform to practice writing SQL queries:
www.stratascratch.com/?via=te...
My Live SQL Course on Lighthall:
www.lighthall.co/profile/techTFQ
Timestamp:
00:00 Introduction to procedure tutorial
02:12 What is a procedure
03:07 What is the purpose of using a procedure in SQL
04:31 Syntax to create a procedure in PostgreSQL
09:18 Syntax to create a procedure in Oracle
10:22 Syntax to create a procedure in Microsoft SQL Server
13:07 Syntax to create a procedure in MySQL
15:58 Create and execute a procedure without parameters in PostgreSQL
26:38 Create and execute a procedure without parameters in Oracle
30:48 Create and execute a procedure without parameters in Microsoft SQL Server
34:54 Create and execute a procedure without parameters in MySQL
38:41 Create and execute a procedure with parameters in PostgreSQL
51:51 Create and execute a procedure with parameters in Oracle
56:18 Create and execute a procedure with parameters in Microsoft SQL Server
01:02:28 Create and execute a procedure with parameters in MySQL
If you like my videos, do consider subscribing.
🔴 WATCH MORE VIDEOS HERE 👇
✅ SQL Tutorial - Basic concepts:
• SQL Tutorial - Basic c...
✅ SQL Tutorial - Intermediate concepts:
• SQL Tutorial - Interme...
✅ SQL Tutorial - Advance concepts:
• SQL Tutorial - Advance...
✅ Practice Solving Basic SQL Queries:
• Practice Solving BASIC...
✅ Practice Solving Intermediate SQL Queries:
• Practice Solving INTER...
✅ Practice Solving Complex SQL Queries:
• Practice Solving COMPL...
✅ Data Analytics Career guidance:
• Data Analytics career ...
✅ SQL Course, SQL Training Platform Recommendations:
• SQL Course / Training
✅ Python Tutorial:
• Python Tutorial
THANK YOU,
Thoufiq
Visit brilliant.org/techTFQ/ to get started learning STEM for free, and the first 200 people will get 20% off their annual premium subscription.
Great vid can you please make q tutirial on how to download and install oracle database and how to configure it with the right settings to get started and learning iracle please?
Please share the link to download those dB, if I manually creating this entry from 1 after previous entry was loaded at 10.
Your are bahubali of SQL tutorials 👌👌👌
haha thank you bro
😂
👍😁
😂😂😂
😂
This is by far the best SQL tutorials on the internet, better than a lot of paid resources
Thank you very much for covering all different SQL platforms. I don't see anyone taking the effort to teach all 4 to help everyone. Much appreciated!
one of the best explanations of a stored procedure with an actual use case, thank you so much for the video.
Thanks a lot Thoufiq, whenever I have to learn anything about SQL, your channel is the first I go through and as always you did justice to teaching it simply but elegantly. Thanks a lot my dear friend.
your welcome Shivam. I am very glad to read this
THIS MAN MAKES LEARNING EASIY, THANK YOU SO MUCH FOR ALL YOU DO FOR US. GOD BLESS YOU BROTHER;
I really like speed of this tutorial, no kicking tires!
For someone who has experience in multiple DBs need just refresh key words and style to write store procedures!!! Awesome👋👋👋 !
This is the best explaination about stored procedures. Its like spoon feeding.
It's an awesome video.. Great effort Tafiq.. Please give more examples in real time scenario as well. Also please do videos regarding in real time scenario how we will do it like using a tool such as SSIS Or UNIX something like this..
Great explanation on this. Good reference for the future when I need it. Keep them coming. Thanks for all your videos.
Thanks Steve, will do!
Very comprehensive tutorial! Thank you for sharing!!!
Superb teaching..We get more interest on Sql after seeing your videos...
Just started learning SQL and I'm amazed how you explain things to look that easy. Keep it up💞🎖️🔥
awesome video, as practical as an example can get!
as compact as possible!
thank you!
Thank you so much buddy
Hi Tofik,
I am impressed of your teaching. Kindly, Hoping you will do a video on functions too. It will be much useful to compare with procedures as well most of the interview pannel posting a question diff b/w procedures and functions.
Thankyou.
There are so many tutorials out there but you are damn too good.
One of the best video I have ever seen. Its so simple and easy to start from. Thanks @techTFQ.
Thank you techTFQ sir , your way of teaching is best
Am a big fan of your teachings.
Keep it up sir, you are fantastic
Thanks a lot brother :)
Excellent as always!!!
Wonderfull story telling comparing 4 diff category. Please do more vedio series.. it will help full us..
Thank you Balaji :)
Wow man! simply outstanding.....!
Thank you so much bro for making such a wonderful video, well explained
very well explained. I didn't bore for a while even
Appreciate putting the differences.. Very helpful
Best video on store procedure. Thankyou bhai for covering everything ❤.
Glad it helped
One of the bes ttutorial for SQL. I request you to make such kinds of tutorials for PowerBI with some projects. Love from Pakistan...
thanks for sharing the great content! keep it up !
I'm trying to relate this with functions in Python
Thanks for this video sir. I've not gotten to this stage yet but a pre-knowledge is not bad
Though I haven't used this in a work context because in most cases Analysts will only have Read permissions, these are exactly like functions.
@@TheRaju991 true
You know in functions you don't write the codes again
Best SQL teacher on RUclips ♥️🔥
Thank you buddy
This is very helpful. Thank you.
Thank you Joe :)
Hey there, Great efforts in this channel.
I have learned recently about assemblies.
In what way, Assemblies are different from stored procedures?
I appreciate your help at your sole convenience.
Thanks a lot.
Hi Tofik,
It's an too awesome video.. Great effort Tafiq.. Please give more examples in real time scenario as well. Please please make video on Trigger and Cursor as well. God Bless You !!!!
Thanks is just a small work. Keep up the good work
Thanks sir , I'm waiting for this video
I hope this helps Mahesh
Thanks for this video and could you please make the next video including collection types and cursors in Procedure
sure, will cover it as part of my PL SQL series in the future
Superb ! Keep up the good work ...
Thank you :)
Hi @techTFQ thank you for the amazing content on Procedures. It cleared lot of things in my head. I just had a request to make: Can you please do 1 or 2 videos on Triggers ? I tried searching a lot but didn't find any good videos explaining the same so hoping you could help. Thanks in advance
Thoufiq excellent vedio lectures!!
Thank you:)
Keep it up 👍. Great Efforts
Thank you :)
Thank u so much for this !
Hai tofik,
I'm great fan of your teaching. especially, the way you teach is simply awesome 👌.
But if you could do any video on t-sql (or) pl-sql, it will be very helpful for us... 👍Thank you Tofik.
Thank you Lokesh :) and sure will consider it
Hi Thank you for the content. Is there a way to sanitise those inputs declared in the parameter of procedure? if so can you tell me how
tnx bro. outstanding video 👏
Thanks for the video👍
Your welcome bro
Good work Sir, Keep it up
Thank you TFQ ji
Hey Tofik thank you so much for the great materials. I was wondering, if you would create real time examples in SQL intermediate and advance lvl.
you mean SQL queries right?
I have already done it and will continue to do it
Thanks man for the video
Your welcome Satyam
I am working on Version 8.0.18 which does not support Materialized views natively. I have an issue with performance in crosstabs when I query a decently large table for unique patient ids for YTD. It takes about 3-5 mins depending on what YTD months. After Jan-Apr the query deteriorates exponentially with each passing month. So I just created an aggregated table that I run each month. But the materialized view would have been nice to use. You are a good teacher and teach at a good pace with limited filler which I really like. Thank you.
Awesome presentation, explained in a crisp and clear manner, Hats off the Tutor🫡
Hi Brother...will you please make a detail video about the difference between procedures and funtions?
Brilliant work 👏
Bahut acha kaam karta ho aap
Hi Taufiq, excellent video as always ❤
why don't you cover cursor & error handling as well ? is there any separate video for that ?
awesome video, thanks, also a request, can you make more videos on PL-SQL , thanks
Thanks a lot for the vedio😀
Glad you liked it Nisha
Well covered but need a video using output paramaters
Also cover user defined function and triggers
Noted bro, will do
Wish u a very happy Eid Taufiq
Thank you bro, saw this a little late :)
thank you!!
Amasing, thx for lessons.
Could you explain, when and who use procedure..like even with this example, who should do it? And if it must be automatizete, how? I mean if someone but ipad, it's procedure or smth will called without you
Tq u buddy!! Will you please upload a video on pl/SQL fucntions
Could you please explain that how to send multiple parameters? Like IN condition in the WHERE Caluse.
Thanks sir to upload this video big thanks
I hope you like it Rahul 🙏🏼
@@techTFQ not only this video sir all your video is excellent I always watch only your video.by watching your video I am gaining sql knowledge day by day.
You are a gem
Thanks for this
My pleasure bro!
Nice!
Hi Thoufiq, I have a doubt. When you used current_date in MySql, it worked in procedure without parameters, but it didn't work in case of procedure with parameters. Why?
Hello,
Would be willing to create a video on how to troubleshoot and optimize stored procedure? Thank you
Hi bro
These videos are very much useful
Can you make an video for json file format and flatten the data for json format
Thank you :)
and will consider it
Thank you
great stuff
Hello Tofik. Please make a video for triggers as well. Thank You
Noted bro
😍😍😍😍 thanks
Your welcome Asad
I have a question "You need to show joined data from 5 tables. Each table contains a large number of rows and could generate a large result set after executing the Joins. The business is not expecting live data, and a 2-hour refresh is acceptable. Performance is a top priority. What should you use?" ---- so what would be the answer and why: Stored procedure or Materialized view........kindly give your valuable guidance
Hi sir, Can you Please upload how to update records from multiple tables(different tables)
using stored procedure
I'm a fresher just finished my SQL course..I wanted to know what are the important topics will be there in real time..so I can practice more on them ..can you please suggest
Normalization,Joins, Stored proc, Views,Index, Groupby, Cursor, Trigger👍
Is the difference between t-sql pl/sql and standard sql is the stored procedure?
@techtfq please make videos for performing tuning of Store procedure
hii sir, can we put a condition to check if the input quantity is not 0, since the query will update sales table for 0 as an input to the required quantity, i am still a beginner and finding it difficult as to how should i put this condition
please the text editor / IDU u are using sir... or someone else, please tell..!!
Please make a tutorial on indexing....I requested you many times.
Noted Manish , but not anytime soon
Hello, what are the topics that will be covered in this video? I asked this question because recently I am looking for detailed lecture videos to understand PL/SQL, I really appreciated uploading this video at the right time when I needed the most to understand its concept.
Ive mentioned it in the video description. Check the timestamp plz
@@techTFQ Will do thanks a lot and also for your other great SQL lectures.
Can you make a video on functions and loops in sql please!
sure will do
Are Recursive(), Procedure and statistics mandatory to get an entry level DA job?
Thank you so much sir will you teach json in plsql sir, thank you for your help sir learned lot international standard
Thank you Dhinesh. glad you liked it :)
as for PLSQL concepts, I may do it in the future
@@techTFQ thank you for your reply sir
Dear Sit
Where can I download your file for this learning video? I tried to do step by step but found some difficulties. Thank you.
Bro need alternative for collection types in postgres sql
Can you guide me plssss
Omg another way of escaping quotes
Hi @techTFQ I couldn't find the scripts for this Stored procedure session in the Discord..Can you pls help.
Also Explain the stored procedures for snowflake database
@techTFQ How to call a Parameter when it is table type?
First like 🎉
Appreciate it bro
when you execute select * from product how they reduce quantity ?
Please share the link to download the database unable to replicate by manually creating table!!
Hlo I am working in mnc. I got a training in mssql administrator. I am going to get project also in this stream only. It have worth of learning in 2022
Good luck buddy
What is difference between input parameter and output parameter?
hi please make a video on sql order of execution
I’ll plan it out
Sir i want one more topic... That is
How to decode SQL query for competitive exam..... I have around 100 relevel question... I have good knowledge in sql but still not able to decode SQL query
I am looking platform where I can perform queries for proc. ,Function and triggers
where are the scripts and datasets used in this video. I cannot find them in discord
I’ve just attached it in “scripts_n_resources” channel of my discord. Plz check now