About 51 results
Open links in new tab
  1. sql - A select query selecting a select statement - Stack Overflow

    Jan 11, 2010 · A select query selecting a select statement Asked 16 years, 3 months ago Modified 16 years, 3 months ago Viewed 291k times

  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 - select * vs select column - Stack Overflow

    in SQL Server (not sure about other databases), if you need a subset of columns, there's always a chance a non-clustered index might be covering that request (contain all columns needed). With a …

  4. What does * mean in sql? - Stack Overflow

    Jul 29, 2016 · The second part of a SQL query is the name of the column you want to retrieve for each record you are getting. You can obviously retrieve multiple columns for each record, and (only if you …

  5. sql - Why is SELECT * considered harmful? - Stack Overflow

    Sep 4, 2010 · Why is SELECT * bad practice? Wouldn't it mean less code to change if you added a new column you wanted? I understand that SELECT COUNT(*) is a performance problem on some DBs, …

  6. Nested select statement in SQL Server - Stack Overflow

    Why doesn't the following work? SELECT name FROM (SELECT name FROM agentinformation) I guess my understanding of SQL is wrong, because I would have thought this would return the same …

  7. sql - Case in Select Statement - Stack Overflow

    Jan 7, 2013 · Using a SELECT statement with a searched CASE expression Within a SELECT statement, the searched CASE expression allows for values to be replaced in the result set based on …

  8. 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 there a ...

  9. sql - SELECT $ (dollar sign) - Stack Overflow

    May 23, 2015 · When SQL Server comes across your $ sign, it automatically converts it into a money data type. Because you don't have an explicit value after the dollar sign, SQL Server is assuming …

  10. sql - The difference between SELECT - Stack Overflow

    Just for kicks and giggles, I put the SELECT .* into SQL Server and it gave me Invalid column prefix '': No table name specified - you can, however, use a table alias so that it's SELECT a.*, [column list …