About 5,230 results
Open links in new tab
  1. sql - DISTINCT clause with WHERE - Stack Overflow

    May 29, 2017 · How can I use the DISTINCT clause with WHERE? For example: SELECT * FROM table WHERE DISTINCT email; -- email is a column name I want to select all columns …

  2. How do I (or can I) SELECT DISTINCT on multiple columns?

    Sep 10, 2008 · I want to select the distinct values from one column 'GrondOfLucht' but they should be sorted in the order as given in the column 'sortering'. I cannot get the distinct values …

  3. How to SELECT DISTINCT on Multiple Columns in SQL?

    Dec 16, 2024 · In this article, we will explain how to use SELECT DISTINCT on multiple columns in SQL by understanding various methods along with practical implementations. By the end, …

  4. database - How to select unique records by SQL - Stack Overflow

    With the distinct keyword with single and multiple column names, you get distinct records: SELECT DISTINCT column 1, column 2, ... FROM table_name;

  5. SQL SELECT with DISTINCT on multiple columns - w3resource

    Jul 31, 2024 · SELECT with DISTINCT on multiple columns and ORDER BY clause. You can use an order by clause in the select statement with distinct on multiple columns. Here is an …

  6. SQL SELECT DISTINCT Statement - W3Schools

    By using the DISTINCT keyword in a function called COUNT, we can return the number of different countries. Example SELECT COUNT(DISTINCT Country) FROM Customers;

  7. SQL Distinct Clause - GeeksforGeeks

    Dec 4, 2024 · In this article, we will learn the DISTINCT keyword, its syntax, practical examples, and common use cases. We’ll also discuss how it works with various SQL functions like …

  8. SELECT DISTINCT SQL Command Examples - SQL Server Tips

    Feb 23, 2023 · As its name implies, the DISTINCT keyword is commonly used in a SQL SELECT statement to return a distinct set of values. This tip will look at several simple examples of …

  9. SQL DISTINCT: The Complete Guide - Database Star

    Aug 16, 2023 · SQL DISTINCT on Multiple Columns. You can use DISTINCT on multiple columns. The DISTINCT keyword applies to the entire result set, so adding DISTINCT to your …

  10. SQL DISTINCT - w3resource

    May 14, 2024 · Yes, the DISTINCT keyword can be used with multiple columns to retrieve unique combinations of values across those columns. Can you use the DISTINCT keyword with …

  11. Some results have been removed
Refresh