





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
is a software package that can be used for creating and managing databases. 3. A Relational Database Management System (RDBMS) is a database management system ...
Typology: Lecture notes
1 / 9
This page cannot be seen from the preview
Don't miss anything!






(^1) A database is an organized collection of data. (^2) A database management system is a software package with computer programs that controls the creation, maintenance, and use of a database. It allows organizations to conveniently develop databases for various applications. A database is an integrated collection of data records, files, and other objects. A DBMS allows different user application programs to concurrently access the same database. (^3) Well known DBMSs include Oracle, IBM DB2, Microsoft SQL Server, Microsoft Access, PostgreSQL, MySQL, FoxPro, and SQLite. (^4) Data can be organized into two types:
A database can have one or many tables. Each table in a database contains information about one type of item. record uniqueness Uniqueness helps to avoid accidental duplication of records caused by user or computer error. This unique field is called the Primary Key (PK). A primary key is a unique value that identifies a row in a table. Every database table should have one or more fields designated as key. (^8) When primary key constraint is applied on one or more columns then it is known as Composite Primary Key.
(^9) The foreign key identifies a column or set of columns in one (referencing) table that refers to a column or set of columns in another (referenced) table. (^10) A relational database is a type of database. It uses a structure that allows us to identify and access data in relation to another piece of data in the database. Often, data in a relational database is organized into tables. (^11) Fill in the blanks:
Binary data types in a database can be using for storing photos, music files, etc. DATE TIME: Date time data types are used for describing date and time values for the field used in the table of a database. (^20) ASSESSMENT Fill in the blanks:
Tuples are horizontal Attributes are vertical
4.What do you mean by Sorting? In how many ways it can be done? Ans Sorting is arranging the records in either ascending or descending order. It can be done in two ways either ascending or descending 5.Explain Referential Integrity with the help of an example. Ans Referential integrity is used to maintain the integrity of data based on the primary key of another table. Example: if there are two tables student with fields schoolno, name, class, section and result with fields resno, schoolno, exam, subject, marks then the field schoolno in result can become a foreign key with relation to the table students schoolno field. Hence the schoolno field in result can contain only those values which exist in the student table (^33) Query is to collect specific information from the pool of data. A query helps us join information from different tables and filter that information. (^34) Filtering means that the query uses criteria you provide to hide some data and present only what you want to see. (^35) Some RDBMS provide a graphical means to create queries, but most RDBMS do not do so. That’s where you use SQL (pronounced as “sequel”) or Structured Query Language. (^36) Query languages are computer languages used to make queries into databases and information systems. Queries are commands that are used to define the data structure and also to manipulate the data in the database. (^37) A SELECT statement retrieves zero or more rows from one or more database tables or database views. In most applications, SELECT is the most commonly used Data Manipulation Language(DML) command. (^38) To retrieve all the columns in a table the syntax is: SELECT * FROM