About 49,800 results
Open links in new tab
  1. 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, …

  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 - How to rename columns with `SELECT`? - Stack Overflow

    Jan 1, 2024 · 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 …

  4. sql - Exclude a column using SELECT * [except columnA] FROM …

    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 …

  5. sql - Convert Datetime column from UTC to local time in select ...

    Nov 7, 2011 · I'm doing a few SQL select queries and would like to convert my UTC datetime column into local time to be displayed as local time in my query results. Note, I am NOT …

  6. sql - MySQL SELECT only not null values - Stack Overflow

    Is it possible to do a select statement that takes only NOT NULL values? Right now I am using this: SELECT * FROM table And then I have to filter out the null values with a php loop. Is …

  7. SQL "select where not in subquery" returns no results

    Sep 10, 2009 · select * from Common where common_id not in (select common_id from Table1) and common_id not in (select common_id from Table2) I know that there are orphaned …

  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, 6 months ago Viewed 121k times

  9. 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?

  10. Add a row number to result set of a SQL query - Stack Overflow

    Jun 29, 2015 · 93 I have a simple select statement. I want to add a temporary column that will represent number the of rows in my result set. I tried this -