0% found this document useful (0 votes)
109 views5 pages

Unit 3: RDBMS Fundamentals Explained

The document provides information about relational database management systems and key concepts related to databases, tables, queries, forms and reports. It defines terms like DBMS, RDBMS, tables, rows, columns, primary keys and relationships. It also describes common data types, DDL and DML commands including create, select, update and delete. Forms and reports are explained as interfaces to view, enter and manage database data and present it respectively. The document contains questions and answers to test the understanding of these concepts.

Uploaded by

Rasitha Wincy
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
109 views5 pages

Unit 3: RDBMS Fundamentals Explained

The document provides information about relational database management systems and key concepts related to databases, tables, queries, forms and reports. It defines terms like DBMS, RDBMS, tables, rows, columns, primary keys and relationships. It also describes common data types, DDL and DML commands including create, select, update and delete. Forms and reports are explained as interfaces to view, enter and manage database data and present it respectively. The document contains questions and answers to test the understanding of these concepts.

Uploaded by

Rasitha Wincy
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Unit 3 Relational Database Management Systems(Basic)

A. Fill in the blanks.


1. A database is an organized collection of data.
2. A DBMS is a software package that can be used for creating and managing
databases.
3. A RDBMS is a database management system that is based on the relational
model.
4. Three popular DBMS software are Microsoft Access,
OpenOfficeBase & MySQL.
5. A Primary Key is a unique value that identifies a row in a table.
6. Composite Key is a combination of one or more columns.
7. A table is a set of data elements that is organized using a model of
vertical columns and horizontal rows.
8. A column is a set of data values of a particular type, one for each row of the
table.
9. A row represents a single, data item in a table.
10. Datatypes are used to identify which type of data we are going to store in
the database.
11. Create table DDL command is used to create a table.
12. Common DDL statements are create, alter and drop.
13. The types of languages used for creating and manipulating the data in the
Database are DDL & DML.
14. A DDL is a standard for commands that define the different structures in a
database.
15. A DML is a language that enables users to access and manipulate data in a
database.
16. A Select is a part of DML involving information retrieval only.
17. A popular data manipulation language is SQL.
18. Tables are the basic building blocks of a database.
19. There are three types of Relationships in a table.
20. A form helps the user to systematically store information in the database.
21. A form enables users to view, enter, and change data directly in database
objects such as tables.
22. SELECT statement retrieves zero or more rows from one or more database
tables or database views.
23. By default, data is arranged in ascending order using ORDER BY clause.
24. UPDATE statement is used for modifying records in a database.
25. DELETE statement is used to remove one or more records in a Database.
26. To create a form you need to select the form option available under
Database section.
27. A query helps to collect specific information from the pool of data in the
database.
28. Report is used to display the summary of data.
29. Forms are the interfaces with which the user interacts.
30. Data from multiple tables can be linked with the help of Primary
Key and Foreign Key constraints.

Q1. What does DBMS Stands for?

Ans. DBMS stands for Database Management System.


Q2. What does RDBMS Stands for?

Ans. RDBMS stands for Relational Database Management System.


Q3. How is data organized in a RDBMS?

Ans. The Relational Database Management System (RDBMS) organizes the


data into tables. In tables vertical lines are called fields and horizontal lines are
called records.
Q4. State the relationship and difference between a primary and foreign key.

Ans. Primary key and Foreign key are used to relate the tables so that data can
be fetched from multiple tables.
We can not enter duplicate values in Primary key while duplicate values can be
entered in Foreign Key.
Q5. In how many ways tables can be created in Base?

Ans. Tables can be created in two ways.


1. In Design view
2. Using Wizard
Q6. Why are data types used in DBMS /RDBMS?

Ans: Datatype are used to identify which type of data we are going to store in
the database

Q7. List datatypes available in Numeric Datatype?

Ans. The different types of numeric data types are:


Boolean
Tinyint
Smallint
Integer
Bigint
Numeric
Decimal
Real
Float
Double
Q8. List datatypes available in Alphanumeric Data Type?

Ans. The different types of Alphanumeric Data Type are:


Longvarchar
Char
Varchar
Varchar_Ignore Case
Q9. Define the structure of a table.

Ans. A table is a set of data elements (values) that is organized in vertical


