There are two tables.
records- list of requests. Columns:numcar- car numbertimepriezd- estimated time of arrival of the car (timestamp)pkis a unique identifier, the default isNULLactive- the status of the passage of the machine. (1 - if the car has not yet passed)recognized_numbers- list of recognized numbers. Columns:numcaris the number of the recognized machinetime- the time when the car drove (timestamp)type- passage status (1 - entry, 2 - exit)pkis a unique identifier,NOT NULL(VARCHAR (250))
It is necessary to make a request that will do the following: Find all applications that have a travel status of '1' ( active = '1' ), replace it with '2'; replace the time of the intended passage, at the time of the actual passage. It is important to note that the car can travel more than once during the day and all the time. DB - MySQL