

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Result: SYNTAX EXPLAINED: CREATE TABLE New_Profession ( Profession_ID INT NOT NULL AUTO_INCREMENT PRIMARY KEY, Profession VARCHAR(30) ); -just creating a new table called New_Profession. INSERT INTO New_Profession (Profession) -Profession column of New_Profession table will be filled up. SELECT profession FROM Profession -Select profession column from my Profession table GROUP BY Profession -To group it by Profession ORDER BY Profession; -To order it by profession SELECT * FROM New_Profession;
- To select all from the New_Profession table. Page 2 Created By: mju2022 | Feb 16,2022 | 8:32 AM | LNC