About 50 results
Open links in new tab
  1. SQL WITH clause example - Stack Overflow

    Sep 23, 2012 · The name assigned to the sub-query is treated as though it was an inline view or table. The SQL WITH clause is basically a drop-in replacement to the normal sub-query. Syntax For The …

  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 which can be …

  3. python - Pandas read_sql with parameters - Stack Overflow

    Are there any examples of how to pass parameters with an SQL query in Pandas? In particular I'm using an SQLAlchemy engine to connect to a PostgreSQL database. So far I've found that the following...

  4. SQL Server query to find all permissions/access for all users in a ...

    Aug 13, 2011 · I would like to write a query on a sql 2008 that will report all the users that have access to a specific database, or objects within the database such as tables, views, and stored procedures, …

  5. sql - How do I limit the number of rows returned by an Oracle query ...

    Is there a way to make an Oracle query behave like it contains a MySQL limit clause? In MySQL, I can do this: select * from sometable order by name limit 20,10 to get the 21st to the 30th rows (s...

  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 perform an IF...THEN in an SQL SELECT?

    Sep 15, 2008 · 117 You can find some nice examples in The Power of SQL CASE Statements, and I think the statement that you can use will be something like this (from 4guysfromrolla):

  8. sql server - Keeping it simple and how to do multiple CTE in a query ...

    Keeping the query simple. I like to keep my queries simple, however, If I ever in the future need to have additonal temporary results accessible during my simple query, what do I do? I would really like it, if I …

  9. SQL query to select dates between two dates - Stack Overflow

    Feb 26, 2011 · I have a start_date and end_date. I want to get the list of dates in between these two dates. Can anyone help me pointing the mistake in my query. select Date,TotalAllowance from …

  10. SQL 'LIKE' query using '%' where the search criteria contains

    May 29, 2012 · I have an SQL query as below. Select * from table where name like '%' + search_criteria + '%' If search_criteria = 'abc', it will return data containing xxxabcxxxx which is fine.