Skip to content

Combine two python mysql queries with a condition

I want to grab some specific rows of two tables before and after a certain time, this is my code: mysql_query = “”” select tb1x.id from table1 as tb1x join table2 as tb2x ON tb2x.id = tb1x.cid where …

Refactoring MySQL query

We came up with this query: SELECT tn1.* FROM tree_node tn1 WHERE tn1.type != “folder” AND tn1.parent IN ( SELECT tn.id FROM tree_node tn LEFT JOIN tree_node_access tna ON tna.tree_node_id = …

MS Access – string to date

I have a column Date with this format: 2019-07-01T07:03:05.612289+02:00 And I need chage thit final form yyyy-mm-ss (in this example 2019-07-01) Unfortunately this code does nothing: SELECT Format (…