Русские видео

Сейчас в тренде

Иностранные видео


Скачать с ютуб How I Removed Duplicate Code From This SQL в хорошем качестве

How I Removed Duplicate Code From This SQL 11 месяцев назад


Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса savevideohd.ru



How I Removed Duplicate Code From This SQL

📝 Get my free SQL Cheat Sheets: https://www.databasestar.com/get-sql-... 🎓 Master SQL Fundamentals: https://databasestar.mykajabi.com/sql... If you have a long query, you may be using the same logic in multiple places. This can make it hard to maintain, if you need to update the logic. It can also be a performance issue, if the same tables are being queried multiple times. In this video, I'll show an example query that has logic repeated in several places due to the use of a UNION keyword. I'll share how I rewrite the query to get the same results by only querying the tables once, and putting the logic in one query. ⏱ TIMESTAMPS: 00:00 - Our query 02:09 - The problem 03:10 - The goal 03:39 - Write the new query 04:10 - Add a WHERE clause 05:06 - Calculate order types 06:52 - Calculate counts 08:04 - Get the averages 09:03 - Pivot data 🔗 VIDEO LINKS: SQL scripts for this video: https://github.com/bbrumm/databasesta...

Comments