Case
T-SQL: CASE statement in WHERE?
I have the following WHERE clause in my SQL query currently: WHERE c.Town LIKE \'%\' + @Town + \'%\' What I want do is make the first \'%\' optional - so if the user has selected to just filter by[详细]
2023-04-07 16:32 分类:问答Need help designing table of rules to be used for SQL selections
I\'m refining a script that I have so that it could be automated & maintained by end users. Previously, I mentioned a portion of this script in this SO post.[详细]
2023-04-07 12:08 分类:问答Fluent nHibernate QueryOver SQL 'CASE' equivalent
Basically what I want to do is to write this piece of SQL: SELECT CASE WHEN t.ty开发者_StackOverflow社区pe = \'a\' THEN[详细]
2023-04-07 06:17 分类:问答LINQ Case statement within Count
Can you help me translate this sql into Linq please: select count(case when t.TypeID = 1 then t.TypeID end) as 开发者_如何学Pythona,[详细]
2023-04-06 16:55 分类:问答Boolean returning case
I need to join two tables. If b column is empty then the join will be done on c column. If not the join will be on b column.[详细]
2023-04-06 01:15 分类:问答'END' keyword in switch case?
so I\'m looking at another per开发者_StackOverflow社区son\'s code trying to fix it, and I\'m not sure what is happening.I have a pretty strong knowledge of programming in general, but there is one lin[详细]
2023-04-05 09:16 分类:问答CASE STATEMENT TO WHERE CLAUSE
I have a case statement,and i want to write seperate where clauses for each of them HIGH LOW MEDIUM and NONE.[详细]
2023-04-05 05:27 分类:问答mysql conditional queries
I have 3 tables in a mysql database names Visits, Groups, Carers. A visit can be executed by a group or a carer, so in the Vi开发者_如何学Pythonsit table I have a field carer mode, set to 1 if the vi[详细]
2023-04-04 07:11 分类:问答Remove or Replace with blank partial string in MySQL Query
I\'m trying to replace only certain parts of a string via an SQL query. The column holds data formatted as so:[详细]
2023-04-03 19:03 分类:问答Case insensitive array in Lua
I\'m trying to program an addon for WoW (in lua).It\'s a chat filter based on specific words.I can\'t figure out how to get the array of these words to be case insensitive, so that any upper/lower cas[详细]
2023-04-03 08:38 分类:问答