School ICT Self Study
Absolutely Free Learning Opportunity! No Need to Spend Money! Study at Your Own Pace! Everything You Need is Right Here
UNLOCK YOUR DIGITAL FUTURE!
Free ICT Learning for Sri Lanka
🌍
|

Database Management Systems and SQL

139 viewsG13-08. AL ICT Database
0

  1. What is a Database Management System (DBMS)?

  2. What is the difference between DDL and DML in SQL?

  3. Write an SQL command to create a table named “Books” with columns for ID, Title, and Price.

  4. How can you use an SQL SELECT query to retrieve data from multiple tables?

  5. What does the DROP TABLE command do, and what is a potential risk of using it?

Ruwan Suraweera Changed status to publish
0

Answers and Descriptions:

  1. Answer: A DBMS is software that manages databases, handling data storage, retrieval, and security.
    Description: Examples like MySQL or Oracle DBMS provide tools to create, query, and maintain databases, ensuring efficient data management and user access control.

  2. Answer: DDL (Data Definition Language) defines database structure (e.g., CREATE, ALTER), while DML (Data Manipulation Language) manipulates data (e.g., INSERT, UPDATE).
    Description: DDL shapes the database schema, like creating tables, while DML handles data operations, like adding records. This distinction helps students understand SQL’s dual role in database management.

  3. Answer:

Description: This command creates a “Books” table with an integer ID as the primary key, a non-null title (up to 100 characters), and a price with two decimal places. It demonstrates proper use of data types and constraints.

  1. Answer: Use a SELECT query with an INNER JOIN to combine data from multiple tables based on a common column.
    Description: For example, SELECT Students.Name, Grades.Score FROM Students INNER JOIN Grades ON Students.ID = Grades.StudentID retrieves names and scores by linking tables via StudentID. Joins enable complex queries across related data.

  2. Answer: The DROP TABLE command deletes a table and all its data. A risk is permanent data loss if not backed up.
    Description: For example, DROP TABLE Books; removes the “Books” table entirely. Students must understand the irreversible nature of this command and the importance of backups.

Ruwan Suraweera Changed status to publish
🔴 Lesson List
SIDE BUTTON ON
Sign In Register
×

👋 Welcome Back!

🚀
Ready to Learn?Pick up where you left off.
🔑
Forgot Password?Click the link below to reset.
📢
New FeaturesCheck out the new AI Voice tool.

Sign In

👤
🔒
or continue with
Google Facebook

Already have an account? Register Now

🖥️ View Desktop Version Switch to full website view.