I have the following SQL query:
INSERT INTO site_city_address (`cityName`, `cityCode`, `stateId`) VALUES (SELECT a.city, a.cityCode, b.stateId FROM site_address_dropdown a INNER JOIN site_state_address b ON a.state = b.stateName); I know it's possibly wrong. What I want to do is to insert the values of a.city, a.cityCode, and b.stateId as cityName, cityCode, and stateId into the shopious_city_address. How do I do so?