columns and horizontal rows. A table has a defined number of columns, but can
have any number of rows.
Q10. Differentiate between Tuples and Attributes of a table.

Ans. A row also called a Record or Tuple represents a single, data item in a
table. Whereas A column is a set of data values of a particular simple type, one
for each row of the table.
Q11. Name different Binary data types.
Ans. The different Binary data types are:
1. Longvarbinary
2. Binary
3. Varbinary
Q12. What is the file extension for databases created using [Link]
Base?

Ans. The extension is .odb


Q13. List any three file formats that can be managed using [Link]
Base?

Ans. Three file formats that can be managed using [Link] Base.
1. .odb
2. .odf
3. .odt
Q14. How many types of relationships can be created in Base? Explain each of
them.

Ans. There are three types of relationship in OpenOffice Base.


ONE to ONE : In this relationship, both the tables must have primary key
columns. Example: In the given tables EMP and DEPT, EMP_ID in EMP table
and DEPT_ID in DEPT table are the primary keys.
ONE to MANY : In this relationship, one of the table must have primary key
column. It signifies that one column of primary key table is associated with all
the columns of associated table.
MANY to MANY : In this relationship, no table has the primary key column. It
signifies that all the columns of primary key table are associated with all the
columns of associated table.
Q15. What do you mean by Sorting? In how many ways it can be done?

Ans. Sorting means arranging elements in particular sequence. It can be done in


two ways.
1. Increasing order
2. Decreasing Order
Q16. Explain Referential Integrity with the help of an example.

Ans. Referential integrity is used to maintain accuracy and consistency of data


in a relationship. In Base, data can be linked between two or more tables with
the help of primary key and foreign key constraints. for example we have two
tables :
Student table has fields Admno, Name, Fname , Mname (Admno is a primary
Key)
Teacher table has fields T_id, Admno, Tname, Tsal (T_id is primary key and
Admno is Foreign Key)
Both the above tables can be linked by Common Fields ie Admno
Q17. Name DML commands.

Ans. DML stands for Data Manipulation Language. DML Commands are :
SELECT – retrieve data from a database.
INSERT – insert data into a table.
UPDATE – updates existing data within a table.
DELETE – deletes all or specific records from a table.
Q18. What is the purpose of using queries?

Ans. The purpose of using query is to collect specific information from the pool
of data(TABLE). A query also helps us to extract information from different
tables.
Q19. Which clause of the Select statement helps to display specific data?

Ans. ‘Where’ clause of the Select statement helps to display specific data.
Q20. Differentiate between Where and Orderby clause of SQL statements.

Ans. Where clause helps to retrieve specific row from the table and ORDER BY
clause specifies an order in which to return the rows.
Q21. State the purpose of Update Command with the help of an example.

Ans. Update statement is used for modifying records in a table. for example the
following command will increase the salary of all employees by Rs 2000.
Update emp set sal = sal + 2000;
Q22. Why is there a need to create Forms?

Ans. A form provides the user a systematic way of storing information into the
database. It is an interface in a user specified layout that lets users to view,
enter, and change data directly in database objects such as tables.
Q23. What is the purpose of creating Reports?

Ans. A report helps to display the data in a summarized manner. It is used to


generate the overall work outcome in a clear format. We can create reports in
OpenOffice Base using wizard.
Q24. What are the prerequisites to create a Form and Reports?

Ans. Table must be created and selected before creating forms and reports in
OpenOffice Base.
Q25. Differentiate between Forms and Reports.

Forms Reports

A form provides an interface that allows


users to enter, change and view the data in a Reports are used to present data from
database table. Forms are made up of tables
elements or queries in a format that can be printed.
such as textboxes and labels.

We can make changes to data. We can not make changes to the data.
Q26. Can a form display data from queries?

Ans. Yes
Q27. In how many ways Forms and Reports can be created in a database?

Ans. Forms and Reports can be created in two ways:


1. Create Form in design View
2. Create Form using wizard

Common questions

Powered by AI

