Skip to main content

Command Palette

Search for a command to run...

Distinct Clause

Updated
1 min readView as Markdown

DISTINCT clause is used to remove duplicates from the result set of a SELECT statement.

select payment_method from orders

image.png

select distinct(payment_method) from orders

image.png

More from this blog

Ollie Seongyong Kim

85 posts