I'm trying to execute mysql query to find ids that dont exist in table but I'm getting an error. What am I doing wrong? Here is my query
create table scientist (id integer , firstname varchar(100), lastname varchar(100));
insert into scientist (id, firstname, lastname) values (1, 'albert', 'einstein');
insert into scientist (id, firstname, lastname) values (2, 'isaac', 'newton');
insert into scientist (id, firstname, lastname) values (3, 'marie', 'curie');
select * from (
VALUES ROW (1 , 2 , 3, 4, 5)
) as V
WHERE id not EXIST (select id from scientist);
I expect to see 4 and 5 in output