About 1,000,000 results
Open links in new tab
  1. sql - select only one name from multiple/many names - Stack Overflow

    Nov 30, 2018 · only one name from table where the person(name) is the most times in the table. If you are using 12c and above, you may use: select * FROM t ORDER BY COUNT(*) OVER ( …

  2. MySql: How to display only 1 name only per multiple name

    Jun 4, 2015 · SELECT DISTINCT name, age FROM table; which will give you one row per each name-age combination, so khan-20 will be there only once - but if there were khan-25 then …

  3. sql - how to select multiple names in a single query - Stack Overflow

    Apr 8, 2012 · The proper logic for this query is 'OR' as it tells your SQL engine to find all row where uname = 'ali' OR 'veli'. Your query will end up looking like the following: SELECT * …

  4. SELECT Statement: How to Select Specific Values - SQLCourse

    Here is the format of a simple select statement: [,"column2",etc] . from "tablename" [where "condition"]; [] = optional. The column names that follow the select keyword determine which …

  5. SQL SELECT Statement - W3Schools

    FROM table_name; Here, column1, column2, ... are the field names of the table you want to select data from. The table_name represents the name of the table you want to select data from.

  6. query - How to select distinct for one column and any in another column

    I need to query an SQL database to find all distinct values of one column and I need an arbitrary value from another column. For example, consider the following table with two columns, key …

  7. How to Select Individual Columns in SQL? - GeeksforGeeks

    Nov 9, 2021 · For example in the below illustration, the column R_NAME is an individual column being selected from the table RESIDENTS. Syntax: SELECT COLUMN_NAME FROM …

  8. SQL | Query to select NAME from table using different options

    Aug 19, 2020 · Here, we are going to see how to find the name of a person whose name starts with a specified letter in SQL. In this article, we will be making use of the Microsoft SQL Server …

  9. 20 Basic SQL Query Examples for Beginners - LearnSQL.com

    Aug 17, 2023 · We do that using sentences that we call queries, which are SQL commands for retrieving data from the database. We’ll soon show you 20 basic SQL query examples to start …

  10. SQL Aliases - W3Schools

    SQL Aliases. SQL aliases are used to give a table, or a column in a table, a temporary name. Aliases are often used to make column names more readable. An alias only exists for the …

  11. Some results have been removed
Refresh