You are on page 1of 24


A database is a collection of information that's related. Access allow you to manage your information in one database file. Within Access there are four major areas: Tables, Queries, Forms and Reports • Tables store your data in your database • Queries ask questions about information stored in your tables • Forms allow you to view data stored in your tables • Reports allow you to print data based on queries/tables that you have created Microsoft Access, also known as Microsoft Office Access, is a database management system from Microsoft that combines the relational Microsoft Jet Database Engine with a graphical user interface and software-development tools. It is a member of the Microsoft Office suite of applications, included in the Professional and higher editions or sold separately. On May 12, 2010, the current version of Microsoft Access 2010 was released by Microsoft in Office 2010; Microsoft Office Access 2007 was the prior version. Microsoft Access provides users with one of the simplest and most flexible DBMS solutions on the market today. Regular users of Microsoft products will enjoy the familiar Windows "look and feel" as well as the tight integration with other Microsoft Office family products. An abundance of wizards lessen the complexity of administrative tasks and the ever-present Microsoft Office Helper (you know… the paper clip!) is available for those who care to use it.

such as sales transactions. Once you click on it. managed. Creating the database file. A distributed database is one that can be dispersed or replicated among different points in a network. Computer databases typically contain aggregations of data records or files. . and customer profiles. 4. a new dialog window will open asking for the location to store you first Access database. In computing. a tabular database in which data is defined so that it can be reorganized and accessed in a number of different ways. On the new tab on the right. Open Microsoft Access -Start -> Programs -> Microsoft Office -> Microsoft Access. give it any file name (maybe "AIRLINE MANAGEMNET SYSTEM") and click "Create". 3. The most prevalent approach is the relational database.DEFINE DATABASE AND LIST STEPS TO CREATE A DATABASE A database is an application that manages data and allows fast storage and retrieval of that data. An object-oriented programming database is one that is congruent with the data defined in object classes and subclasses.. product catalogs and inventories. 1. In this new window. and updated.". select "Blank database. databases are sometimes classified according to their organizational approach. 2. A database is a collection of information that is organized so that it can easily be accessed. Click on File -> New. select any location..

it can prevent us from accidentally entering an email address into a field for storing the current date. as well as specifying any other restrictions you'd like to enforce.CREATE A DATABASE FOR AIRLINE MANAGEMENT SYSTEM Show steps to create one table using design (using snapshots) 1) Open Microsoft on blank database and save it in the appropriate folder 2) Design view enables you to create the names of each column.. specify the type of data that can go into each column. . For example. Restricting the data type for each column is very important and helps maintain data integrity.

You should see something like this: . you can switch to "datasheet view" to see the resulting table.More parameters can be added against each column if you require them 3) Once you've created your table in "design view".

Following are the snapshots for other tables in datasheet view International departure Domestic arrival .

Domestic departure RELATIONSHIP AMONG THE TABLES  International arrivals  International departures  Domestic arrivals  Domestic departures .

then a filtered datasheet view of the result will appear .open the sql view and type the command “ WHERE NOP >100” and using the design tab click on RUN option.CREATE THE FOLLOWING QUERIES A "query" refers to the action of retrieving data from your database List the name of fl ight carrying more than 100 passengers 1. the filed name etc. 2. Click on create tab and then further click on create query design. click Options. and then click OK. In the Microsoft Office Security Options dialog box. On the Message Bar.a box will apear showing the table select the tables and drag the appropriate fiels to the bottom option ... click Enable this content.







and then click Form Wizard. click More Forms. STEPS OF CREATING A FORM USING FORM WIZARD 1. Then click Next or Finish to continue. edit. . On the Create tab. click Finish. well-designed forms is essential for efficiency and data entry accuracy. On the last page of the wizard. in the Forms group. The Form Wizard can create a variety of results depending on the options that you select. until you get the results that you want. As a result. If you database is going to be used by multiple users. Follow the directions on the pages of the Form Wizard.INTRODUCTION OF FORM OBJECT Forms are like display cases in stores that make it easier to view or get the items that you want. or display the data stored in your Access database. the design of your form is an important aspect. 3. we recommend that you run the wizard several times. experimenting with different options each time. 2. Since forms are objects through which you or other users can add.

