Skip to content

Tag: mysql

Syntax error possibly due to multiple ANDs?

UPDATE bookings b SET reservation_processed = ‘archived’ JOIN reservation_time_data r ON r.id = b.reservation_time WHERE premises_code = ‘LJJIDHhRN2ho1e3h’ AND reservation_date LIKE ‘%2020-09-10%’ …

SQL pivot query to get the result in a single row

I have a users table as I have another user_custom_fields table as and a third custom_fields table Here the problem is I need the result for each user in a single row with all the custom field_name as column header as I have heard about pivot queries but I don’t have much knowledge of SQL. Can anyone he…

Develop a single host multiple client MYSQL database

Please forgive me if the title is not correct. I am still trying to understand how this works. I have installed MySQL workbench and the MySQL server on my laptop. I have successfully created a database that store driver details, as per the picture. I can access this info only one my laptop. However, I would a…