About 45,300 results
Open links in new tab
  1. sql server - SQL select from a select query - Stack Overflow

    I want to do a select request that perform a first select and then use that selection to perform a second select. I made a 1st version using a temp table but I would like to know - is there is a wa...

  2. How do I perform an IF...THEN in an SQL SELECT?

    Sep 15, 2008 · The CASE statement is the closest to IF in SQL and is supported on all versions of SQL Server.

  3. 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 …

  4. sql - How to SELECT FROM stored procedure - Stack Overflow

    May 4, 2017 · I have a stored procedure that returns rows: CREATE PROCEDURE MyProc AS BEGIN SELECT * FROM MyTable END My actual procedure is a little more complicated, which is why a …

  5. sql server - How to generate auto increment field in select query ...

    How to generate auto increment field in select query Asked 12 years, 7 months ago Modified 7 years, 9 months ago Viewed 387k times

  6. Nested select statement in SQL Server - Stack Overflow

    SELECT name FROM agentinformation Doesn't the inner select statement create a result set which the outer SELECT statement then queries?

  7. sql - How to rename columns with `SELECT`? - Stack Overflow

    Mar 5, 2009 · I have two tables with one identical column name, but different data. I want to join the tables, but access both columns (row["price"], row["other_price"]): How can I rename/alias one of …

  8. sql - Update multiple rows using select statement - Stack Overflow

    Jun 28, 2012 · Update multiple rows using select statement Asked 13 years, 5 months ago Modified 7 years, 7 months ago Viewed 121k times

  9. sql - Effect of NOLOCK hint in SELECT statements - Stack Overflow

    I guess the real question is: If I don't care about dirty reads, will adding the with (NOLOCK) hint to a SELECT statement affect the performance of: the current SELECT statement other transact...

  10. sql - JOIN two SELECT statement results - Stack Overflow

    Is it possible to join the results of 2 sql SELECT statements in one statement? I have a database of tasks where each record is a separate task, with deadlines (and a PALT, which is just an INT of ...