Tag

ROW_NUMBER

0 views collected around this technical thread.

Laravel Tech Community
Laravel Tech Community
Apr 11, 2022 · Databases

Three Methods for SQL Deduplication: DISTINCT, GROUP BY, and ROW_NUMBER

This article explains three common SQL deduplication techniques—using DISTINCT, GROUP BY, and the ROW_NUMBER window function—illustrating their syntax, performance considerations, and example queries for counting unique task identifiers in relational databases.

DISTINCTDeduplicationGROUP BY
0 likes · 4 min read
Three Methods for SQL Deduplication: DISTINCT, GROUP BY, and ROW_NUMBER
Laravel Tech Community
Laravel Tech Community
Nov 11, 2021 · Databases

Using DISTINCT, GROUP BY, and ROW_NUMBER for De‑duplication in SQL

This article explains how to remove duplicate rows in SQL by using DISTINCT, GROUP BY, and the ROW_NUMBER window function, compares their syntax and performance, and provides concrete examples with a Task table and a Test helper table.

DISTINCTDeduplicationGROUP BY
0 likes · 4 min read
Using DISTINCT, GROUP BY, and ROW_NUMBER for De‑duplication in SQL