Unit 2 Practicals | Database Management System Class 10
Database Management System
Create, insert, query and change data by typing your own SQL and seeing the result immediately.
These practicals are for simple doing and checking. Students should create a table, enter data, run SQL and see the result right away.
- Open MySQL, PostgreSQL or SQLite.
- Create one small table.
- Insert two or three rows.
- Run one SELECT query and read the result.
- See how a database stores rows and columns using a real table.
- Type the teacher's SQL statement and run it.
- Change one value and see what happens.
- Write the query, the result and one short observation in your notebook.
- Quizzes and tests on DBMS concepts and SQL syntax.
- Peer evaluation of query writing and result checking.
- Presentation of a working database and sample queries.
Create a table for students with name, class and roll number. Insert three students and find only the names that start with a letter.
- Install MySQL (or use SQLite for quick practice). For MySQL use official installer or Homebrew:
brew install mysql. - Start the server and login:
mysql -u root -p.
- Run the SQL below to create a database and one table.
- Verify with
SHOW TABLES;andDESCRIBE students;.
- Create a
markstable withstudent_idas FOREIGN KEY referencingstudents(id). - Insert sample marks and run a JOIN query to show student names and marks.
- Use
ALTER TABLEto add a new columnclass INT. - Practice
UPDATEandDELETEsafely usingWHERE.
- Write each SQL statement before running it.
- Copy the result below the statement.
- Save screenshots or pasted output for CREATE, INSERT, SELECT, UPDATE and DELETE.
- Add one line about what happened.
Netra Koirala
Computer Science Educator
Passionate computer science educator and author. Provides free study notes, practical guides, and tutorials for Class 9, 10, 11, 12, and B.Sc CSIT students in Nepal. Years of teaching experience in computer science fundamentals.
LinkedIn ProfileRelated Posts
Loading related posts…
Computer Science notes, tutorials, MCQs, and educational resources for Nepal students. Covering Class 9, SEE preparation, Class 11, Class 12, SLC, programming, DBMS, networking, HTML, JavaScript, PHP, OOP and more.
Featured Post
Grade 10 Computer Science: Specification Grid & Model Questions
Specification Grid & Model Questions of Computer Science | Grade 10 📚 Examination Resource Specification Grid & M...