Global web icon
stackexchange.com
https://dba.stackexchange.com/questions/136134/sel…
select string that doesn't contain a substring/field
I believe the problem could be summarised like this: Select a row from TableA if no row exists in TableB such that TableB.keyword is a substring of TableA.content. It would probably be fair to say that the previous answer implements roughly the same logic. At the same time, it does so in a less straightforward way, in my opinion. The query below matches the proposed logic more directly and is ...
Global web icon
stackexchange.com
https://dba.stackexchange.com/questions/95926/excl…
sql server - Excluding particular words from a string on a WHERE clause ...
Full text search is a richer way of indexing complex strings. I know your case does not contain prose but FTS may still work for you. As an alternative to wildcard search you could split your concatenated values into their separeate parts. There are many ways to achieve this; reading this link will lead you to one that suits. Then you can treat your data in a set-wise manner. This assumes the ...
Global web icon
stackexchange.com
https://dba.stackexchange.com/questions/168134/fin…
Find rows in which the column doesn't contain a "space"
I'm using Postgres 9.5. I want to search for rows in which my name column does not contain a space. I'm a little murky on how to define a space to you, though. I thought it would just be the spac...
Global web icon
stackexchange.com
https://dba.stackexchange.com/questions/234123/why…
sql server - Why does CONTAINS not find matches at the end of the ...
When adding the * + CONTAINS() they are not seen as stoplist words, and the exact phrase has to match. But when using the default SYSTEM stoplist these 'stoplist words' are not added to the index, resulting in no matches found.
Global web icon
stackexchange.com
https://dba.stackexchange.com/questions/306342/lin…
Linked server error- The table either does not exist or the current ...
The OLE DB provider "SQLNCLI11" for linked server "Server B" does not contain the table ""DB1"."dbo"."TBL1"". The table either does not exist or the current user does not have permissions on that table.'. -The login has DBO permissions on both DB's in Server A +B. -The login is listed as a login in the linked server Security page.
Global web icon
stackexchange.com
https://dba.stackexchange.com/questions/121357/whe…
postgresql - Where column not like multiple values - Database ...
You almost had the correct syntax. This is exactly what you want: SELECT * FROM rails_db WHERE username NOT LIKE ALL(ARRAY[my values]); This is a very nice syntax, but it won't necessarily be fast, especially not if the array is large. However, what you want is hard to optimize for performance, and there is no reason to think uglier syntaxes will be any faster.
Global web icon
sas.com
https://communities.sas.com/t5/SAS-Programming/Not…
Solved: Not Contains - SAS Support Communities
Editor's Note: The CONTAINS operator is valid in a WHERE clause, not an IF statement. As shown by @deleted_user, using the INDEX or the FIND functions provide the closest equivalent.
Global web icon
sas.com
https://communities.sas.com/t5/SAS-Procedures/PROC…
PROC SQL NOT CONTAINS - SAS Support Communities
Hi, I am using proc sql to pull the variable names and labels from a datafile I have and put them into macro vars (one each for varnames and labels). The issue is that I only want to pull in the varname+label pairs for those variables that do not have year values in the labels. This is what I've t...
Global web icon
sas.com
https://communities.sas.com/t5/SAS-Programming/PRO…
PROC SQL - using CONTAINS and Variables - SAS Communities
Hi, is it possible to use a variable instead of a string for the CONTAINS operator? If t1.NAME contains the string of t2.Origin, the variable Type should contain Pickup. I need something like this: CASE WHEN t1.NAME CONTAINS t2.Origin THEN 'Pickup' ELSE 'Not Defined' END AS Type t1.NAME lo...
Global web icon
stackexchange.com
https://dba.stackexchange.com/questions/195932/sel…
sql server - Selecting records that contain letters and/or non-alpha ...
0 I have table with a string field ID with values looking like this: 012345678 I want to select all the records from the ID field that begin with a 0 and have a letter in them, e.g 000A345B or 0A32C450. I also want to select records that begin with zero and contain a -, / or a space. Note that records should begin with 0. How do I resolve this?