What Is SQL Distinct and How Can You Use It?

preview_player
Показать описание

The DISTINCT keyword in SQL allows you to eliminate duplicate records from the results of your SELECT query. This video explains how to use SQL DISTINCT, how to use it with COUNT, and one thing to be aware of.
The demonstration uses MySQL, but the code and concept work in many other vendors (Oracle, SQL Server, PostgreSQL, MySQL)
Рекомендации по теме
Комментарии
Автор

Came here after an online course did a less than stellar job on this topic (Udacity, great otherwise imo). And this was the most detailed explanation I've found yet. Thank you!

omerkeidar
Автор

Sending a huge thank you for the comprehensive SQL tutorial. It's incredibly helpful! 😄🎥💻🔍

COOKINGBIRD
Автор

Thank you very much, this is very helpful.

MM-clik
Автор

Straight to the point, easy to understand and really helpful! Thanks!

twinkledeye
Автор

Does it works the same way as group by without any aggregate funcs?

where_is_the_manager
Автор

How to select 5 name using distinct? Sir

Champa-sama
Автор

This keyword distinct why must used in join ?!

MohammedIbrahim-hkbp
Автор

Thank you very much. Liked and subbed!

oswaldovirto