Class 11 IP MySQL Notess
Class 11 IP MySQL Notess
1. Basic Commands:
2. Table Modification:
4. Viewing Data:
Practice Questions:
1. Write the command to create a table named Students with the following fields:
- RollNo (integer, primary key)
- DOB (date)
- Marks (integer).
2. Write the SQL query to insert the following data into the Students table:
|--------|-------|------------|-------|
3. Write an SQL query to display the names of all students who scored more than 80 marks.
4. What is the difference between ALTER TABLE and DROP TABLE? Provide examples.
5. Write the query to delete a student record with RollNo 101 from the Students table.
2. Write an SQL command to add a new column Email (varchar, 100) to an existing table.
- Create a table.