0% found this document useful (0 votes)
10 views

Class 11 IP MySQL Notess

The document provides preparation notes for Class 11 Informatics Practices focusing on MySQL, covering key topics such as basic commands, table modification, data insertion and deletion, and viewing data. It includes practice questions and frequently asked questions to reinforce understanding of concepts like Primary Key, Foreign Key, and SQL commands. Essential commands and syntax for creating tables, modifying data, and querying are emphasized for effective learning.

Uploaded by

manas0821madesh
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Class 11 IP MySQL Notess

The document provides preparation notes for Class 11 Informatics Practices focusing on MySQL, covering key topics such as basic commands, table modification, data insertion and deletion, and viewing data. It includes practice questions and frequently asked questions to reinforce understanding of concepts like Primary Key, Foreign Key, and SQL commands. Essential commands and syntax for creating tables, modifying data, and querying are emphasized for effective learning.

Uploaded by

manas0821madesh
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Class 11 Informatics Practices: MySQL Preparation Notes

Key Topics to Focus On:

1. Basic Commands:

- CREATE TABLE syntax.

- Data types (e.g., INT, VARCHAR, DATE).

- Adding constraints (e.g., PRIMARY KEY, NOT NULL, DEFAULT).

2. Table Modification:

- ALTER TABLE (Add/Modify/Delete columns).

- Dropping a table using DROP TABLE.

3. Data Insertion and Deletion:

- INSERT INTO for adding records.

- DELETE FROM for deleting records.

4. Viewing Data:

- SELECT query basics.

- Filtering with WHERE, ORDER BY, and LIMIT.

5. Constraints and Keys:

- Primary Key, Foreign Key.

- Unique, Not Null, and Default constraints.

Practice Questions:

1. Write the command to create a table named Students with the following fields:
- RollNo (integer, primary key)

- Name (varchar, 50)

- DOB (date)

- Marks (integer).

2. Write the SQL query to insert the following data into the Students table:

| RollNo | Name | DOB | Marks |

|--------|-------|------------|-------|

| 101 | Aman | 2005-05-12 | 85 |

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.

6. Explain Primary Key and Foreign Key with examples.

Frequently Repeated Questions from KVS Papers:

1. Define a Primary Key. Create a table with a Primary Key constraint.

2. Write an SQL command to add a new column Email (varchar, 100) to an existing table.

3. What are the different data types in MySQL? Give examples.

4. Write SQL commands to:

- Create a table.

- Insert data into the table.

- Display all records with specific conditions.

5. Explain the use of WHERE and ORDER BY clauses with examples.

You might also like