I have one main table and 2 tables that I left-join using "FIND_IN_SET". When I use a function such as COUNT() or SUM() I get wrong numbers! They are ...
I have one main table and 2 tables that I left-join using "FIND_IN_SET". When I use a function such as COUNT() or SUM() I get wrong numbers! They are ...
Hi I am facing a problem with Laravel eloquent query. I have a table named as 'Offer' and it is connected to another table using relation function 'Ap ...
I have this query I made based on someone else question here. SELECT *, FIND_IN_SET( score, ( SELECT GROUP_CONCAT( score ORDER BY score ASC) FROM Even ...
Before I have asked the same problem (Join table with comma issue (MySQL)) about join table with comma in the column. I have two tables, table struct ...
Database is MySQL 5.6 In my case i know only 'a' and 'b'. For example, need to select row where set_r is "a,b,c". Value 'c' is unknown, cant use ...
There are two records with ABITE and ABİDE name in the database but below query always return ABITE row in the query response because of Greek charact ...
Normalizing an existing table I made a decade ago. I have a varchar column (platforms) with a list of numbers that I'd like to break down and place in ...
Say I have a movie table and a genre table. linked through a many to many relationship. _ _ So nice and normalised. But I'm also also importi ...
NOTE : I tried many SF solution, but none work for me. This is bit challenging for, any help will be appreciated. Below is my SQL-Fiddle link : http: ...
I need a help with the below statement: I tried all sorts of solutions, but I can't reproduce the same scenario in SQL Server. Below, I'll put all ...
I have 3 tables as below I want to query tbl_link and associate the 'system_csv_id' -> 'system_desc' and 'class_csv_id, -> 'class_desc' to re ...
I am using FIND_IN_SET in MySQL as below : And I get output as below : However, I want to get cards in the same sequence as in the parameter str ...
I want to sort the user record according to city (chosen from the drop-down list). like if I pass city_id 22 in my query then i want all the row first ...
I know I can use find_in_set as bellow: But I am using laravel and I would like to write this query there. I have tried this: to get the records ...
I am using find_in_set with my query to get data from comma separated field. But it shows me error. above query shows me error of : Cardinality v ...
So I have a product/categories/brands structure where a products categories are identified by a column containing a comma separated list of category I ...
I have a stored procedure I want to use Wildcard search in FIND_IN_SET ipc is varchar like "F03D, F02D", etc I want to search in "F03D%, F02D%" whi ...
I'm trying to run the following MySQL command: Inside my database the column habitat_type (as this is a multiselect field) stores the values as" ...
Its not given correct result find_in_set only given a exact result. If any way to get correct result without using find_in_set ...