I have trouble finding the correct SQL Query. As you can see in the picture, I have two Tables ('Table_1' with column 'VEHICULES') and ('Table_2' with column 'IMMATRICULATION' and 'NOMBRE'). In the Table_2 I want to insert in the column ('Nombre') the counted values from the Table_1 of VEHICULE (CarA, CarB and CarC) in the same row of these values as in the picture.
I tried the below query but it is added a value instead of placing it in the same row of CarA, CarB....
INSERT INTO Table_2 (NOMBRE)
VALUES ((SELECT COUNT(*) FROM Table_1 WHERE VEHICULES = 'CarA'),
(SELECT COUNT(*) FROM Table_1 WHERE VEHICULES = 'CarB'),
(SELECT COUNT(*) FROM Table_1 WHERE VEHICULES = 'CarC')
);
