filmov
tv
SQL Query Optimization | SQL Query Optimization and performance tuning
Показать описание
SQL Query Optimization | SQL Query Optimization and performance tuning
In this video we have discussed tips and tricks by which we can optimize any SQL query and improve performance.
Want more similar videos- hit like, comment, share and subscribe
❤️Do Like, Share and Comment ❤️
❤️ Like Aim 5000 likes! ❤️
➖➖➖➖➖➖➖➖➖➖➖➖➖
Please like & share the video.
➖➖➖➖➖➖➖➖➖➖➖➖➖
Chapters:
0:00 Introduction
0:44 what is SQL Query Optimization
1:54 INDEXING in SQL
5:09 UNION VS UNION ALL
6:02 SELECT ,TOP , LIMIT IN SQL
7:19 SQL OPTIMIZATION OTHER TRICKS
➖➖➖➖➖➖➖➖➖➖➖➖➖
➖➖➖➖➖➖➖➖➖➖➖➖➖
📣Want to connect with me? Check out these links:📣
➖➖➖➖➖➖➖➖➖➖➖➖➖
what we have covered in this video:
n this video of code decode we have demonstrate how to optimize and fine tuned the SQL queries
asked in Sql interview question and answers
This video has Best Practices of SQL and Ways to fine tune your SQL Queries
SELECT fields instead of using SELECT *
Avoid SELECT DISTINCT
Create joins with INNER JOIN (not WHERE)
Use WHERE instead of HAVING to define filters
Avoid too much JOINs on your query: use only what is necessary!
Avoid cursors at all costs!
SELECT DISTINCT is a handy way to remove duplicates from a query. SELECT DISTINCT works by GROUPing all fields in the query to create distinct results. To accomplish this goal however, a large amount of processing power is required. Additionally, data may be grouped to the point of being inaccurate. To avoid using SELECT DISTINCT, select more fields to create unique results.
Some SQL developers prefer to make joins with WHERE clausesThis type of join creates a Cartesian Join, also called a Cartesian Product or CROSS JOIN.
In a Cartesian Join, all possible combinations of the variables are created
This is an inefficient use of database resources, as the database has done 100x more work than required. Cartesian Joins are especially problematic in large-scale databases, because a Cartesian Join of two large tables could create billions or trillions of results.
To prevent creating a Cartesian Join, use INNER JOIN instead:
➖➖➖➖➖➖➖➖➖➖➖➖➖
Hope you liked this video and learned something new :)
See you in next video, until then Bye-Bye!
➖➖➖➖➖➖➖➖➖➖➖➖➖
#sqlserver #sqlinterviewquestions #sqlinterviewquestionsandanswers #sqlinterviewquestions
tags
query optimization
sql query optimization,
sql server optimization,
query optimization sql,
sql server query optimization tips,
sql query optimization interview questions,
sql performance tuning and query optimization,
sql optimization queries with examples,
how to speed up sql queries,
sql interview questions and answers,
sql query optimization interview questions and answers,
performance tuning,
query optimization explanation,
gate smashers,
learn coding,
naresh technologies
In this video we have discussed tips and tricks by which we can optimize any SQL query and improve performance.
Want more similar videos- hit like, comment, share and subscribe
❤️Do Like, Share and Comment ❤️
❤️ Like Aim 5000 likes! ❤️
➖➖➖➖➖➖➖➖➖➖➖➖➖
Please like & share the video.
➖➖➖➖➖➖➖➖➖➖➖➖➖
Chapters:
0:00 Introduction
0:44 what is SQL Query Optimization
1:54 INDEXING in SQL
5:09 UNION VS UNION ALL
6:02 SELECT ,TOP , LIMIT IN SQL
7:19 SQL OPTIMIZATION OTHER TRICKS
➖➖➖➖➖➖➖➖➖➖➖➖➖
➖➖➖➖➖➖➖➖➖➖➖➖➖
📣Want to connect with me? Check out these links:📣
➖➖➖➖➖➖➖➖➖➖➖➖➖
what we have covered in this video:
n this video of code decode we have demonstrate how to optimize and fine tuned the SQL queries
asked in Sql interview question and answers
This video has Best Practices of SQL and Ways to fine tune your SQL Queries
SELECT fields instead of using SELECT *
Avoid SELECT DISTINCT
Create joins with INNER JOIN (not WHERE)
Use WHERE instead of HAVING to define filters
Avoid too much JOINs on your query: use only what is necessary!
Avoid cursors at all costs!
SELECT DISTINCT is a handy way to remove duplicates from a query. SELECT DISTINCT works by GROUPing all fields in the query to create distinct results. To accomplish this goal however, a large amount of processing power is required. Additionally, data may be grouped to the point of being inaccurate. To avoid using SELECT DISTINCT, select more fields to create unique results.
Some SQL developers prefer to make joins with WHERE clausesThis type of join creates a Cartesian Join, also called a Cartesian Product or CROSS JOIN.
In a Cartesian Join, all possible combinations of the variables are created
This is an inefficient use of database resources, as the database has done 100x more work than required. Cartesian Joins are especially problematic in large-scale databases, because a Cartesian Join of two large tables could create billions or trillions of results.
To prevent creating a Cartesian Join, use INNER JOIN instead:
➖➖➖➖➖➖➖➖➖➖➖➖➖
Hope you liked this video and learned something new :)
See you in next video, until then Bye-Bye!
➖➖➖➖➖➖➖➖➖➖➖➖➖
#sqlserver #sqlinterviewquestions #sqlinterviewquestionsandanswers #sqlinterviewquestions
tags
query optimization
sql query optimization,
sql server optimization,
query optimization sql,
sql server query optimization tips,
sql query optimization interview questions,
sql performance tuning and query optimization,
sql optimization queries with examples,
how to speed up sql queries,
sql interview questions and answers,
sql query optimization interview questions and answers,
performance tuning,
query optimization explanation,
gate smashers,
learn coding,
naresh technologies
Комментарии