Here is the SQL query code:
`USE [transport] GO SELECT [location].[location] AS Местоположение,[car_list].[status] AS Свободен FROM [dbo].[location], [dbo].[car_list] WHERE [location].[loc_id] = [car_list].[location] AND [car_list].[status] = 1 ORDER BY [location].[location]' I want to make it more advanced so that I can display 3 types of status (free, busy, pause) of transport vehicles when the driver selects the status.
At the moment I can only display one status value.
How to expand the code and display all statuses in the same table as in the picture?
My query displays the data in the following form:


WHERE [location].[loc_id] = [car_list].[location] AND [car_list].[status] = 1You are in the request output data with status = 1, remove this condition and you will be happy, you will receive with all statuses. And about the output of all results as in the table - this is a separate question. - Klimenkomudphpmyadminor on a page, in aphpfile - Klimenkomud