Skip to content
Worked Examples · Example 10

Q.Write SQL statements to insert two records into the Student table:

(i) RollNo 1, Name 'Aarti Deshpande', Class 'XI-A', Marks 78;
(ii) RollNo 2, Name 'Rohan Patil', Class 'XI-A', Marks 85.
Maharashtra MsbshseTextbookSubjectiveImportance★★★★★est
92% · 12/13 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

To add a record to a table we use the INSERT INTO statement, naming the table and its fields and then giving the VALUES in the same order. Text values are written inside single quotes; numbers are written without quotes. We write one INSERT statement per record.

(i) For RollNo 1:

INSERT INTO Student (RollNo, Name, Class, Marks)
VALUES (1, 'Aarti Deshpande', 'XI-A', 78);

(ii) For RollNo 2:

INSERT INTO Student (RollNo, Name, Class, Marks)
VALUES (2, 'Rohan Patil', 'XI-A', 85);
``` …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.