Database Management System Flashcards
What is Database?
A database is an organised collection of data that can be visualised as a container of information.
What are the advantages of Database?
Advantages of Database are:
i) Reduction in Data redundancy
ii)Reduction in Data inconsistency
iii)Sharing of Data
iv)Enforcement of Data standards
v)ensures data security
vi)data integrity
vii)interactive interface
What are the features of Database?
Features of Database are:
i. there can be more than one table in a database
ii.the information is stored in tables in a database relate to one specific topic. each database contains information about 1 type of item.
iii. data can be simultaneously be accessed by many users.
iv. database offers data protection and features like recovery and backup.
v.it allows the user to view the data in different formats
vi.records unique number or letter in each table, chances of duplication of data is avoided
What is Database Management System (DBMS)?
Database Management Systems (DBMS): A software application used to create, manage, maintain and retrieve the data stored in databases.
What can one find and do in DBMS?
DBMS is used to build the database and manage database in a software.
i. adding new records
ii.editing changing/modifying existing data.
iii.deleting data
iv.sorting data
v.extracting data based on queries
vi.updating and manipulating data item
vii. viewing data and generating reports.
viii.performing calculations.
What are the elements of database
Elements of database:
i. table: set of data elements stored in verticals and horizontal fields and records
ii. field: set of data values
iii. records: set of items stored in tables
How many types of data can be organised in DBMS?
Data can be stored in 2 files
I. flat file: data stored in single tables.
II. relational: data is stored in multiple tables and tables are linked using a common field.
What the objects in Database?
Database objects:
i) tables: basic element of data kept in columns and rows
ii) queries: generate some information from the table
iii) forms: provide an interface in user specified layout which lets the user to view the data or enter new data .
iv) reports: report displays the information in a format as per user’s need.
What is Relational Database?
Relational Database are collection of multiple tables, rows and columns
RDBMS Element keys
Primary Key
Composite Key
Key Field
Foreign Key
What is the common field?
KEY FIELD
What is the key that is used to uniquely identify records (rows) in database and is only 1?
Primary key
What is the key that is a combination of two or more fields (columns) that can uniquely identify or retrieve records?
Composite Key
What can Foreign key do?
allows tables to relate and link through a field which is common in both the tables.
what are the data types in database
- Numeric
2.Alphanumeric
3.Binary - Date Time
Example of Binary data type in DB
LONGVARBINARY
&
BINARY
What data type does ‘VARCHAR’ and ‘MEMO’ come under?
Alphanumeric data type
Give example of Numeric data type
BOOLEAN, DECIMAL, NUMBER, INTEGER
Which data type falls under Date Time?
Date/ Time
what should be the first step to add primary key relationship to 2 Tables?
Click on ‘create view from task bar’
add tables from ‘Add Tables’
how do you edit records
By double clicking on it
which option should you choose to change field property?
Edit Option
what is the default length of a field
10
what is the purpose for ‘Entry Required’?
any value to be entered in a field cannot be ;eft empty.
what does referential integrity help us to avoid?
Referential integrity helps to avoid:
Adding records to a related table if there is no associated record available in the
primary key table.
Changing values in a primary if any dependent records are present in associated
table(s).
Deleting records from a primary key table if there are any matching related records
available in associated table(s).
how to set relationship between 2 tables the easy way?
From Tools menu you ca select ‘Relationship’ and then add two tables by clicking the ‘Add’ button.
How many relationships can be created in TABLES?
3 relationships
In which relationship of the tables can 1 table be joined with 1 other table? Both must have primary key
One to One relationship
In which relationship of tables can 1 tables be joined with more than 1 table? only 1 can have a primary key
One to Many Relationship
what is many to many relationship?
Does it have primary key in any table
all columns of primary key table are associated with all columns of associated table.
No, it has no primary key
File extension for database in openoffice
.obd
three file formats in database
.odf
.obd
.ods