Need help on this I am migrating the database from oracle to mysql. I am running the below query in oracle it works fine but in mysql getting
INSERT INTO xyz(rid, pid)
SELECT rid, pid
FROM ((SELECT distinct rd,
(SELECT p.pid FROM abc p WHERE p.permission='jury') AS pid
FROM xyz
WHERE pid IN (SELECT p.pid
FROM abc p
WHERE p.permission in ('jury'))
));
Getting the below error
Every derived table must have its own alias [SQL State=42000, DB Errorcode=1248]