Professional Documents
Culture Documents
6
Information Technology
6. BASIC DATABASE CONCEPTS
7
Information Technology
6. BASIC DATABASE CONCEPTS
8
Information Technology
6. BASIC DATABASE CONCEPTS
9
Information Technology
6. BASIC DATABASE CONCEPTS
29. The ____________ DML command is used to make changes in the records
a) Insert b) Update c) Delete d) Create
30. The ___________ DML command is used to delete one or more records.
a) Insert b) Update c) Delete d) Create
Q4. Multiple Choice Questions (Two Correct Answers)
1. ____________ are the parts of database.
a) Field b) dates c) record d) private Key e) Table
2. ____________ are used to create database.
a) MS-Access b) excel c) ASP d) SQL e) word
3. ____________ are database objects.
a) open b) design c) forms d) table e) close
4. In Access, _____________ following are the attributes of fields.
a) color b) alignment c) default value d) field Size e) design
5. To create a table ____________ components are a necessary requirement.
A) description b) data type c) alignment d) field name e) alignment
6. _____________ and ___________ keys are used in Relational Database Management System.
a) secondary b) primary c) foreign d) selected e) storage
7. Features of database are:
a) quick data analysis b) direct multiple sorting c) easy to add or delete record
d) difficult to update record e) difficult to modify record
8. Tables can be related in following ways ___________.
a) Many to Many b) one to One c) One to None
b) One to More e) Many to one
9. The most popular RDBMS are ________.
a) MS SQL server b) MYSQL c) FoxPro
d) Access e) Word
10. Following are the SQL commands:
a) DDL b) DML c) DLL d) DLD e) DLM
11. The SQL statements used are ____________.
a) modify b) update c) select d) add e) min
12. The SQL statements used are:
a) modify b) update c) select d) add e) create
13. Correct statements about SQL:
a) it can be used with multiuser system b) it has limitation to store number of fields
c) it stands for structured question language d) it has higher capacity to store data as compare to MS-Access
14. DMBS has several compilers:
a) DDL Complier b) DLL Complier c) DCL Compiler d) DLC complier e) LDL compiler
15. The most fundamental DDL includes ______________.
a) Create Table b) Alter Table c) Insert Table d) Delete Table e) Modify table
16. Transaction Control Commands are:
a) Alter b) Insert c) Commit d) Rollback e) create
10
Information Technology
6. BASIC DATABASE CONCEPTS
11
1. Define Data, Information, Database, Record, Field and Tables
1. Data : Data is collection of facts in unorganized manner.
For example : collection of personal information.
2. Information : The processed data is called information. Data is processed to results.
3. Database
a) A collection of a data fundamental to system.
b) An organized collection of related data, grouped together as a single item, stored in the
form of table in a file is a database.
c) A collection of data with a given structure for accepting, storing and providing demand
to multiple users
4. Record: A collection of related fields becomes record. Rows in database table are called
records.
eg. person Id, phone no. etc.
5. Field : A piece of information about a record is known as field. Fields are columns in a table.
6. Tables : A table is a collection of related data or records. Each table column represents a
field and each row represents a record. Access tables are not stored in separate files but are
all included in Access MDB file
2. What is Access?
1. Microsoft Access is a full-featured Relational Database Management System (RDBMS) which
can be used to create and modify database tables, data entry forms, reports and queries
2. In Access, database is a collection of data where data is organized into table consisting of
columns (called fields) and rows (called records)
3. The data stored in each column must be of single data type.
4. Different tables can have the same columns in common. This denotes the relationship among
two tables
5. Each table must have a special column called the key that is used to uniquely identify records
in table.
3. What are the advantages of database applications ?
A database application program has following advantages:
1. Quick search for a specific record.
2. Easy to add or delete a record.
3. Edit facility to update fields of a record.
4. Sorting of records according to different fields.
5. More tables having relations can provide adequate information for required task.
6. Quick data analysis.
7. Selection of records for specific criteria i.e. query
8. Report generation of very good quality.
9. Validation.
10. Elimination of duplicate records.
4. Explain following terms
a) Data Interface Language:
Data Definition Language (DDLJ- Data Definition Language defines conceptual and internal
schema.
Data Manipulation Language (DML)- Data Manipulation Language is used for retrieval,
insertion, deletion and modification of data.
Data Control Language- The Data Control Language (DCL) is a subset of the Structured
Query Language (SQL) that allows database administrators to configure security access to
relational databases.
b) Database Manager:
A database manager (DB manager) is a computer program, or a set of computer programs that
provide basic database management functionalities including creation and maintenance of
databases. Database managers have several capabilities including the ability to back up
and restore, attach and detach, create, clone, delete and rename the databases.
c) File Manager.-
File Manager interacts with the secondary storage to change or to retrieve data from files
DBMS uses file manager which is ported.
d) Compliers and optimizers
DBMS has many compliers to translate the specification and programs into internal structure
The Compliers are:-
DDL Complier
DML Complier
Query Processor
DCL Complier
DBMS have optimizers that convert the queries of DML codes into efficient programs as the
query may access a huge volume of data its execution time may be large. Query optimization
leads to a reduction in the processing time.
5. Explain RDBMS?
1. RDBMS stands for Relational Database Management System
2. RDBMS data is structured in database tables, fields and records
3. Each RDBMS table consists of database table rows. Each database table row consists of one
or more database table fields.
4. RDBMS store the data into collection of tables, which might be related by common fields
(database table columns)
5. RDBMS also provide relational operators to manipulate the data stored into the database
tables. Most RDBMS use SQL as database query language.
6. E.F Codd introduced the relational database model. Many modern DBMS do not conform to
the Codd's definition of a RDBMS, but nonetheless they are still considered to be RDBMS.
7. The most popular RDBMS are MS SQL Server, DB2, Oracle and MySQL.
6. Explain Database Administrators?
Database Administrator (DBA)
1. The people responsible for managing databases are called database administrators.
2. Each database administrator, dubbed DBA for the sake of brevity, may be engaged in
performing various database manipulation tasks such as archiving, testing, running,
security control etc., all related to the environmental side of the databases
3. Their job is very important, since in today's world, almost all of the information a company
uses is kept in databases.
4. Due to the fact that most databases use a different approach to storing and handling data,
there are different types of DBAs. Most of the major vendors who provide database
solutions also offer courses to certify the DBA
Functions of DBA
1. Defining of database schema
2. Specification of data dependency and verifying.
3. Definition of physical storage organization of actual data in a disk
4. Creating and testing backups.
7. What is an SQL? Explain the need of SQL
1. SQL stands for Structured Query Language.
2. It is a language that enables user to create and operate on relational databases, which are sets
related information stored in tables.
3. The commands in SQL can operate on entire groups of tables as single object and can treat any
quantity of information derived from them as a single unit
Need of SQL
1. SQL is needed to manage relatively large number of database records
2. SQL is used for high production data entry – environments
3. SQL consists of:
Data Definition Language (DDL)
Data Manipulation Language(DML) and
Data Control Language (DCL)
4. It eliminates redundant data from output automatically
5. User can reorder the columns of the tables or can eliminate them.
6. User can define a condition called predicates, which gives great precision in controlling which
rows are selected by a query
7. SQL deals with missing data by means of special operators like Null.
8. It also provides locks for accessing the data from the table to the users.
8. Explain features of SQL?
Features of SQL are:
1. Supports most administrative tasks for SQL Server.
2. A single, integrated environment for SQL Server Database Engine management and authoring.
3. Dialogs for managing objects in the SQL Server Database Engine, Analysis Services, and
Reporting Services, that allows you to execute your actions immediately, send them to a Code
Editor, or script them for later execution.
4. Non-modal and resizable dialogs allow access to multiple tools while a dialog is open.
5. A common scheduling dialog that allows you to perform action of the management dialogs at a
later time.
6. Exporting and importing SQL Server Management Studio server registration from one
Management Studio environment to another.
7. Integrated Database Mail interfaces.
9. What are the advantages of SQL over ACCESS?
Following are the advantages of SQL over ACCESS:
1. SQL uses client-server architecture.
2. SQL can be used with multiuser computer system.
3. It can be used to extract highly specific information from a table, for a particular condition and
giving ordered list, within a single command.
4. It provides security for the created tables structure.
5. SQL support to procedures and user defined functions.
6. SQL enables any number of users to access the data, but not to change it, by placing share locks.
7. Exclusive locks allow no one but the owner of the lock to access the data at all.
8. SQL can efficiently process high volumes of critical data as compared to MS-Access.
9. SQL server can be restored to the point of failure.
10. Write limitations of ACCESS
1. ACCESS may not display all fields if the total number exceeds 200 fields.
2. Accessing a database in Access through a webpage user need to make use of Structure
Query Language (SQL).
3. ACCESS is slowest database.
4. It is designed for single user system.
5. It can not be used while accessing server database.
6. ACCESS cannot support as a developer tool.
11. Explain the basic categories of commands used in SQL?
a) DML
DML is abbreviation of Data Manipulation Language. It is used to retrieve, store, modify, delete,
insert and update data in database.
Examples: SELECT, UPDATE, INSERT statements
b) DDL
DDL is abbreviation of Data Definition Language. It is used to create and modify the structure of
database objects in database. Examples: CREATE, ALTER, DROP statements
c) DCL
DCL is abbreviation of Data Control Language. It is used to create roles, permissions, and
referential integrity as well it is used to control access to database by securing it.
Examples: GRANT, REVOKE statements
d) TCL
TCL is abbreviation of Transactional Control Language. It is used to manage different
transactions occurring within a database.
Examples: COMMIT, ROLLBACK statements
12. Explain TYPES OF QUERTES?
a) SELECT - Select query is used to retrieve (extract or display) records from table.
Syntax:- select fieldnames / * (all fields) from tablename
For eg: Select from products
Explanation:- This query will display all the columns and records of table.
b) INSERT: - Insert query is used to insert a new record in the table
Syntax: Insert into tablename (fieldnames) values (values).
For eg:- Insert into products (prodname, qty, rate)
c) DELETE: - Delete the existing record from the table.
Syntax:- Delete from tablename where condition.
For eg:- Delete from products where product name= “Tea”
d) UPDATE:- Update query is used to modify the existing record.
Syntax:- Update Tablename
Set fieldname= value
For eg:- Update products
Set rate 175
Where product name = “Tea”
13. Distinguish between Spread sheet & Database
Spreadsheet:-
a) A spreadsheet is an application for tabulating data
b) A spreadsheet stores less data as compared to database
c) The Data is stored in client machine
d) No control is needed over duplicate entries.
e) Only one user needs to access and change data at a given time
Database
a) A database is an application where data is stored so that it can be retrieved by user
b) A database stores more data than the database
c) The Data is stored on the web server
d) Control is needed over duplicate entries.
e) Multiple users may need to access and change data at a given time