TN Online TestSamacheer Kalvi practice

Introduction to Database Management System - Study Notes

Share this chapter: Telegram

Chapter Summary

This chapter introduces Database Management Systems (DBMS), exploring how they replace traditional file-based storage systems by resolving data redundancy, security, and maintenance challenges. It reviews hierarchical, network, relational, and object-oriented data models, before examining Relational Database Management Systems (RDBMS) in depth. Students will learn the essentials of Entity-Relationship (ER) modeling, basic structured query language (SQL) syntax, database administration tasks, and several open-source MySQL management tools.

Learning Objectives

Key Concepts and Definitions

Worked Methods

Method A: Setting Up a New User Account in MySQL

To create a user and assign access rights manually, follow these standard SQL commands:

  1. Insert user details into the system user table with an encrypted password:
    INSERT INTO user (host, name, password, select_priv, insert_priv, update_priv) VALUES ('localhost', 'guest', PASSWORD('guest123'), 'Y', 'Y', 'Y');
  2. Run the flush privileges command to refresh the server configuration instantly:
    FLUSH PRIVILEGES;

Method B: Querying and Sorting Filtered Table Records

When selecting data from a database with specific criteria and sorting order:

  1. Retrieve columns from the desired table using a WHERE clause to filter results:
    SELECT firstname, age FROM Biodata;
  2. Sort the output in descending order by appending the ORDER BY clause with the DESC keyword:
    SELECT * FROM Biodata ORDER BY firstname DESC;

Method C: Joining and Grouping Multi-Table Data

To combine related rows from two tables based on a common field and aggregate the results:

  1. Use a SELECT query listing both tables, mapping their common keys in the WHERE clause:
    SELECT Profile.Name, SUM(Exams.Marks) FROM Profile, Exams WHERE Profile.Rollno = Exams.Rollno GROUP BY Profile.Name;

Common Exam Traps

Exam Tips List

Solved MCQs → Practice test →

More for this chapter

Book Back Questions10 textbook MCQs · solved Additional MCQs15 extra MCQs · solved Practice TestInteractive · instant score Book Back TestTest yourself on the textbook set Additional MCQ TestTest yourself on the extra set Formula SheetAll key formulas

More chapters in Computer Applications

View all
1 Multimedia 2 An Introduction to Adobe PageMaker 4 PHP: Hypertext Preprocessor 5 Functions and Arrays in PHP 6 Conditional Statements in PHP 7 Loops in PHP 8 Forms and Files 9 Connecting PHP and MYSQL 10 Introduction to Computer Networks 11 Network Examples and Protocols 12 Domain Name System (DNS) 13 Network Cabling 14 Open Source Concepts 15 E-Commerce 16 Electronic Payment Systems 17 E-Commerce Security Systems 18 Electronic Data Interchange- EDI