About 1,530,000 results
Open links in new tab
  1. sql - Select from one table matching criteria in another ... - Stack ...

    Nov 8, 2018 · I want to select rows from table_A that have a corresponding tag in table_B. So, for example, " select rows from table_a which are tagged 'chair' " would return table_C.

  2. sql - Exclude a column using SELECT * [except columnA] FROM tableA ...

    SELECT * [except columnA] FROM tableA The only way that I know is to manually specify all the columns and exclude the unwanted column. This is really time consuming so I'm looking for ways to …

  3. Find records from one table which don't exist in another

    This will return you data from one table if data is not present in another table for the same column

  4. SQL Server SELECT into existing table - Stack Overflow

    For Existing Table - INSERT INTO SELECT This method is used when the table is already created in the database earlier and the data is to be inserted into this table from another table.

  5. sql - checking if a value exists in another table within the SELECT ...

    Jun 27, 2017 · I want to query names from table1 and also find if a name exists in table2. I have the following query but it doesn't seem to work. Any suggestions what I did wrong? select A.name, CASE …

  6. t sql - Check if table exists in SQL Server - Stack Overflow

    I would like this to be the ultimate discussion on how to check if a table exists in SQL Server 2000/2005 using SQL Statements. Here are two possible ways of doing it. Which one is the standard/bes...

  7. SQL SELECT from multiple tables - Stack Overflow

    How can I get all products from customers1 and customers2 include their customer names? customer1 table cid name1 1 john 2 joe customer2 table cid name2 p1 sandy p2 linda product table pid...

  8. sql server - Get size of all tables in database - Stack Overflow

    Oct 25, 2011 · Here is another method: using SQL Server Management Studio, in Object Explorer, go to your database and select Tables Then open the Object Explorer Details (either by pressing F7 or …

  9. How can I select from list of values in SQL Server

    Oct 14, 2009 · Is the important thing here to get a distinct list of those values, or to get that list of values into SQL? As @JeppeStigNielsen says, there are other ways to get distinct values from a text list …

  10. Get all table names of a particular database by SQL query?

    Oct 12, 2010 · SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE='BASE TABLE' But it is giving table names of all databases of a particular server but I …