If SQL select can't find this data, can you set a default value for it?

for example,
select name from user where id in (1Magne2, id 3, 4, 5)
if there are only users in the user table whose id is 1, it will only return 2 names
I hope it will return several names if it cannot be found, and set it to a fixed value. If it can be set to the data associated with other tables, it is better.

Sql
Aug.18,2021

this logic can be processed in the program.

Menu