filmov
tv
Practice Activity: How to retrieve the top 80% of items in SQL Server (the Pareto principle)
Показать описание
Let's calculate the top 80% of items, and limit the results to these items.
My SQL Server Udemy courses are:
----
In this video, we'll take a look at the Pareto principle, also known as the 80% rule. The Pareto principle states that basically 80% of the effects come from 20% of the causes - so concentrate of those 80% of effects or the 20% of courses.
This rule can be applied to anything in life, and is especially relevant to SQL Server. By understanding the Pareto principle, you can optimize your SQL Server database to achieve the highest possible performance. This video will help you apply the Pareto principle to your SQL Server data, and achieve the top 80% of performance!
----
The starting code is as follows:
DROP TABLE IF EXISTS Inventory
GO
CREATE TABLE Inventory
(FoodName varchar(30),
Quantity int)
INSERT INTO Inventory
VALUES ('Apple', 198), ('Banana', 2000),
('Carrot', 385), ('Durian', 248),
('Eggplant', 127), ('Fig', 36),
('Grapes', 90), ('Honeydew melon', 1036),
('Ice cream', 64), ('Jackfruit', 1296),
('Kiwi', 1800), ('Lemon', 142),
('Mango', 1440), ('Nectarine', 536),
('Orange', 276), ('Pineapple', 178),
('Quince', 101), ('Raspberry', 670),
('Strawberry', 51), ('Tomato', 45),
('Ugli fruit', 482), ('Vanilla', 72),
('Watermelon', 745), ('Xigua (Chinese watermelon)', 346),
('Yam', 32), ('Zucchini', 932)
----
Links to my website are:
My SQL Server Udemy courses are:
----
In this video, we'll take a look at the Pareto principle, also known as the 80% rule. The Pareto principle states that basically 80% of the effects come from 20% of the causes - so concentrate of those 80% of effects or the 20% of courses.
This rule can be applied to anything in life, and is especially relevant to SQL Server. By understanding the Pareto principle, you can optimize your SQL Server database to achieve the highest possible performance. This video will help you apply the Pareto principle to your SQL Server data, and achieve the top 80% of performance!
----
The starting code is as follows:
DROP TABLE IF EXISTS Inventory
GO
CREATE TABLE Inventory
(FoodName varchar(30),
Quantity int)
INSERT INTO Inventory
VALUES ('Apple', 198), ('Banana', 2000),
('Carrot', 385), ('Durian', 248),
('Eggplant', 127), ('Fig', 36),
('Grapes', 90), ('Honeydew melon', 1036),
('Ice cream', 64), ('Jackfruit', 1296),
('Kiwi', 1800), ('Lemon', 142),
('Mango', 1440), ('Nectarine', 536),
('Orange', 276), ('Pineapple', 178),
('Quince', 101), ('Raspberry', 670),
('Strawberry', 51), ('Tomato', 45),
('Ugli fruit', 482), ('Vanilla', 72),
('Watermelon', 745), ('Xigua (Chinese watermelon)', 346),
('Yam', 32), ('Zucchini', 932)
----
Links to my website are:
Комментарии