I am just beginning an SQL class and am having issues with one of the problems I must do.
The question is
Use the IN operator to list the part number and part description of each part in item class AP or SG.
What I have for the answer is
SELECT PART_NUM, DESCRIPTION
FROM PART
WHERE CLASS IN (AP, SG);
If I try to run that it states that SG is an invalid identifier. But if I view the table there are classes that = both ap and sg. does anyone have any assistance as to what I am doing incorrectly? Thanks for your time
Quote the values ‘AP’,’SG’ as they are chars.
… in (‘AP’,’SG’)