we divide the database into tables can and establish be relationships defined as between the the practice tables. it also eliminates redundancy and increases the integrity which improves performance of the query.DEFINE NORMALIZATION AND ITS TYPES Normalization is the process of organizing data into a related table. of Database normalization essentially . To normalize a database.

Identify each set of related data with a primary key.24 1042. after the third. after the second.53 .Optimization is accomplished as a result of a thorough investigation of the various pieces of data that will be stored within the database. Normalization is a Six stage process . Example: Order 1 2 3 4 Customer Rishabh Preeti Rishabh Rishabh Contact Person Manish Rohan Manish Manish Total 134. First Normal Form (1st NF) In 1st NF:    The table cells must be of single value. it is in third normal form and so on.42 928.23 521. in particular concentrating upon how this data is interrelated. it is in second normal form. In 1NF relation the order of tuples (rows) and attributes (columns) does not matter.optimizingtablestructures.After the first stage. Create a separate table for each set of related data. the data is said to be in first normal form. Eliminate repeating groups in individual tables.

Example: The following relation is not in Second Normal Form: Order 1 2 3 4 Customer Rishabh Preeti Rishabh Rishabh Contact Person Manish Rohan Manish Manish Total 134.42 928. Conceptually it is convenient to have all the information in one relation since it is then likely to be easier to query the database.The above relation satisfies the properties of a relation and is said to be in first normal form (or 1NF).24 1042. Second Normal Form (2nd NF) In 2nd NF:     Remove Partial Dependencies. Definition: A relation is in 2NF if it is in 1NF and every non-key attribute is fully dependent on each candidate key of the relation. Create separate table with the functionally dependent data and the part of the key on which it depends. the order number serves as the primary key.53 In the table above. Notice that the customer and total . Partial Dependency: A type of functional dependency where an attribute is functionally dependent on only part of the primary key (primary key must be a composite key). Functional Dependency: The value of one attribute in a table is determined entirely by the value of another.23 521. Tables created at this step will usually contain descriptions of resources.

24 1042. . The second table only includes the information unique to each order. Someone interested in the contact person for each order could obtain this information by performing a Join Operation. contact person is dependent upon the primary key -. the contact person is dependent upon the customer.42 928. An alternative way to accomplish this would be to create two tables: Customer Rishabh Preeti Contact Person Manish Rohan Order Customer 1 2 3 4 Rishabh Preeti Rishabh Rishabh Total 134. In the first table.this data is specific to each order. Third Normal Form (3rd NF) In 3rd NF:   Remove transitive dependencies.customer name. Transitive Dependency A type of functional dependency where an attribute is functionally dependent on an attribute other than the primary key. However.23 521. Thus its value is only indirectly determined by the primary key.amount are dependent upon the order number -.53 The creation of two separate tables eliminates the dependency problem.

 Create a separate table containing the attribute and the fields that are functionally dependent on it. BCNF is based on the concept of a determinant.e.  Boyce-Codd Normal Form (BCNF) In BCNF:       When a relation has more than one candidate key. Many:many relationships are resolved independently. An entity is in Fourth Normal Form (4NF) when it meets the requirement of being in Third Normal Form (3NF) and additionally:  Has no multiple sets of multi-valued dependencies. Keep a copy of the key attribute in the original file. In other words. 4NF states that no entity can have more than a single one-to-many relationship within an entity if the one-to-many attributes are independent of each other. composite candidate keys with at least one attribute in common. 3NF does not deal satisfactorily with the case of a relation with overlapping candidate keys i.  Fourth Normal Form (4th NF) In 4th NF: An entity is in Fourth Normal Form (4NF) when it meets the requirement of being in Third Normal Form (3NF) and additionally:  Has no multiple sets of multi-valued dependencies. anomalies may result even though the relation is in 3NF. Tables created at this step will usually contain descriptions of either resources or agents. A determinant is any attribute (simple or composite) on which some other attribute is fully functionally dependent. A relation is in BCNF is. In other words. every determinant is a candidate keyA relation is in Boyce-Codd Normal Form (BCNF) if every determinant is a candidate key. and only if.  A relation is in third normal form. if it is in 2NF and every non-key attribute of the relation is non-transitively dependent on each candidate key of the relation. . 4NF states that no entity can have more than a single one-to-many relationship within an entity if the one-to-many attributes are independent of each other.