Data types play a critical role in database design as they determine the kind of data that can be stored in each column of a table, impacting storage requirements, and processing efficiency. Choosing appropriate data types ensures data integrity and optimizes performance. Common data types in RDBMS include numeric types like Integer and Decimal; alphanumeric types like VARCHAR and CHAR; and binary types like BINARY and VARBINARY. Proper use of data types helps enforce data validation, conserve space, and maintain efficient data retrieval operations .

A Primary Key is a unique identifier for a row within a table, ensuring that no duplicate values exist in the column designated as the primary key. In contrast, a Foreign Key is a field (or a collection of fields) in one table that uniquely identifies a row of another table. While a Primary Key does not allow duplicate or null values, a Foreign Key can contain duplicate values and typically references a Primary Key in another table, establishing a link between the two tables. This relationship facilitates data integrity and referential integrity within the database .

Reports in a database management system serve the purpose of presenting data in an organized, summarized format that can be printed or shared, often used for decision-making and informational outputs. Unlike queries, which are used to retrieve data dynamically based on specific criteria and may produce raw data outputs, reports are formatted for readability and comprehension, often aggregating and summarizing data for clarity. Reports are non-interactive and static, while queries allow for flexible, ad-hoc data retrieval .

A table in a DBMS can be created through a Data Definition Language (DDL) command and a software wizard. Using DDL, one would use the CREATE TABLE command to specify the table structure, including column names and data types, such as 'CREATE TABLE Students (ID INT, Name VARCHAR(50), Age INT)'. Alternatively, using a wizard in software like OpenOffice Base involves a graphical interface that guides the user through steps to define table fields and properties interactively without writing SQL code. Both methods achieve the same end result but cater to different user preferences for manual or guided processes .

Forms offer a user-friendly interface for data manipulation compared to direct table edits, which can be less intuitive and error-prone. They enable users to interact with data through customized layouts that guide inputs and provide validation controls, reducing the likelihood of data entry errors. Forms can also incorporate elements like dropdowns and checkboxes, simplifying complex data entry tasks. Additionally, forms help maintain data integrity by enforcing rules and constraints during data entry, thus providing a safer and more controlled environment for database interactions .

Referential integrity ensures the accuracy and consistency of data within relationships in a database. It enforces a rule that a Foreign Key can either be null or must match primary key values in the related table. For example, consider a Student table with a primary key 'Admno', and a Teacher table with 'Admno' as a Foreign Key. Referential integrity ensures that each 'Admno' value in the Teacher table matches an existing 'Admno' in the Student table, preventing orphan records and preserving data integrity across tables .

Data Manipulation Language (DML) in databases is responsible for accessing and altering data within existing tables. It enables users to perform operations such as data retrieval, insertion, modification, and deletion. The primary DML commands are: SELECT, which retrieves data from a database; INSERT, used to add new records into a table; UPDATE, which modifies existing record values; and DELETE, which removes records. These commands facilitate data handling and are critical for dynamic interactions with database tables .

Relational databases support three primary types of relationships: One-to-One, One-to-Many, and Many-to-Many. In a One-to-One relationship, each row in one table is linked to a single row in another table, such as a user table where each user has a unique profile row. A One-to-Many relationship involves a single row in one table linked to multiple rows in another, like a customer table linked to multiple orders in an orders table. Lastly, a Many-to-Many relationship requires an intermediary table to associate multiple rows from two tables, such as students and courses where each student can enroll in multiple courses and vice versa .

Forms and reports serve different purposes in a database system. Forms are interactive interfaces used to facilitate user data entry, modification, and retrieval; they enable users to input or change data directly into database tables using elements like text boxes and labels. In contrast, reports are designed to present data in a static, formatted manner, often summarizing or aggregating information to be printed or shared; they do not allow data modification. While forms are utilized for data entry and manipulation, reports are primarily used for viewing and presenting data outputs .

The WHERE clause in SQL is used to filter records based on specified conditions, returning only the rows that satisfy those conditions. For instance, 'SELECT * FROM Employees WHERE Age > 30' retrieves records where employees' age is greater than 30. On the other hand, the ORDER BY clause sorts the result set of an SQL query in either ascending or descending order. For example, 'SELECT * FROM Employees ORDER BY Age ASC' fetches all employee records sorted by age in ascending order. These clauses serve distinct purposes: WHERE filters records based on criteria, while ORDER BY organizes them in a specified sequence .

You might also like