Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
0 answers
97 views

SELECT o FROM Order o WHERE o.customerEmail LIKE %:emailPart% are there any RDBMS (PostgreSQL) index type which can improve performance of the query above? (i.e. which index can help on like clause?)
J.J. Beam's user avatar
  • 3,191
0 votes
1 answer
127 views

I am looking to combine the following two LIKE string comparisons into one LIKE string comparison: SELECT * FROM dbo.Departments D WHERE D.SystemKey LIKE 'SCI%' OR D.SystemKey LIKE 'FOO%'; I have ...
Fletch's user avatar
  • 377
0 votes
0 answers
44 views

consider: CollectionReference _dbCollection = FirebaseFirestore.instance.collection('estoque'); await _dbCollection.orderBy("descricao").startAt([_itemPesquisaController.text]).endAt(['${...
Rodrigo Costa's user avatar
0 votes
1 answer
50 views

I have a database structure like below users id | name 1 | Elizabeth Smith 2 | Smith Elizabeth 3 | Elizabeth Smith // extra space in between two words 4 | Dr.Elizabeth Smith 5 ...
Sing O Song's user avatar
0 votes
3 answers
60 views

I create an index this way: CREATE INDEX rep_tval_idx ON public.rep USING btree (t, lower(left(val, 127))); Then I run a SELECT with matching filter: explain select * from rep where t=3 and lower(...
Alexey Sam's user avatar
0 votes
1 answer
94 views

I am moving data from one system to another. The new system has a requirement that one of the columns can "ONLY have letters, numbers, hyphens and underscores". I need to find a way to see ...
Vaccano's user avatar
  • 83.3k
0 votes
1 answer
60 views

procedure 1: create or replace procedure pro_1() as $$ begin raise info 'pro1'; end $$ language plpgsql; procedure 2: create or replace procedure pro_2() as $$ begin raise info 'pro.1'...
MAK's user avatar
  • 7,355
2 votes
1 answer
62 views

SELECT products.*, products_description.* FROM products LEFT JOIN products_description ON products_description.products_id = products.products_id LEFT JOIN products_rooms ON ...
Clive's user avatar
  • 41
0 votes
0 answers
136 views

I have a list of c.11k strings that I need to partially match to string IDs within a BigQ table. T1 is the original BQ table and T2 is a table with a column of the 11,000 strings At the minute I have ...
Newbiee6977's user avatar
0 votes
2 answers
126 views

I'm trying to get records from SQL server starting with abc_ followed by at least one letter (a-z, A-Z) and then continue to the end with just letters and numbers (a-z, A-Z, 0-9). No special ...
AdamN's user avatar
  • 1
0 votes
1 answer
140 views

I have a SQL table where the last column is named flag: name: type: collation: null: default: ... flag varchar(250) utf8mb4_0900_ai_ci yes NULL The data has either double ...
melonlemon's user avatar
0 votes
0 answers
78 views

I am having trouble excluding text in a field that starts with "Community Launch". I am using the code: rp.project_name NOT LIKE 'Community Launch%' but this is removing any text that also ...
Daniel's user avatar
  • 9
0 votes
1 answer
198 views

I have a leading wildcard query I know it is hard to optimize. I know if I use only the trailing wildcard I can do some optimization. But our client wants the leading wildcard because when searching ...
Qiulang's user avatar
  • 12.9k
0 votes
1 answer
87 views

I use ruby and sequel in my programm. I want to execute a deletion in my DB like DELETE FROM db.tbl WHERE col1 = 'a' and (col2 LIKE '%xxx%' OR col2 LIKE '%yyy%') But I fail to build the statement ...
knut's user avatar
  • 28k
4 votes
2 answers
938 views

I'm working on a Laravel application with a jobs table containing job data in the payload column. The payload is a JSON string similar to this: {"displayName":"App\\Jobs\\V1\\...
goodUser's user avatar
  • 518
0 votes
2 answers
41 views

I am trying to select all the strings has word ABC1 in it. But getting wrong answer with LIKE query. Not sure how to get exact answer. Below is the string format in a column: "SomeString ABC1000 ...
Yashawant Sawant's user avatar
0 votes
2 answers
102 views

I have a MYSQL database with a table 'product', about 500 000 rows, with a column 'oem' (varchar 255, utf8_unicode_ci). I have another table 'oem' with a column 'oem' too (varchar 255, utf8_unicode_ci)...
Yannrog's user avatar
-1 votes
3 answers
117 views

I have this table with the next records: CREATE TABLE `t_vias` ( `id` int(11) NOT NULL, `cpro` varchar(2) NOT NULL, `cmum` varchar(3) NOT NULL, `cpos` varchar(5) NOT NULL, `mun` varchar(75) NOT NULL, `...
Dummy's user avatar
  • 13
0 votes
1 answer
66 views

I am working with a table (essentially a list of words, i.e. a dictionary'), and had the need to create a subset of items from that table that only contained 3 certain characters, let's say, 'A', 'P', ...
ColinE66's user avatar
1 vote
1 answer
113 views

I'm developing a search for entities by name in Postgres database. Name usually consists of 1-3 words and may contain symbols &, !, (, ), -, etc. I'm using gin trigram index and queries: WHERE ...
Анастасия Разумовская's user avatar
0 votes
1 answer
86 views

The query looks like this: Datatype for month.ty is text month.ty LIKE '%2024%' I am trying to make it get year without having to change it when year ends. Like get current year. I have tryied with ...
Beansolder's user avatar
1 vote
1 answer
134 views

I have a problem with BINARY(16) type (ULID under the hood) and specific ULID 01HRS49374C1EAGTPKTJ0JVT1P (hex 018e32448ce4605ca86ad3d4812de836) when queried using LIKE. LIKE query works with other ...
Kroksys's user avatar
  • 1,011
-1 votes
2 answers
138 views

I want to find the records that match a given text pattern but where a section of the pattern is different from a specific value. For example, a record of the Page table could have a PageId field and ...
Martin Parenteau's user avatar
1 vote
2 answers
536 views

I have huge words table which I'm running LIKE query on: create table words ( id int, word varchar ) It works pretty long. Index doesn't help a lot, so I'm trying to partition it by word column:...
zoryamba's user avatar
  • 345
0 votes
1 answer
41 views

This is my code but no results String sqlQuery = "WITH Ranked AS (SELECT *, ROW_NUMBER() OVER(PARTITION BY " + COLUMN_NAME + " ORDER BY " + COLUMN_NAME + &...
João Marques's user avatar
0 votes
1 answer
163 views

On my DB, when querying select my_field from my_table where my_field = 'ABC-123a' it yields 0 results but when querying select my_field from my_table where my_field like 'ABC-123a' it yields one ...
Corentin 's user avatar
0 votes
1 answer
47 views

I am trying to do this in the phpmyadmin SQL query box on a cpanel shared server. This works but, Local_Formatted in Phone1 and Phone2 tables are not always properly formatted. ...
Stephanie Kins's user avatar
-1 votes
1 answer
154 views

Hi I have a following query where conclusion_number column may include expertize_number with additional text. Thus I'm trying to find conclusion_number inside expertize_number via LIKE operator. ...
Islom's user avatar
  • 107
2 votes
2 answers
739 views

select sum(case when '%sys%' like any(series_arr) or 'displays' = any(lob_arr) then revenue else 0 end) as sys_displ_revenue from mytable Basically, when I run this ...
Reshmi Nair's user avatar
0 votes
1 answer
68 views

I am trying to create a function that will, for every row in a given dataframe, match a pattern with %like% to the contents of a column in that row and then paste a specific category name into the ...
Elizabeth Wallace's user avatar
0 votes
1 answer
147 views

I would like to filter a column in bigquery where the LIKE should match multiple patterns. Something like: SELECT description FROM mytable WHERE mycol LIKE "%window%" OR mycol LIKE &...
Galuoises's user avatar
  • 3,353
0 votes
1 answer
56 views

The following code works, as I type data the Dropdown is populated with fewer and fewer records until either only one remains, or I click to select a record from a small number of records. However ...
Steve Bennett's user avatar
0 votes
0 answers
36 views

I have the following query method. findAllByProfile_UserIdContainingAndOrigin There is an index for profile.userId but the query is extremely slow. I suspect that because of the Containing keyword ...
pitprok's user avatar
  • 562
0 votes
2 answers
127 views

How can I show data with the most words in the search? For example, I have a table like below: No Word 1 b c e f g h j k l 2 a b c d e f g h i j k l 3 a b d f g h i k l 4 a c d e f h i k l 5 a b c d e ...
Merry Ricard's user avatar
1 vote
1 answer
595 views

I have a table, Defender, with a column, Device Name I have another table, Defender SNOW, which has a column, Short Description (which is a text field). The Short Description contains free text. I ...
Mark Tait's user avatar
  • 755
-1 votes
2 answers
78 views

I'm trying to make a query and I don't understand why it doesn't work for me. I would appreciate it if someone could give me a hand SELECT TEMA FROM LIBRERIAS WHERE TEMA LIKE '%IA'; This query does ...
trex's user avatar
  • 21
-1 votes
1 answer
588 views

I have existing SQL like the following (this is a contrived example): DECLARE @Var NVARCHAR(256) SELECT @Var = SomeValue FROM SomeTable SELECT * FROM AnotherTable B WHERE @Var IN ('One','Two','Three'...
Redwing19's user avatar
0 votes
3 answers
64 views

The user input the following string 2SMD4COMPUTEREH2KLD [free input] what i need is to find the correct id in the table devices The user input the following string 2SMD4COMPUTEREH2KLD [ ...
DS Reveles's user avatar
0 votes
0 answers
43 views

I'm trying to pattern match something using LIKE. The below isn't my actual problem, but say I want one or more repetitions of a group of characters, for instance digits or comma (may be different ...
Mark Roworth's user avatar
0 votes
2 answers
125 views

I am using multiple concat with like but I am not getting all the output from the table. I am using below SQL query below in the database. select company_id as ID, concat( c.list_rank, '|||...
Naren Verma's user avatar
  • 2,327
0 votes
1 answer
80 views

I have a table with login names. Login names does not contain any special character just [a-zA-Z0-9] and of type varchar(50). I would like to find a user by login name eg.: CREATE TABLE users( login ...
Jónás Balázs's user avatar
0 votes
1 answer
84 views

Why is the third row being returned even though it does not have the Unicode 8239 (narrow non-breaking space) in its contents? DECLARE @tst as TABLE ( col NVARCHAR(200) NOT NULL ) INSERT INTO @tst ...
igorjrr's user avatar
  • 912
0 votes
1 answer
53 views

I have a table with a text column that contains a description and a GUID for each operation. Each GUID can appear in a maximum of three rows. I've been given a list of about 1000 GUIDs, and I need to ...
Sanjar Yuldashev's user avatar
-2 votes
1 answer
696 views

I would like to subset a table where a string variable 'my_notes' contains exactly 10 digits phone number in MS SQL Server. I want something like select * from mytable where my_notes like "%[0-...
PingPong's user avatar
  • 1,037
0 votes
1 answer
93 views

I have a dataset with IDs and a phone number as a string. I need to build a flag to show if the string is in a valid format. Here's a dummy dataset. CREATE TABLE Test ( ID int, Cell varchar(...
Kieren Duffy's user avatar
0 votes
1 answer
125 views

I'm trying to build a dynamic LIKE statement, where the last 2 digits of the current year is passed into the LIKE part. SELECT COUNT(*) AS amount FROM "ALLE" AS v WHERE (v.VMT != '' AND v....
Neo Yion's user avatar
1 vote
0 answers
55 views

Edit : my question is not a duplicate of how to highlight search results since i am trying to work with the query and not the query results. I know i could work with the query result and i even tried, ...
Aurélien Grimpard's user avatar
1 vote
1 answer
75 views

I have this kind of data in my database "mydb" : id | name --------- 1 | abcdef 2 | bcdefg 3 | cdefgh 4 | defghi 5 | efghij I do a simple SELECT query like this one : SELECT * FROM ...
Aurélien Grimpard's user avatar
1 vote
1 answer
100 views

We are using sqlite3 for a database and ensuring values inserted into a column matching a specific string would be useful in our case. Example: CREATE TABLE people ("firstname" TEXT), CHECK(...
leetbacoon's user avatar
  • 1,377
1 vote
1 answer
78 views

There is a live search on my page. When sending a request to the server, filtering and sorting parameters are accepted (developer, publisher, genre, time, etc.). The problem is that its execution ...
Mark Uuy's user avatar

1
2 3 4 5
66