A 5NF table should have only candidate keys and it's primary key should consist of only a single column. Take an example of Employee Table info(Employee. Skills.e. Hobbies) Employee 1 1 1 1 2 2 2 2 Skills Programming Programming Analysis Analysis Analysis Analysis Management Management Hobbies Golf Bowling Golf Bowling Golf Gardening Golf Gardening In 5th NF:    A relation that has a join dependency cannot be decomposed by a projection into other relations without spurious results A relation is in 5NF when its information content cannot be reconstructed from several smaller relations i. 5NF states that any fact should be able to be reconstructed without any anomalous results in any case. Fourth Normal Form applies to situations involving many-to-many relationship Definition: A table is in fourth normal form (4NF) if and only if it is in BCNF and contains no more than one multi-valued dependency. from relations having fewer attributes than the original relation Definition: A table is in fifth normal form (5NF) or Project-Join Normal Form (PJNF) if it is in 4NF and it cannot have a lossless decomposition into any number of smaller tables. Fifth normal form. states that no nontrivial join dependencies exist. regardless of the number of tables being joined. Example: . also known as join-projection normal form (JPNF).

Archive snapshots of the data. you can create a simple report of phone numbers for all your contacts. select the table or query in the Navigation Pane.Take an example of a buying table. Create labels. Step 1: Choose a record if the data is from an existing table or query. For example. what they buy. . format. Reports offer a way to view. and from whom they buy. If a wizard appears. Provide details about individual records. or a summary report on the total sales across different regions and time periods. follow the steps in the wizard and click Finish on the last page. Take the following sample data: Buyer Shalley Mary Shalley Mary Shalley Vendor Kashmir House Kashmir House Radhika Sarees Radhika Sarees Radhika Sarees Item Jeans Jeans Saree Saree Suit USE OF REPORT IN DBMS AND STEPS TO CREATE A REPORT A report is a database object that comes in handy when you want to present the information in your database for any of the following uses:     Display or distribute a summary of data. Access displays the report in Layout view. This is used to track buyers. and then continue 2 open the create tab and Click the button for the tool you want to use. and summarize the information in your Microsoft Access database.

Primary key: The primary key is a attribute of a relational table uniquely identifies the each tuple of a table or each record in the table. There are many keys: 1.CONCEPT OF : A database key is a attribute utilized to sort and identify data in some manner. It can either be a normal attribute .

2. B. Alternate key and Composite key: Any number of attributes that are uniquely identifying a row in a table is “candidate key” for the table. The key which uniquely identify the rows of the table and which is made up of more than one attribute is called “composite key”. C and D are alternate key. 3. we add a new column to the Employees table called Department. We then fill in the name of the department to which each employee belongs. Natural relationships exist between tables in most database structures. Candidate key. Example: Let’s assume that the Departments table uses the Department Name column as the primary key. So A. So A. We also inform the database management system that the Department column in the Employees table is a foreign key that references the Departments table. We select one of the candidate key as Primary key. Such as Social Security Number in a table with no more than one record per person. as there is always the chance that more than one employee might have the same name. Foreign Key: These keys are used to create relationships between tables. When two students of class work together in a project then they are composite key for the class. So A. Examples: Imagine we have a employees table that contains a record for each employee at a organization. For Example: In a class we have to select Class Representative. C and D stand for that post. . The employee's unique employee ID number would be a good choice for a primary key in the employees table. C and D can be Class Representative but not selected as a Class Representative so they are alternative choice. The employee's first and last name would not be a good choice. All candidate keys which are not chosen as "primary key" are “Alternate keys”. B. The database will then enforce referential integrity by ensuring that all of the values in the Departments column of the Employees table have corresponding entries in the Departments table. We select B as Class Representative so B is primary key and A.that is guaranteed to be unique. To create a relationship between the two tables. C and D are candidate for Class Representative so these are candidate key.