Database Management Skills
INFORMATION TECHNOLOGY
SKILL COURSE
SUBJECT CODE- 402
PART-B Subject Specific Skills
Unit-3 Database Management Skills
- Database organizes data in the form of tables so that it's easier to make manipulations in the data. A table is made up of rows and columns.
DATABASE OBJECTS
- TABLE: A table stores data in a structured format in the form of rows and columns.
2) Fields: A column in database is referred as a field. A field consists of the specific information related to the particular category.
- QUERIES: It is used to ask question and retrieve data from the database according to specific criteria.
- FORMS: It has an attractive interface that accepts data from the user. It is used to update any record in table or query at a time.
- REPORTS: It is used to display the data in printable format.
- A database is used by developers, administrators and end users.
- DBMS is a computerized software that helps in maintaining records of the data and enables to create, edit, modify and present data in a structured format. It can be further divided into two types:
b) Relational Database: It is used to maintain huge amount of data as it stores the information in multiple tables by establishing links between them.
ADVANTAGES OF DBMS
- Data Standards: A database always holds data in a structured format i.e. in the format of date, time, etc.
- Data Availability: User have an access to the database anytime and anywhere.
- Reduced Data Redundancy: Data redundancy occurs when same piece of information is duplicated unnecessarily multiple number of times. DBMS helps in preventing this.
- Prevents Data Inconsistency: Data inconsistency occurs when same data is present in different formats in multiple tables. DBMS takes care of this too.
- Helps in maintaining Data Integrity: Data integrity refers to maintaining and assuring the accuracy and consistency of the data.
7. Takes care of Data security: DBMS provides with the facility of granting specific permission to the specific employees preventing loss of data to unauthorized user access.
8. Backup and Recovery Management: There are various strategies and procedures that prevents any loss of data.KEYS
- PRIMARY KEY: A primary key is a field that uniquely defines a record in the table.
- COMPOSITE KEY: A composite key or composite primary key refers to the combination of two or more fields that together define the record uniquely in the table.
- FOREIGN KEY: A foreign key is a field that is used to set relation between two or more tables.
- CANDIDATE KEY: A candidate key is used to refer to the fields that are eligible of becoming a primary key.
INTERFACE OF MS ACCESS
- Using Design View
- Using Datasheet View
PERFORMING OPERATIONS ON TABLES
- Inserting Data in table
- Editing Records in table
- Deleting Records in table
- Sorting Data in table
Inserting Data in Table |
Sorting the Data in Table |
REFERENTIAL INTEGRITY
Referential Integrity is a rule in DBMS that prevents data inconsistency. It helps in establishing link between two or more tables and fetching data. It stated that a foreign key must have a matching primary key and prevents the user from accidently making any changes that may lead to data inconsistency.
RELATIONSHIPS
- One-to-One: In this type of relationship, a record in a table can have only one matching record in the other table or vice-versa.
- One-to-Many: In this type of relationship, a record in a table is related to many records in the other table.
- Many-to-Many: In this type of relationship, multiple records in a table are associated with several records in the other table.
CREATING QUERY
- Using Query Wizard
- Using Query Design
PERFORMING OPERATIONS ON QUERY
- Saving the query
- Editing the query
- Specifying the query
- Performing Calculations
- Using functions in queries
- Grouping Data
SPECIFYING THE QUERY
- Criteria for single field
- Criteria for multiple fields
- Criteria using wildcards: Wildcards are special character that are used substitutes for one or more characters in a string. These are helpful for locating multiple items based on a specified pattern, making the search operation easy.
Structured Query Language (SQL) is the language in RDBMS for writing queries. Using SQL, a user can create queries to fetch and manipulate the data of the database.
The SQL commands are of two types:
- DATA DEFINITION LANGUAGE (DDL): These commands are used to define and modify the structure of a database. The commands that fall under this are:
1) Create 2) Alter 3) Drop 4) Truncate 5) Rename
- DATA MANIPULATION LANGUAGE (DML): These commands are used for editing or modifying the data in the database.
1) Select 2) Insert 3) Update 4) Delete
COMMONLY USED SQL COMMANDS
1) CREATE COMMAND:
Create Table Table_name (
Field_name1 Data type,
Field_name2 Data type,
Field_name3 Data type,...);
Insert into Table_Name (
Field1, Field2, Field3,...)
Values (Value1, Value2, Value3,...);
To select all the records: Select*from Table_name;
To select specific fields: Select column1, column2,.. from Table_name;
Using 'where' clause: Select column1, column2,.. from Table_name;
Using 'order by' clause: Select column1, column2,.. from Table_name order by condition;
4) UPDATE COMMAND:
Update Table_Name
Set column1=value1, column2=value2,...
where condition;
Delete from Table_Name
where condition;
Drop Table Table_Name;
FORMS
A form in an attractive interface that accepts data from the user. It allows you to add or update one record at a time. A form can have a different or same name as the table. Access provides with three main views to display the form.
- Form View: This view is used to enter or edit data.
- Design View: This view is used to adjust the design of your form.
- Layout View: This view is used to change the look and feel of the form.
Create tab > Forms Group > Form Wizard
PERFORMING OPERATIONS ON FORM
- Entering or Removing data in forms
- Searching records in form
- Modifying forms:
2) Changing background color of form
REPORTS
A reports is a summary of the database. It is an effective way to organize and summarize the data for viewing and printing. Reports also provides the facility to group and sort the items, thus making it much more readable.
A report can be created using Report wizard.
Create tab > Reports Group > Report Wizard
REPORTS SECTION
- Report Header
- Page Header
- Detail
- Page Footer
- Report Footer
Comments
Post a Comment