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

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

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

  4. Executing an SQL query on a Pandas dataset - Stack Overflow

    Aug 27, 2024 · Executing an SQL query on a Pandas dataset Asked 7 years, 9 months ago Modified 2 months ago Viewed 260k times

  5. Convert Rows to columns using 'Pivot' in SQL Server

    Apr 10, 2013 · Pivot is one of the SQL operator which is used to turn the unique data from one column into multiple column in the output. This is also mean by transforming the rows into …

  6. How do you run a SQL Server query from PowerShell?

    Dec 7, 2011 · Is there a way to execute an arbitrary query on a SQL Server using Powershell on my local machine?

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

  8. 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. SELECT CAST( CASE WHEN Obsolete = 'N' or InStock = 'Y' THEN 1 ELSE 0 …

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

  10. How to use DbContext.Database.SqlQuery<TElement>(sql, …

    Feb 2, 2011 · I have a stored procedure that has three parameters and I've been trying to use the following to return the results: context.Database.SqlQuery&lt;myEntityType&gt;("mySpName", …

Refresh