About 1,150,000 results
Open links in new tab
  1. sql - Is it possible to specify condition in Count ()? - Stack Overflow

    608 Is it possible to specify a condition in Count()? I would like to count only the rows that have, for example, "Manager" in the Position column.

  2. How to use "and" and "or" in a "Where" clause - Stack Overflow

    I have a query that is gathering information based on a set of conditions. Basically I want to know if a location has paid out more than $50 for the day OR the comment section has the word "filter...

  3. sql server - IF Condition in an SQL query - Stack Overflow

    Apr 20, 2012 · I'm a newbie to SQL Server. Please help me to write the following Logic in a query.

  4. sql - How do I use select with date condition? - Stack Overflow

    Jan 20, 2009 · In sqlserver, how do I compare dates? For example: Select * from Users where RegistrationDate >= '1/20/2009' (RegistrationDate is datetime type) Thanks

  5. sql - how do I select a column based on condition? - Stack Overflow

    I have a variable called @status which I set before this select statement:

  6. sql - Condition within JOIN or WHERE - Stack Overflow

    In "SQL Performance Tuning" by Peter Gulutzan and Trudy Pelzer, they tested multiple brands of RDBMS and found no performance difference. I prefer to keep join conditions separate from query …

  7. SQL sum with condition - Stack Overflow

    With condition HAVING you will eliminate data with cash not ultrapass 0 if you want, generating more efficiency in your query.

  8. How do I query for all dates greater than a certain date in SQL Server ...

    Mar 4, 2010 · How do I query for all dates greater than a certain date in SQL Server? Asked 13 years, 7 months ago Modified 3 years, 1 month ago Viewed 2.1m times

  9. mysql - SQL WHERE condition is not equal to? - Stack Overflow

    Nov 15, 2019 · DELETE FROM table WHERE id <> 2 As @Frank Schmitt noted, you might want to be careful about the NULL values too. If you want to delete everything which is not 2 (including the …

  10. Building dynamic where condition in SQL statement

    I want to build custom Where condition based on stored procedure inputs, if not null then I will use them in the statement, else I will not use them. if @Vendor_Name is not null begin set @