About 256,000 results
Open links in new tab
  1. Convert Rows to columns using 'Pivot' in SQL Server

    Apr 10, 2013 · If you are using SQL Server 2005+, then you can use the PIVOT function to transform the data from rows into columns. It sounds like you will need to use dynamic sql if …

  2. Nested select statement in SQL Server - Stack Overflow

    Check for more subquery rules and subquery types. More examples of Nested Subqueries. IN / NOT IN – This operator takes the output of the inner query after the inner query gets executed …

  3. SQL WITH clause example - Stack Overflow

    Sep 23, 2012 · The SQL WITH clause was introduced by Oracle in the Oracle 9i release 2 database. The SQL WITH clause allows you to give a sub-query block a name (a process also …

  4. How can I query a value in SQL Server XML column

    Apr 27, 2012 · Obviously this is a bit of a hack and I wouldn't recommend it for any formal solutions. However I find this technique very useful when doing adhoc queries on XML …

  5. nested - Nesting queries in SQL - Stack Overflow

    Jun 25, 2014 · If you need to query for data that are in 2 different tables, the best option (in performance and readability) is to join, regardless whether implicitly or explicitly

  6. How do I create a parameterized SQL query? Why Should I?

    I've heard that "everyone" is using parameterized SQL queries to protect against SQL injection attacks without having to vailidate every piece of user input. How do you do this? Do you get this

  7. Understanding PIVOT function in T-SQL - Stack Overflow

    @Web-E ,unfortunately yes. As a workaround you can write the query string in your application or play with dynamic SQL in a stored procedure.

  8. plsql - Dynamic select in Oracle - Stack Overflow

    Jul 24, 2017 · Yes, why not your can change SQL query as you like. In that case you need to collect to record type for example ret_val [schema].tablename%ROWCOUNT which will reflect …

  9. Recursive query in SQL Server - Stack Overflow

    Jan 25, 2013 · Recursive CTE seems like only way to achieve recursive processing in SQL, but I am not really getting it right for my problem. Can you please give any example that is near to …

  10. SQL Server Linked Server Example Query - Stack Overflow

    The query is fully processed on the remote server thus will make use of index or any optimization on the remote server. Effectively reducing the amount of data transferred from the remote to …