hi here i have two tables named as test and test2.
test is as follows
test2 is as follows
i am using below sql code to get the below output.
UPDATE `test`
SET `availability` = 'ok'
WHERE
`id` = '(SELECT
test.id
FROM
test2
INNER JOIN test ON test.id = test2.PId)';
I requires below output. but it outcomes no any output. kindly help. any mistakes done by my end or if there is any best mothod to get below output, kindly mention