You need to think about how you build your query - think about what you would get if you just ran this:
SELECT (select Qualification from student where Qualification like 'A%') ,'A-Level'
The exact error you get will be my guess - you have a list of many Qualifications trying to match a single line - "A-level".
On the other hand, it will work fine.
select Qualification, 'A-Level' from student where Qualification like 'A%'
The trick with the INSERT and UPDATE , in my opinion, is to write a SELECT that will get you what you need, and then wrap it like
INSERT INTO qualification_lookup (variation, correct_qualification) select Qualification, 'A-Level' from student where Qualification like 'A%'
Dale m
source share