Skip to content

mysql one-to-many anti join query

Looking for help with a query for this situation: I have 3 tables. Shoe table is a unique collection of shoe models. Color table is a unique collection of colors a shoe could have. shoe_color table is …

Deadlock involving SELECT FOR UPDATE

I have transaction with several queries. First, a select rows with FOR UPDATE lock: SELECT f.source_id FROM files AS f WHERE f.component_id = $1 AND f.archived_at IS NULL FOR UPDATE Next, …

Showing results of one column into two columns

Select Participants from table will result in Participants ——- John Nancy Jem Albert Smith Daniella I want a query where the results shows Player Opponent —— ——– John Nancy Jem …

join tables based on partial string sql

I have two tables: regional imd The regional contains a location column with information about cities of UK. The imd table contains a column ‘Name’ which also includes the city names. I want to …

Find function TO_DATE oracle in QGIS

In QGIS I get an error (to_date function error), can you tell me why?` If it’s impossible, what can we replace it with? TO_DATE(t.DATE_TOURNEE,’DD/MM/YYYY’) as DATE_TOURNEE