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

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

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

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

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

  6. How to run a SQL query on an Excel table? - Stack Overflow

    For what I'm trying to do, the SQL query SELECT lastname, firstname, phonenumber WHERE phonenumber IS NOT NULL ORDER BY lastname would do the trick. It seems too simple for …

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

  9. What is the purpose of using WHERE 1=1 in SQL statements?

    Aug 12, 2009 · Closed 16 years ago. Possible Duplicates: Why would a sql query have “where 1 = 1” Why would someone use WHERE 1=1 AND <conditions> in a SQL clause? I've seen that a …

  10. sql - including parameters in OPENQUERY - Stack Overflow

    Jul 31, 2010 · How can I use a parameter inside sql openquery, such as: SELECT * FROM OPENQUERY([NameOfLinkedSERVER], 'SELECT * FROM TABLENAME where …