An Overview of Database Management System

Size: px
Start display at page:

Download "An Overview of Database Management System"

Transcription

1 q E An Overview of Database Management System Components of an Information System One of the most important functions of any computer system is to provide powerful tool for management of Information System of an organization, in which raw data (Transactions as inputs) is processed to produce meaningful information (Reports as output for different levels of management). The processed data is stored in the form of data files usually referred as Databank. This databank becomes one of the sources of knowledge management required for decision support for monitoring various activities as well as strategic planning etc. Thus components of an Information system can be categorized as follows: Transactions Processing System for processing raw data Management Reporting System to provide relevant reports to various levels of management Decision Support System for management activities like, monitoring & control, decision support and strategic planning etc. Executive Information Systems for senior executives In the real world environment, Information flow in the organization is horizontal (between various applications) as well as vertical (across hierarchically organized departments / branches etc). Thus in an organization, Information System can be designed at different levels as follows: Individual Applications Level Department Level Organization Level Intra-organization Level Training Division, NIC, New Delhi 1

2 Efficiency & effectiveness of any Information System very much depends upon the organization of data files in a data bank, and the procedures adopted for data management In this chapter basics of data management will be covered. E Conventional Approach for Data Management Conventionally, for each transaction processing application, separate databanks are created, and the data is stored as sequential files, thus making the process of data updating and retrieval very slow. Further, the following problems are also associated with conventional way of storing the data files: 1. Data Redundancy: Since, each application has its own data files, the other users within the department / organization can not have access to these data files. Thus for every application separate data files are maintained, even if they are common. This causes data redundancy, and wastage of storage space. 2. Data Inconsistency: Data redundancy leads to data inconsistency. Data inconsistency means discrepancy in values of data elements in same data files physically stored at different locations. 3. Data Isolation: The data files of common use, can not be made available for sharing, even if desired so. 4. Security: There can not be enforcement of centralized control on data access, as the data files are created / duplicated as per individual applications requirements. The decisions regarding storing the same data at multiple places are taken at various levels by different people, which are usually of ad hoc nature. Access controls planning becomes difficult in such situation. 5. Data Dependency : The coding in applications is very much dependent upon the data files design. Any change in design of data files (say addition of a new field, or deletion of a field) will warrant for changes to be made in the coding of application also, which uses it.. 2 Training Division, NIC, New Delhi

3 6. Lack of enforcement of standards: It is very difficult to enforce standards in data files designs, as centralized view of data files is never available. E Database Approach The Database technology allows logical grouping ( the way, the user wants to view it, as per specific needs of an application) of data files associated with different applications in such a way, that the above mentioned problems associated with conventional way of data management are minimized. A database can be defined as follows: Database is a databank, which is managed by a single agency, and it consists of inter-related files, in which data items are organized in such a way that one can have random access to data, as per specific needs of the users. Important terms associated with a database are: Field: It is the smallest unit of data, which can be stored in a database. For example, a student s name in a university s database would appear in the field named as student_name. Usually the data types in a filed are Numeric, Character string, Date, Memo, Logical, Hyperlink, Picture etc. The field is at times referred as attribute/data element / data item also. These nomenclatures can be used synonymously. Record: It is a collection of related stored fields. A student record may consist of collection of fields like Student s name, the course taken, the date of birth, contact address and the grade etc. File (Table): It is a collection of different occurrences of same type of stored record. A file is usually referred as a Table also, it describes an entity (something, about which data is to be stored). Training Division, NIC, New Delhi 3

4 Database: A logical grouping of related files would constitute a database. For example, A Student file in a database may be linked to another file say Library books issue, which keeps record of books issues to students. The two files can be linked together by a common field say Student code, which will get reflected in Student file, as well as Library books issue file. Primary Key: Every record in a file usually contains at least one field that uniquely identifies that record for the purpose of data retrieval, and updating of values of fields corresponding to a record. This identifier field is called the primary key, and it always has a unique value. Combination of more that one fields to act as identifier of a record is called Composite Primary Key. Foreign Key: For setting relationship between two tables, there should be at least one common field in two tables. Usually that common field is Primary key in one table, and it is called Foreign key in the second table. Foreign key can have repeated values also. E ö Types of Data Model (based on logical 1 data structuring) Three types of common Data Models 1. Hierarchical: The hierarchical database model rigidly structures data into an inverted tree in which each record contains two elements. The first is a single root or master field, often called a key, which identifies the type location or ordering of the record. The second is a variable number of subordinate fields, which define the rest of the data within a record. 2. Network: The network database model creates relationships among data through a linked-list structure in which subordinate records (called members) can be linked to more than one data elements (called an owner). 1 The way user wants to view it as per specific needs of the application 4 Training Division, NIC, New Delhi

5 3. Relational: The relational database model is based on the simple concept of flat tables consisting of rows and columns. In this model, a table is equivalent to a file, row is equivalent to a record, and each column is equivalent to a field. Relations between different tables can be set through common fields. ö Comparison between the Three Models Model Advantages Disadvantages Hierarchical database Searching is fast and efficient. Access to data is predefined by exclusively hierarchical relationships, predetermined by administrator. Limited search/ query flexibility. Not all data is naturally hierarchical. Network database Relational database Many more relationships between data elements can be defined. There is greater speed and efficiency than relational database models. Conceptual simplicity is its characteristic. There is no predefined relationships among data. High flexibility in ad hoc querying. New data and records can be added easily. This is the most complicated model to design, implement, and maintain. It has greater query flexibility than hierarchical model, but less than relational model. Processing efficiency and speed is lower. Data redundancy can not be eliminated completely. Training Division, NIC, New Delhi 5

6 ö Emerging Data Models 1. Relational Multidimensional Database: Used for building Data warehouse. 2. Object-Oriented: Consists of inter-related objects, similar to entities consisting of attributes, methods associated with the object, and its behavior). 3. Hypermedia: Stores chunks information in the form of nodes, for which links are established by the user, as per specific needs. 4. Geographical Information Database: Used for managing locational data for overlaying on maps and images. 5. Knowledge Database: Consists of decision rules used to evaluate situations and help users to take decisions like an expert. E Types of Database Architecture (based on physical locations of the data files and data processing) 1. Centralized: A centralized database has all the related files in one physical location. Even the processing of data is done at the centralized location. Users can have access to the database application from remote computers / terminals. 2. Stand alone: A stand alone database has all the related files and the procedures for processing the data at one physical location only. Others can not have access to the database application. 3. Distributed: Database has complete copies of a database, or portions of a database, in more than one location. In this type of setup, even the processes associated with data management are distributed in various computers over network, usually close to the user. 6 Training Division, NIC, New Delhi

7 There are two types of distributed databases: Replicated: A replicated database has complete copies of the entire database in more than one locations, primarily to alleviate the single-point-of-failure problems of a centralized database as well as to increase user access responsiveness. Partitioned: Database is subdivided, so that each location has a portion of the entire database. The divided portions of database are locally maintained and are made available to others also for retrieval and further processing etc. Client-Server: The present trend is to build Client / Server based databases, in which common use data is stored on the server computer, and local requirement data is stored on client systems. Usually, the processes at client machine, request server to provide required data. The processes at server end make the required data available at client computer for further processing. This is a typical example of distributed database. In a nutshell, database technology allows an organizational data to be processed as an integrated whole. It reduces artificiality imposed by separate files for separate applications and permits users to access data more naturally. Now let us look into the procedures associated with Database Management and the tools available to do so. Training Division, NIC, New Delhi 7

8 E ö Database Management System Introduction Between the physical database (i.e. the data actually stored on a physical media) and the users( people, who access or update data), there is a need to follow standard procedures for data manipulation (additions/deletions/updations) & data retrieval. The database application developers should be able to integrate these procedures with their application procedures, as per their specific needs. A set of such procedures is called Database Management System (DBMS). In computer terminology, DBMS is defined as a software tool, used by computers to achieve the orderly storage of data, its processing and retrieval. ö Major Functions of DBMS 1. Creation / modifications / deletion of tables, which may be physically located at one computer or different networked computers 2. Manipulation of records in tables by sorting / filtering them 3. Searching of desired records & updating / deleting them 4. Mathematical / logical operations on the values in the fields 5. Facilitates design of user interface to link and automate various modules of application 6. Processing of user queries and presentation of results in tabulated form or predesigned reports form ö Components of DBMS 1. Data Model: It defines the way, the database is conceptually designed for setting relationship between fields, records and files. 8 Training Division, NIC, New Delhi

9 2. Data Definition Language (DDL): It defines the structure of database, and the way how, each data item appears in the database. DDL provides link between logical and physical views of the database. 3. Data Manipulation Language (DML): Data Manipulation Language of DBMS has the capability to write procedures for automating various DBMS functions as mentioned above, as per user/application requirements. It can be used with any other application language (3 rd generation/4 th generation) also. 4. Structured Query Language( SQL): It is the most popular Relational Database language, which allows the user to request for required information in most natural way. It actually combines both DML & DDL features of DBMS. The syntax of SQL commands is independent of Relational database brand. 5. Data Dictionary: It stores definitions of data fields, their standard names, aliases, associated business functions, data ownership details etc. Data Dictionary helps in maintaining data consistency, enforcement of standards, avoid duplicacy. It also enables independence of applications design from database design. ö Commonly used Relational Database Management Systems Name of DBMS MS Access Oracle SQL Server UNIFY Visual Foxpro Database Architecture Stand alone / Distributed Architecture based (as Client systems only) Mainly Client Server / Centralized Architecture based; Stand alone PC version also is available Client Server / Centralized Architecture based Client Server / Centralized Architecture based Client Server / Centralized Architecture based Training Division, NIC, New Delhi 9

10 ö Database Systems: Advantages in a Nutshell 1. Better planning of corporate database 2. Enforcement of standards 3. Transparency 4. Better control of data by providing appropriate access controls 5. Problems like redundancy / inconsistency can be minimized 6. Easy enhancement of database is possible without disturbing the existing working applications. 7. Improved security 8. Enhanced data integrity 9. Reduced application development and maintenance costs 10. Better / Automated backup and recovery procedures E ö Getting Started with Database Design Conceptual Design To begin with, one needs to be clear about the Information System requirements, for which database and the procedures are to be designed. This can be done by adopting systematic technique 2 for structured analysis. The output of this process is known as System Requirements Specifications (SRS). It mainly consists of: 1. A well defined objective of database application 2. List of agencies who supply inputs 3. List of agencies / roles who receive reports 4. List of expected output reports and their layout 5. List of inputs transactions & data entry forms layout 2 Detailed explanation of this technique is beyond the scope of this document. 10 Training Division, NIC, New Delhi

11 6. List of major processes 7. Layout of User Interfaces to link various processes 8. List of entities (something that can be identified in the user s work environment and whose data should be stored in the database) 9. List of properties / attributes associated with the entities 10. Conceptual database design including the logical view of data files along with associated data elements In this section, conceptual database design only will be discussed. The conceptual database design is independent of type of type of DBMS. It is done in two stages as follows: 1. Entity Relationship Diagram The Entity Relationship (E-R) Diagram of a database is a model of the database from the user or business perspective. It identifies various entities about which data needs to be stored, and also the relationships between those entities. For example, in Library Information System, we should have two entities about which data needs to be stored in the database. These are students and the books. Since, a student can get issued more than one books at a time, and a book can be issued to many students at different issue dates, the relationship between the two entities will be represented as follows: Student M Gets issued M Books Training Division, NIC, New Delhi 11

12 2. Normalization: The next step is to list out various attributes of the entities and their relationships. There will be some common attributes, and some dependent attributes. These attributes ( which can be referred as data elements also) are analyzed to minimize redundancy, and maximize integrity. This process of analysis is called Normalization. After the normalization process, various tables are identified, which constitute record structure with grouped data elements. The identified tables are linked through common data elements. These common data elements are defined as Primary key / Foreign Key / Composite primary key. In our example of Library Information System, the following tables will be identified as an output of conceptual design. 1. Student table consisting of fields, Student-code, Student-name, Class, Date of birth, postal, address, phone no, etc. Here Student-code is primary key which is unique 2. Books table consisting of fields, Book-code, Book name, Author, cost, edition, Accession no. etc.. Here book-code is primary key, which is unique 3. Issue table consisting of fields, Student-code, Book-code, Issue-date, status Here Student-code+Book-code+ Issue-date is composite Primary key, which is unique. Student-code and Book-code are foreign keys, and can have duplicate values. 12 Training Division, NIC, New Delhi

13 Graphical Illustration: Student Table Student- Code Student- Student Class Date of birth Address - address Code Name 1 Shayam 1 st 11/05/ , 2 nd Street, shayam@yahoo.com Year Janpath, New Delhi 2 Ashish 2 nd 21/07/84 11, Sector 7, ashish@hotmail.com Year Vikas Puri, New Delhi Issue Table Book-Code Issue-date Status /10/ /08/2002 Returned /08/2002 Books Table Book-code Book Name Author Edition Cost 1 Visual Basic I.K. Jain MS Access-An R.P. Singh Overview Training Division, NIC, New Delhi 13

14 ö Physical Design In the physical design, the actual structures of tables are created using a particular DBMS package. The physical design shows how the files, records, fields are actually stored on the physical storage media, depending upon the type of database, the DBMS supports. This physical design giving complete logical view ( the way user wants to view it) of the database, is called schema. Various applications developers have the choice of getting different logical views (which may be even partial) of the same database. They can customize these views as per their specific needs. Such logical view is called subschema. DBMS provides tools for creating the subschemas. This characteristic of DBMS makes the database design independent of applications design. That means, any changes made in the database design will not affect already working applications, unless the data elements, being used by them are deleted from the database. 14 Training Division, NIC, New Delhi

15 E Getting Started with MS-Access MS Access is a Relational DBMS, for windows based desktop database applications, which may be stand alone or distributed over network. In a Client-Server environment, it is used to maintain database at the client end. Database in MS Access is referred as a collection of data, procedures, reports, interfaces etc. related to a particular purpose. It has mainly the following components. Tables to contain data in the form of records / fields. Forms to manipulate data and user interfaces to link forms, sub forms or processes. Queries to create logical view of data and also to find and retrieve desired data based on various conditions. Reports to print information in pre-laid formats Pages to publish the reports / queries output on Web Macros to club more that one operations and automate their executions Modules to add more functionality by writing codes using Visual Basic for Applications (VBA), which is scripting language integrated with MS Access. It is similar to Visual Basic. Training Division, NIC, New Delhi 15

16 q Case Study 1. Name of Database application : Employees Leave Record System (ELRS) 2. Broad objective of the application: To keep the information of employees and details of leave taken by them during the service. The system should also update the balance leave at the end of calendar year, by adding leave due in the coming year. 3. Brief description of the application This application is designed for Leave account maintenance of the employees of an organization. Year end processing to add Earned leave and initialize Casual Leave balance. 4. List of various reports expected to be generated Employee s details report Detailed leave report of an individual employee, along with leave at balance 5. List of various input forms Addition of data of new employees Updating of Employee s information Deletion of employees, who leave the organization Data entry of leave taken by an employee from time to time 6. List of major processes Maintenance of data of Employee (Additions/Deletions/Modifications) Maintenance of record of leave details Year end processing 16 Training Division, NIC, New Delhi

17 7. List of entities identified ( about which the data is to be stored ) Employee details Leave details 8. List of data items associated with above entities Employee: Leave details: Name, Designation, Date of Joining, Skill, address, employee photograph etc. Name of the employee, Designation, Leave type, Duration, Start Date, End Date, balance leave at credit. 9. Entity - Relationship Diagram ( Conceptual Design of database) Employee Takes Leave 10. After Normalization process, we will get the conceptual design in the form of the following two tables. Employee table consisting of fields: Employee-code, Name, Designation, Date of Joining, Skill, EL at credit, CL at credit, RH at credit, HPL at credit, Salary, address, employee photograph etc. Here Employee-code is the Primary Key. Training Division, NIC, New Delhi 17

18 Leave table consisting of fields: Employee-code, Leave type, Duration, Start-Date, End Date Here Employee-code + Start-Date is a Composite Key, and Employee-Code is Foreign Key. 11. User Interfaces Design Maintain Employees data Enter Leave Details Year End Processing Reports / Queries Reports Page Employee Report Creating Employee Label Leave Details of Individual employee Maintain Employee Data Add New Employee Modify Employee Data Delete Employee Data Enter Leave Details Form for entry of multiple leave details of an employee 18 Training Division, NIC, New Delhi

19 Few suggested enhancements to the above mentioned case study, which can be done by participants as assignment. Add login screen for screen for maintaining employee data to enforce Access controls. Calculate gross pay of employees and generate pay slips by automatically calculating DA from the basic salary. Add a filed in Leave table to set hyperlink to leave sanction order (MS Word file). Generate MS Word document for leave details statement for every employee with a provision to send it as an attachment to of that employee (You cal use Mail merge option). Publish employees list on Web along with their leave at credit. Create a new table containing department code, and other details. In employee table, add a field for department, to which employee belongs. In the properties of this field, pickup the values for department field from the department table through lookup Wizard. Develop a module for periodic backup of tables. This process should get triggered, on mouse click on the main menu. Develop a module for automatic backup of tables. This process should get triggered, automatically on 1 st day of every month. On the similar lines of the case study, you can also develop a database application relevant to your work area. Training Division, NIC, New Delhi 19

20 q Starting MS Access Switch on the system. In case login dialog box appears, enter user name and password as User (Cabin No) (For example, for Cabin 42, user name and password will be user42). Click Start>>Programs>>MS Access. Dialog box shown in Figure 1 will appear. Select this for blank database option. Figure 1 Select Blank Access database option. The dialog box shown in Figure 2 will appear. 20 Training Division, NIC, New Delhi

21 Figure 2 Select the folder name in Save in option. Type Employee under File name. Click Create. Employee database window will open as shown in Figure 3. To open table for data entry To make modification in design of table Figure 3 To create new table Training Division, NIC, New Delhi 21

22 After the database has been created, different objects of the database like Tables, Queries, Forms, Reports etc. can be created by selecting appropriate tabs. Note: We are going to refer to this database window in later part of the workbook also. E ö Ways of Creating a Table Create table in design view In this option, table has to be created from scratch, in which its fields names, their data types and properties have to be entered. ö Create Table by using Wizard In this option, wizard dialog box will open with the steps provided to create a table. ö Create table by entering data In this option, only data has to be entered and it will take fields names as field1, field2 and so on and data type it will take automatically based upon data entered (one can rename the fields names, if required). E Creating New Table Double click Create table in Design View. Note: Another way to get Design view for new table, Click New>>Design View>>OK. New Table dialog box will appear as shown in Figure Training Division, NIC, New Delhi

23 Figure 4 As shown in Figure 5, enter names of fields in Field Name column, type of data to be entered in fields in Data Type column and enter description of fields in Description column if required. Figure 5 Training Division, NIC, New Delhi 23

24 E Saving the Table Click File>>Save. The dialog box as shown in Figure 6 will appear. Figure 6 Type the Table name as Employee and click OK. The dialog box as shown in Figure 7 will appear. Figure 7 E Select No. Table will be saved with the name Employee. Close the table Employee. Adding Records to a Table Select table Employee from database window. Click Open.Datasheet View of the table will open as shown in Figure Training Division, NIC, New Delhi

25 Figure 8 Start entering the data from the cursor placed at the first blank record. The following data may be entered as shown in Figure 9. Save and Close the table window. Figure 9 E Deleting Records Click on the record to be deleted. Select Edit>>Select Record. The record gets selected as shown in Figure 10. Figure 10 Training Division, NIC, New Delhi 25

26 Click Edit>>Delete Record from the menu bar, the record will be deleted. Note : To delete all record, click Edit>>Select All and press Delete button. But don t try this option otherwise you will lose whole data of that table. E ö ö Editing Data in Tables Cutting & Pasting Or Copying & Pasting Data Select the record to be cut or copied. Select Edit >> Cut (for cutting data) or Edit>>Copy (for copying data). Take the cursor to a new position in the table where the record is to be copied. Select Edit>>Paste. Locating Data Select the field where the data has to be searched, by clicking the Field Heading OR put the cursor anywhere in the column where the data has to be searched. Click Edit>>Find. The Find and Replace dialog box appears as shown in Figure 11. Click here to select the field. Figure Training Division, NIC, New Delhi

27 ö Enter a string to search for, in the Find What: option, say ANIL. In Match option, select any of the three category provided. Choose Find Next to search for more records. Select Cancel to stop the search and close the dialog box. Replacing the existing data Click on the field name where the data is to be replaced. For example, click on Designation field Select Edit>>Replace. The Replace dialog box as shown in Figure 12 will appear. Figure 12 Type SA in Find What field. Click on the Replace With field. Type SSA. Click on Find Next button. It will find the first occurrence of the data. Click on Replace to replace the data in that field. Click on Find Next to find and then click Replace to replace the next occurrence of the data (If required, click Replace All to replace all such occurrences). Close the Find and Replace dialog box by clicking the Close button. Training Division, NIC, New Delhi 27

28 E Sorting Data Data stored in a table can be sorted on text, numbers, or date fields in ascending order (A to Z, zero to 9, or earliest to latest date). Or, you can sort in descending order (Z to A, 9 to zero, or latest to earliest date). Click on the Field on which the records are to be sorted. Click Records>>Sort>> Sort Ascending from the Record menu option. The option provides you to rearrange the records Ascending/Descending on Name field as shown in Figure 13. Figure 13 E Close the table window Click Yes, if changes are to be saved in the table. Modifying Table Design Select the table to be modified from the database window. Select Design. The table will open in Design View. The design of the fields in table can now be modified, i.e., the fields can be deleted, added or changed according to the requirements. After the modification, changes can be saved and the database window reappears. 28 Training Division, NIC, New Delhi

29 E Primary Key A Primary Key is a field (or group of fields) that uniquely identifies each record. When primary key is created, Access will do the following things: 1. Make sure no two records in the table have the same value in the field (or group of fields) that defines the primary key. 2. Keep records sorted (ordered) by the entries in the primary key. 3. Speed up processing. Note: No field that is part of a primary key can be left blank during data entry. ö Setting a Primary Key Open the table in Design view. Select the field for which primary key property has to be set. Click Edit>>Primary Key. The field which is set as the primary key, will have key icon in the row selector as shown in Figure 14. key icon row selector Figure 14 Note: If the data in a table contains duplicate data for the emp_code field, the error message will be displayed while defining the emp_code field as a primary key. To remove the error, first remove the duplicate data and then define field as a primary key. Training Division, NIC, New Delhi 29

30 ö E Removing Primary Key Setting Select the field for which primary key setting has to be removed. Click Edit>>Primary Key. It will remove primary key setting. Creating Second Table Let us now create another table Leave with the following fields: Emp_code Type_Leave Start_Date Duration End_Date Number Text Date Number Date Save this table as LEAVE table. Close the table design window and enter the data for this table. It may be noted that the values of Emp-code should be the same as those already mentioned in the Employee table. 30 Training Division, NIC, New Delhi

31 q Relationships In RDBMS systems, usually data is stored in more than one table, depending on the type of information. To bring the relevant information together in a Form/Report/Query, these tables need to be linked together. To link the tables together Relationships are used. For example, there are two tables Employee table, which contains employees details, and other Leave table, which contains the information about the leaves taken by all the employees. To create a report, which will give the details of the leaves taken by all the employees, relationship between the two tables Employee and Leave is required. Sample report having data from both the tables is shown in Figure 15. E How it works? Figure 15 In the above example, the fields in both tables must be linked so that they show relevant information about the employees. This linking is done by setting relationships between tables. A relationship is created by matching data in one of the fields of the table usually a field with the same name in both tables. In most cases, these matching fields Training Division, NIC, New Delhi 31

32 are the primary key 3 from one table and a foreign key 4 in the other table. For example, employees can be associated with the leaves they have taken by creating a relationship between the Employee table and the Leave table using the Emp_code (Employee Code) field as shown in Figure 16. Primary Key Employee Table Foreign Key Leave Table Figure 16 Entity-Relationship diagram Employee Table s Emp_code Takes Leave Leave Table s Emp_code 3 Primary key consists of one or more fields (columns) whose value or values uniquely identify each record in a table. A primary key cannot allow Null values and is used to relate the table to foreign keys in other tables. 4 Foreign key is one or more table fields (columns) that refer to the primary key field or fields in another table. A foreign key indicates how the tables are related. The data in the foreign key and primary key fields must match, though the field names do not have to be the same. 32 Training Division, NIC, New Delhi

33 Types of Relationship 1. A one-to-many relationship : It is the most common type of relationship. In a one-to-many relationship, a record in the first table can have many matching records in the second table, but a record in the second table has only one matching record in the first table. 2. A many-to-many relationship In a many-to-many relationship, a record in the first table can have many matching records in the second table, and a record in the second table can have many matching records in the first table. This type of relationship is only possible by defining a third table (called a junction table) whose primary key consists of two fields the foreign keys from both the tables, first and second. A many-to-many relationship is actually defining two one-to-many relationships with a third table. For example, the Leave table and the Training table have a many-to-many relationship that s defined by creating two, one-to-many relationships to the Employee table. 3. A one-to-one relationship In a one-to-one relationship, each record in the first table can have only one matching record in the second table, and each record in the second table can have only one matching record in the first table. This type of relationship is not common, because most of the information related in this way would be in one table. You might use a one-to-one relationship to divide a table with many fields, to isolate part of a table for security reasons, or to store information that applies only to a subset of the main table. E Creating New Relationships Close any tables you have opened since relationships can t be created or modified between open tables. Click Tools>>Relationships. Blank screen will appear. Training Division, NIC, New Delhi 33

34 Click Relationships>>Show Table. Following Show Table dialog box will appear as shown in Figure 17. Figure 17 Select Employee table. Click Add. Select Leave table. Click Add. Similarly you can add more tables depending upon the requirement. Click Close. Tables selected will appear as shown in Figure Figure 18 Drag the Emp_code of Employee table over Emp_code of Leave table to relate them. Edit Relationships dialog box will appear as shown in Figure 19. Training Division, NIC, New Delhi

35 Figure 19 Click Create. A line joining the two tables will appear as shown in Figure 20. Figure 20 The above two steps can be repeated for each pair of tables you want to relate. Close the Relationships window. The system will prompt for the Saving of Relationship. Click Yes. Note: If you drag a field that isn t a primary key and doesn t have a unique index to another field that isn t a primary key and doesn t have a unique index, an indeterminate relationship is created. Training Division, NIC, New Delhi 35

36 E Editing the Existing Relationship Click Tools>>Relationships. Double click on the middle of the relationship line. Edit Relationship dialog box will appear as shown in Figure 21. Figure 21 ö Defining the join type for a relationship between two tables Click the Join Type. button, and then click the desired join type from the Join Properties dialog box as shown in Figure Training Division, NIC, New Delhi

37 Figure 22 ö ö Click OK. Deleting Relationship Click Tools>>Relationships. Click on the Relationship line to be deleted. Press Delete key. Removing Table from the Relationship Window Click Tools>>Relationships. Click on the table to be deleted. Press Delete key. Training Division, NIC, New Delhi 37

38 Referential Integrity Referential integrity is a system of rules that Microsoft Access uses to ensure that relationships between records in related tables are valid, and that you don t accidentally delete or change related data. Basic requirement for setting up referential integrity: 1. The matching field from the primary table is a primary key or has a unique index. 2. The related fields have the same data type. 3. Both tables belong to the same Microsoft Access database. When referential integrity is enforced, you must observe the following rules: 1. You can t enter a value in the foreign key field of the related table that doesn t exist in the primary key of the primary table. 2. You can t delete a record from a primary table if matching records exist in a related table. For example, you can t delete an employee record from the Employees table if there are leave details for that employee in the Leave Table. If at all it is required to delete a record in Employee table, one should just delete the corresponding leave details from the Leave table. 3. You can t change a primary key value in the primary table, if that record has related records. Setting Referential Integrity Open the relationship in edit mode as already discussed in Editing the Existing Relationship section. Select the Enforce Referential Integrity check box. If referential integrity is enforced and you break one of the rules with related tables, Microsoft Access displays a message and doesn t allow the change. Restrictions can be overridden against deleting or changing related records and preserving referential integrity by setting the Cascade Update Related Fields 5 and Cascade Delete Related Records 6 check boxes. 5 Changing a primary key value in the primary table automatically updates the matching value in all related records. 6 Deleting a record in the primary table deletes any related records in the related table. 38 Training Division, NIC, New Delhi

39 q Query A query is logical view of selected data elements from tables as per the specific needs of the user (which is called subschema). Query option is used for the purpose of display, updating or analysis of data. E Simple Query Select Queries tab from the database window. Click on New button as shown in Figure 3 of table design. The dialog box for new query will appear as shown in Figure 23. Figure 23 Select Design View. Click on OK. The Show Table dialog box lets you select the tables/queries/both for creating a query. Select the table Employee. Click on Add. The field list appears next to the Show Table dialog box as shown in Figure 24. Training Division, NIC, New Delhi 39

40 Figure 24 In Show Table dialog box, click on Close button. Double Click on fields Emp_code, ename, Designation, Salary in the field list. They may appear in the lower part of the screen as shown in Figure 25. Figure 25 Save the query as Employee_query. Select Query>>Run from the menu bar to see the output. Close the Select Query window. Note: From the database window also the query can be run. Click on Queries tab, choose the query as Employee_query and click on Open button. 40 Training Division, NIC, New Delhi

41 E Performing Calculation in the Query A new field can be created in a query that displays the results of a calculation defined in field cell with an expression. Open the query in Design view. Repeat all the steps as done in previous query. Type an expression in an empty cell in the Field row as shown in Figure 26. In this figure the expression written is DA:[Salary]*0.42 Figure 26 Expression to calculate DA Note: For creating the expression, Expression Builder can be used. Right-click in the Field cell where you have to add the calculated field, and then click Build. Select Query>>Run to see the output. The calculated value for DA, with the field name DA, will be displayed in the output of query. Close the Query window. Training Division, NIC, New Delhi 41

42 E Using Criteria or Advanced Filters to retrieve certain Records Criteria are restrictions or an advanced filter placed on a query to identify the specific records to work with. For example, instead of viewing all the employee information of your organisation, selected employees can be viewed having Designation SA. To do this, specify the criteria that limits the results to records whose Designation field has the value SA. In a design grid of query, enter an expression in the criteria cell for the field. The expression in the preceding example would be SA as shown in Figure 27. Note : Additional criteria can be entered for the same field or different fields using either the And or the Or operator. For And operator, the expressions are in different cells in the same row. For Or operator, the expressions are in different rows of the design grid. Figure 27 Select Query>>Run. The output contains only those records having Designation equal to SA. 42 Training Division, NIC, New Delhi

43 E Parameter Queries A parameter query is a query that while running displays its own dialog box prompting you for information, such as criteria for retrieving records or a value you want to insert in a field. You can design the query to prompt you for more than one piece of information; for example, you can design it to prompt you for two dates. Microsoft Access can then retrieve all records that fall between those two dates. In query Design view, drag the fields from the field list to the query design grid. In the Criteria cell for the field you want to use as a parameter, type a prompt enclosed in square brackets as shown in Figure 28. Figure 28 The prompt Type Employee Code will be displayed when you run the query as shown in Figure 29. Figure 29 Enter the value for employee code and click OK. It will display the output having emp_code, name, designation, salary and DA for the corresponding employee code. Training Division, NIC, New Delhi 43

44 E Action Queries An action query is a query that makes changes to many records in just one operation. The action queries are of four types: delete, update, make-table, and append queries ö Delete Query Delete Query deletes a group of records from one or more tables. With delete queries, always entire records will be deleted, not just selected fields within records. Single delete query is used to delete records from a single table or from multiple tables, if relation has been set between the tables, in a one-to-one relationship or a one-to-many relationship. Select Query>>New>>Design View from Database dialog box. Add tables Employee and click the Close button. Select Query>>Delete Query, from the Menu bar. Drag the asterisk(*) from the field list for the table, from which records are to be deleted, to the query design grid. From appears in the Delete cell under this field. Add field and table to the design grid for which criteria for deleting records has to be specified. Where appears in the Delete cell under this field. In the Criteria cell for the fields, criteria has to be typed as shown in the Figure Training Division, NIC, New Delhi

45 Figure 30 Note: If Delete Query is used for One-to-many relations, records will be deleted from all the related tables. For example, tables Employee and Leave are having oneto-many relationship (select the Cascade delete related records option while setting the relationship.) In this case, the Delete Query will delete the records from both the tables related, if the Salary is less than To see a list of the records going to be deleted, click View >>Datasheet view. To return to query Design view, click View >>Design View. Click Query>>Run to delete the records permanently from the tables. Training Division, NIC, New Delhi 45

46 ö Update Query Change records as a group using an update query Create an update query, selecting the tables or queries that include the records you want to update and the fields you want to use for setting criteria. In query Design view, click the Query>>Update Query. Drag from the field list to the query design grid the fields you want to update or you want to specify criteria for. In the Criteria cell, specify the criteria if necessary. In the Update To cell for the fields you want to update, type the expression or value you want to use to change the fields, as shown in Figure 31. Figure 31 To see a list of the records that will be updated, click View >>Datasheet View. This list won t show the new values. To return to query Design view, click View >> Design View. Click Query>>Run to make the table updated. 46 Training Division, NIC, New Delhi

47 Update a table based on values in another table Create an update query that contains the table you want to update and the table whose values you want to copy. If the tables aren t already joined, join them on the fields that have related information. For example, if you want to copy data from the Name field of the Employee table to a field in Leave table, join the two tables on the primary key, which in this case is Emp_code. In the Update To cell for the fields you want to update, type an expression with the following syntax: [tablename].[fieldname], where tablename and fieldname are the names of the table and field that contain the data you re copying. For example, if you are copying data from the Name field of the Employee table, you would type [Employee].[Name] in the Update To cell as shown in Figure 32. Figure 32 Click Query>>Run. It will copy the data from Name field of Employee table to the Name field of the Leave table. (To see the updated table, you may see the Leave table in Datasheet view). Training Division, NIC, New Delhi 47

48 ö Make-table Query Create a query, selecting the tables or queries that contain the records you want to put in the new table. In query Design view, click Query >> Make-Table query. The Make Table dialog box appears. In the Table Name box, enter the name of the table you want to create or replace. For example, to create new table employee_new, type that name in the Table Name box. Click Current Database to put the new table in the currently open database. Or click Another Database if you want to create table in a new database and type the name of the database you want to put the new table in. Type the path if necessary. Click OK. Drag from the field list to the query design grid the fields you want in the new table. In the Criteria cell for the fields that you ve dragged to the grid, type the criteria as shown in Figure 33. Figure Training Division, NIC, New Delhi

49 ö For the preview the new table before you actually create it, click the View>> datasheet view. Return to query Design view by clicking View>>Design View. To create a new table, click Query>>Run. It will copy all the fields shown in Figure 33 and its data to the newly created table employee_new. Append Query This query is used to append records from one table to another table using an append query. Create a query that contains the table whose records you want to append to another table (can be done using Simple Query Wizard option). Open the query created in the above step in design mode. Click Query>>Append Query. The Append dialog box appears as shown in Figure 34. Figure 34 In the Table Name box, enter the name of the table you want to append records to. Click Current Database if the table is in the currently open database. Or click Another Database and type the name of the database where the table is stored. Type the path if necessary. Click OK. Training Division, NIC, New Delhi 49

50 In Append To option, select the Field name of the table where the data has to be appended and in Criteria cell for appending the field value as shown in Figure 35. Figure 35 If all the fields in both tables have the same names, you can just drag the asterisk (*) to the query design grid. However, if you re working in a database replica, you ll need to add all the fields instead. If the fields you ve selected have the same name in both tables, Microsoft Access automatically fills the matching name in the Append To row. If the fields in the two tables don t have the same name, in the Append To row, enter the names of the fields in the table you re appending to. In the Criteria cell for the fields that you have dragged to the grid, type the criteria on which additions will be made. Click Query>>Run to execute the query. Note : So far, the practice for basics of Queries has been done. For further details, you may continue through the following pages, else go to the Section on Forms on Page Training Division, NIC, New Delhi

51 E ö More about Queries Cross-tab Query Cross-tab queries let you cross-tabulate data in a row-by-column fashion. The example shown below answers the question Who took how many leaves of what type?. Note : To quickly create Cross-tab query of data in a single table, Crosstab query Wizard can be used. Click New>>Design View>>OK. Click Query>>Cross-tab query. Add table Leave to be worked upon as shown in Figure 36. Figure 36 In the design grid of query, specify which field s values become column headings, which field s values become row headings, and the summary values and how you want to summarize the value (for example, sum, average, count, or otherwise calculate). Steps for creating Cross-tab query are as follows: Choose Row Heading in the Crosstab cell for the field you want to use for row heading. More than one field can be designated, but at least one field must be Group By in its Total Cell as shown in Figure 37. Expressions can also be used to group the value together. Training Division, NIC, New Delhi 51

MS Access Lab 2. Topic: Tables

MS Access Lab 2. Topic: Tables MS Access Lab 2 Topic: Tables Summary Introduction: Tables, Start to build a new database Creating Tables: Datasheet View, Design View Working with Data: Sorting, Filtering Help on Tables Introduction

More information

Microsoft Access Basics

Microsoft Access Basics Microsoft Access Basics 2006 ipic Development Group, LLC Authored by James D Ballotti Microsoft, Access, Excel, Word, and Office are registered trademarks of the Microsoft Corporation Version 1 - Revision

More information

Using Delphi Data with Excel and Access

Using Delphi Data with Excel and Access $FDGHPLF&RPSXWLQJ &RPSXWHU 7UDLQLQJ 6XSSRUW 6HUYLFHV 1HWZRUNLQJ6HUYLFHV :HEHU%XLOGLQJ Using Delphi Data with Excel and Access Using Delphi Data The raw data used to create the CSU financial, human resource,

More information

A Basic introduction to Microsoft Access

A Basic introduction to Microsoft Access A Basic introduction to Microsoft Access By Ojango J.M.K Department of Animal Sciences, Egerton University, Njoro, Kenya and International Livestock Research Institute, Nairobi, Kenya Ms Access is a database

More information

Introduction to Microsoft Access 2003

Introduction to Microsoft Access 2003 Introduction to Microsoft Access 2003 Zhi Liu School of Information Fall/2006 Introduction and Objectives Microsoft Access 2003 is a powerful, yet easy to learn, relational database application for Microsoft

More information

- Suresh Khanal. http://mcqsets.com. http://www.psexam.com Microsoft Excel Short Questions and Answers 1

- Suresh Khanal. http://mcqsets.com. http://www.psexam.com Microsoft Excel Short Questions and Answers 1 - Suresh Khanal http://mcqsets.com http://www.psexam.com Microsoft Excel Short Questions and Answers 1 Microsoft Access Short Questions and Answers with Illustrations Part I Suresh Khanal Kalanki, Kathmandu

More information

Microsoft Access 3: Understanding and Creating Queries

Microsoft Access 3: Understanding and Creating Queries Microsoft Access 3: Understanding and Creating Queries In Access Level 2, we learned how to perform basic data retrievals by using Search & Replace functions and Sort & Filter functions. For more complex

More information

Microsoft Query, the helper application included with Microsoft Office, allows

Microsoft Query, the helper application included with Microsoft Office, allows 3 RETRIEVING ISERIES DATA WITH MICROSOFT QUERY Microsoft Query, the helper application included with Microsoft Office, allows Office applications such as Word and Excel to read data from ODBC data sources.

More information

Create a New Database in Access 2010

Create a New Database in Access 2010 Create a New Database in Access 2010 Table of Contents OVERVIEW... 1 CREATING A DATABASE... 1 ADDING TO A DATABASE... 2 CREATE A DATABASE BY USING A TEMPLATE... 2 CREATE A DATABASE WITHOUT USING A TEMPLATE...

More information

Tutorial 3. Maintaining and Querying a Database

Tutorial 3. Maintaining and Querying a Database Tutorial 3 Maintaining and Querying a Database Microsoft Access 2010 Objectives Find, modify, and delete records in a table Learn how to use the Query window in Design view Create, run, and save queries

More information

Microsoft Office 2010

Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database Microsoft Office 2010 Objectives Find, modify, and delete records in a table Learn how to use the Query window in Design view Create, run, and save

More information

Planning and Creating a Custom Database

Planning and Creating a Custom Database Planning and Creating a Custom Database Introduction The Microsoft Office Access 00 database wizards make creating databases easy, but you may need to create a database that does not fit any of the predefined

More information

User Services. Microsoft Access 2003 II. Use the new Microsoft

User Services. Microsoft Access 2003 II. Use the new Microsoft User Services July 2007 OBJECTIVES Develop Field Properties Import Data from an Excel Spreadsheet Create Relationships Create a Form with a Subform Create Action Queries Create Command Buttons Create a

More information

Access Queries (Office 2003)

Access Queries (Office 2003) Access Queries (Office 2003) Technical Support Services Office of Information Technology, West Virginia University OIT Help Desk 293-4444 x 1 oit.wvu.edu/support/training/classmat/db/ Instructor: Kathy

More information

Unit 10: Microsoft Access Queries

Unit 10: Microsoft Access Queries Microsoft Access Queries Unit 10: Microsoft Access Queries Introduction Queries are a fundamental means of accessing and displaying data from tables. Queries used to view, update, and analyze data in different

More information

Table and field properties Tables and fields also have properties that you can set to control their characteristics or behavior.

Table and field properties Tables and fields also have properties that you can set to control their characteristics or behavior. Create a table When you create a database, you store your data in tables subject-based lists that contain rows and columns. For instance, you can create a Contacts table to store a list of names, addresses,

More information

Microsoft Access 2010 Part 1: Introduction to Access

Microsoft Access 2010 Part 1: Introduction to Access CALIFORNIA STATE UNIVERSITY, LOS ANGELES INFORMATION TECHNOLOGY SERVICES Microsoft Access 2010 Part 1: Introduction to Access Fall 2014, Version 1.2 Table of Contents Introduction...3 Starting Access...3

More information

Microsoft Access 2010 handout

Microsoft Access 2010 handout Microsoft Access 2010 handout Access 2010 is a relational database program you can use to create and manage large quantities of data. You can use Access to manage anything from a home inventory to a giant

More information

Creating and Using Databases with Microsoft Access

Creating and Using Databases with Microsoft Access CHAPTER A Creating and Using Databases with Microsoft Access In this chapter, you will Use Access to explore a simple database Design and create a new database Create and use forms Create and use queries

More information

4. The Third Stage In Designing A Database Is When We Analyze Our Tables More Closely And Create A Between Tables

4. The Third Stage In Designing A Database Is When We Analyze Our Tables More Closely And Create A Between Tables 1. What Are The Different Views To Display A Table A) Datasheet View B) Design View C) Pivote Table & Pivot Chart View D) All Of Above 2. Which Of The Following Creates A Drop Down List Of Values To Choose

More information

User Services. Intermediate Microsoft Access. Use the new Microsoft Access. Getting Help. Instructors OBJECTIVES. July 2009

User Services. Intermediate Microsoft Access. Use the new Microsoft Access. Getting Help. Instructors OBJECTIVES. July 2009 User Services July 2009 OBJECTIVES Develop Field Properties Import Data from an Excel Spreadsheet & MS Access database Create Relationships Create a Form with a Subform Create Action Queries Create Command

More information

IN THIS PROJECT, YOU LEARN HOW TO

IN THIS PROJECT, YOU LEARN HOW TO UNIT 2 PROJECT 11 CREATING A CUSTOMIZED DATABASE IN THIS PROJECT, YOU LEARN HOW TO Examine a Database and Its Objects Create Tables and Set Field Properties in Design View Create Relationships Add and

More information

Microsoft Access 2007 Module 1

Microsoft Access 2007 Module 1 Microsoft Access 007 Module http://pds.hccfl.edu/pds Microsoft Access 007: Module August 007 007 Hillsborough Community College - Professional Development and Web Services Hillsborough Community College

More information

Search help. More on Office.com: images templates

Search help. More on Office.com: images templates Page 1 of 14 Access 2010 Home > Access 2010 Help and How-to > Getting started Search help More on Office.com: images templates Access 2010: database tasks Here are some basic database tasks that you can

More information

Business Insight Report Authoring Getting Started Guide

Business Insight Report Authoring Getting Started Guide Business Insight Report Authoring Getting Started Guide Version: 6.6 Written by: Product Documentation, R&D Date: February 2011 ImageNow and CaptureNow are registered trademarks of Perceptive Software,

More information

Use Find & Replace Commands under Home tab to search and replace data.

Use Find & Replace Commands under Home tab to search and replace data. Microsoft Access 2: Managing Data in Tables and Creating Relationships You have created tables in an Access database. Data in Access tables can be added, deleted, and updated to be current (practiced in

More information

Access Database Design

Access Database Design Access Database Design Technical Support Services Office of Information Technology, West Virginia University OIT Help Desk -- 293-4444 x 1 http://oit.wvu.edu/support/training/classmat/db/ Instructors:

More information

Lab 2: MS ACCESS Tables

Lab 2: MS ACCESS Tables Lab 2: MS ACCESS Tables Summary Introduction to Tables and How to Build a New Database Creating Tables in Datasheet View and Design View Working with Data on Sorting and Filtering 1. Introduction Creating

More information

INTRODUCTION TO MICROSOFT ACCESS MINIMAL MANUAL

INTRODUCTION TO MICROSOFT ACCESS MINIMAL MANUAL University of Glasgow Department of Computing Science INTRODUCTION TO MICROSOFT ACCESS MINIMAL MANUAL 1 Databases in Access...2 2 The Database Window...2 3 Help...2 4 Saving...3 5 Wizards...3 6 Tables...3

More information

Microsoft Access 2010 Overview of Basics

Microsoft Access 2010 Overview of Basics Opening Screen Access 2010 launches with a window allowing you to: create a new database from a template; create a new template from scratch; or open an existing database. Open existing Templates Create

More information

Getting Started with Access 2007

Getting Started with Access 2007 Getting Started with Access 2007 Table of Contents Getting Started with Access 2007... 1 Plan an Access 2007 Database... 2 Learning Objective... 2 1. Introduction to databases... 2 2. Planning a database...

More information

Results CRM 2012 User Manual

Results CRM 2012 User Manual Results CRM 2012 User Manual A Guide to Using Results CRM Standard, Results CRM Plus, & Results CRM Business Suite Table of Contents Installation Instructions... 1 Single User & Evaluation Installation

More information

Microsoft Access Part I (Database Design Basics) ShortCourse Handout

Microsoft Access Part I (Database Design Basics) ShortCourse Handout Microsoft Access Part I (Database Design Basics) ShortCourse Handout July 2004, Technology Support, Texas Tech University. ALL RIGHTS RESERVED. Members of Texas Tech University or Texas Tech Health Sciences

More information

Introduction to Microsoft Access 2010

Introduction to Microsoft Access 2010 Introduction to Microsoft Access 2010 A database is a collection of information that is related. Access allows you to manage your information in one database file. Within Access there are four major objects:

More information

Creating tables in Microsoft Access 2007

Creating tables in Microsoft Access 2007 Platform: Windows PC Ref no: USER 164 Date: 25 th October 2007 Version: 1 Authors: D.R.Sheward, C.L.Napier Creating tables in Microsoft Access 2007 The aim of this guide is to provide information on using

More information

Microsoft Access 2007

Microsoft Access 2007 How to Use: Microsoft Access 2007 Microsoft Office Access is a powerful tool used to create and format databases. Databases allow information to be organized in rows and tables, where queries can be formed

More information

Files. Files. Files. Files. Files. File Organisation. What s it all about? What s in a file?

Files. Files. Files. Files. Files. File Organisation. What s it all about? What s in a file? Files What s it all about? Information being stored about anything important to the business/individual keeping the files. The simple concepts used in the operation of manual files are often a good guide

More information

Consider the possible problems with storing the following data in a spreadsheet:

Consider the possible problems with storing the following data in a spreadsheet: Microsoft Access 2010 Part 1: Introduction to Database Design What is a database? Identifying entities and attributes Understanding relationships and keys Developing tables and other objects Planning a

More information

Introduction to Microsoft Access 2013

Introduction to Microsoft Access 2013 Introduction to Microsoft Access 2013 A database is a collection of information that is related. Access allows you to manage your information in one database file. Within Access there are four major objects:

More information

Web Intelligence User Guide

Web Intelligence User Guide Web Intelligence User Guide Office of Financial Management - Enterprise Reporting Services 4/11/2011 Table of Contents Chapter 1 - Overview... 1 Purpose... 1 Chapter 2 Logon Procedure... 3 Web Intelligence

More information

Microsoft Using an Existing Database Amarillo College Revision Date: July 30, 2008

Microsoft Using an Existing Database Amarillo College Revision Date: July 30, 2008 Microsoft Amarillo College Revision Date: July 30, 2008 Table of Contents GENERAL INFORMATION... 1 TERMINOLOGY... 1 ADVANTAGES OF USING A DATABASE... 2 A DATABASE SHOULD CONTAIN:... 3 A DATABASE SHOULD

More information

Access 2007. Creating Databases - Fundamentals

Access 2007. Creating Databases - Fundamentals Access 2007 Creating Databases - Fundamentals Contents Database Design Objectives of database design 1 Process of database design 1 Creating a New Database... 3 Tables... 4 Creating a table in design view

More information

IENG2004 Industrial Database and Systems Design. Microsoft Access I. What is Microsoft Access? Architecture of Microsoft Access

IENG2004 Industrial Database and Systems Design. Microsoft Access I. What is Microsoft Access? Architecture of Microsoft Access IENG2004 Industrial Database and Systems Design Microsoft Access I Defining databases (Chapters 1 and 2) Alison Balter Mastering Microsoft Access 2000 Development SAMS, 1999 What is Microsoft Access? Microsoft

More information

Microsoft Access 2010- Introduction

Microsoft Access 2010- Introduction Microsoft Access 2010- Introduction Access is the database management system in Microsoft Office. A database is an organized collection of facts about a particular subject. Examples of databases are an

More information

Filter by Selection button. Displays records by degree to which they match the selected record. Click to view advanced filtering options

Filter by Selection button. Displays records by degree to which they match the selected record. Click to view advanced filtering options The Home Ribbon Sort Buttons: sort records into ascending or descending order by selected field Filter by Selection button. Displays records by degree to which they match the selected record. Display summary

More information

How To Create A Powerpoint Intelligence Report In A Pivot Table In A Powerpoints.Com

How To Create A Powerpoint Intelligence Report In A Pivot Table In A Powerpoints.Com Sage 500 ERP Intelligence Reporting Getting Started Guide 27.11.2012 Table of Contents 1.0 Getting started 3 2.0 Managing your reports 10 3.0 Defining report properties 18 4.0 Creating a simple PivotTable

More information

Microsoft Access Glossary of Terms

Microsoft Access Glossary of Terms Microsoft Access Glossary of Terms A Free Document From www.chimpytech.com COPYRIGHT NOTICE This document is copyright chimpytech.com. Please feel free to distribute and give away this document to your

More information

Access Tutorial 2 Building a Database and Defining Table Relationships

Access Tutorial 2 Building a Database and Defining Table Relationships Access Tutorial 2 Building a Database and Defining Table Relationships Microsoft Office 2013 Objectives Session 2.1 Learn the guidelines for designing databases and setting field properties Create a table

More information

Microsoft Office Access 2007 which I refer to as Access throughout this book

Microsoft Office Access 2007 which I refer to as Access throughout this book Chapter 1 Getting Started with Access In This Chapter What is a database? Opening Access Checking out the Access interface Exploring Office Online Finding help on Access topics Microsoft Office Access

More information

Getting Started Guide SAGE ACCPAC INTELLIGENCE

Getting Started Guide SAGE ACCPAC INTELLIGENCE Getting Started Guide SAGE ACCPAC INTELLIGENCE Table of Contents Introduction... 1 What is Sage Accpac Intelligence?... 1 What are the benefits of using Sage Accpac Intelligence?... 1 System Requirements...

More information

Exploring Microsoft Office Access 2007. Chapter 2: Relational Databases and Multi-Table Queries

Exploring Microsoft Office Access 2007. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office Access 2007 Chapter 2: Relational Databases and Multi-Table Queries 1 Objectives Design data Create tables Understand table relationships Share data with Excel Establish table

More information

1. INTRODUCTION TO RDBMS

1. INTRODUCTION TO RDBMS Oracle For Beginners Page: 1 1. INTRODUCTION TO RDBMS What is DBMS? Data Models Relational database management system (RDBMS) Relational Algebra Structured query language (SQL) What Is DBMS? Data is one

More information

Topic: Relationships in ER Diagram and Relationships in MS Access

Topic: Relationships in ER Diagram and Relationships in MS Access MS Access Lab 3 Topic: Relationships in ER Diagram and Relationships in MS Access Summary Introduction to Relationships Why Define Relationships? Relationships in ER Diagram vs. Relationships in MS Access

More information

Access Part 2 - Design

Access Part 2 - Design Access Part 2 - Design The Database Design Process It is important to remember that creating a database is an iterative process. After the database is created and you and others begin to use it there will

More information

Microsoft Access 2007 - Creating Filters and Tables

Microsoft Access 2007 - Creating Filters and Tables Platform: Windows PC Ref no: USER 165 Date: November 2007 Version: 1 Authors: Derek Sheward, Claire Napier Creating Filters in Microsoft Access 2007 This is the third document in series of five about Microsoft

More information

warpct.com MS Access 2010 Workbook courseware by WARP! Computer Training

warpct.com MS Access 2010 Workbook courseware by WARP! Computer Training warpct.com courseware by WARP! Computer Training MS Access 2010 Workbook Welcome! Thank you for evaluating a portion of this workbook. If you have any questions or comments regarding our training materials

More information

Creating a Database in Access

Creating a Database in Access Creating a Database in Access Microsoft Access is a database application. A database is collection of records and files organized for a particular purpose. For example, you could use a database to store

More information

Ken Goldberg Database Lab Notes. There are three types of relationships: One-to-One (1:1) One-to-Many (1:N) Many-to-Many (M:N).

Ken Goldberg Database Lab Notes. There are three types of relationships: One-to-One (1:1) One-to-Many (1:N) Many-to-Many (M:N). Lab 3 Relationships in ER Diagram and Relationships in MS Access MS Access Lab 3 Summary Introduction to Relationships Why Define Relationships? Relationships in ER Diagram vs. Relationships in MS Access

More information

Simple Invoicing Desktop Database with MS Access 2013. c 2015 by David W. Gerbing School of Business Administration Portland State University

Simple Invoicing Desktop Database with MS Access 2013. c 2015 by David W. Gerbing School of Business Administration Portland State University Simple Invoicing Desktop Database with MS Access 2013 c 2015 by David W. Gerbing School of Business Administration Portland State University July 2, 2015 CONTENTS 1 Contents 1 Create a New Database 1 2

More information

MS Access. Microsoft Access is a relational database management system for windows. Using this package, following tasks can be performed.

MS Access. Microsoft Access is a relational database management system for windows. Using this package, following tasks can be performed. MS Access Microsoft Access is a relational database management system for windows. Using this package, following tasks can be performed. Organize data into manageable related units Enter, modify and locate

More information

Tips and Tricks SAGE ACCPAC INTELLIGENCE

Tips and Tricks SAGE ACCPAC INTELLIGENCE Tips and Tricks SAGE ACCPAC INTELLIGENCE 1 Table of Contents Auto e-mailing reports... 4 Automatically Running Macros... 7 Creating new Macros from Excel... 8 Compact Metadata Functionality... 9 Copying,

More information

Data Tool Platform SQL Development Tools

Data Tool Platform SQL Development Tools Data Tool Platform SQL Development Tools ekapner Contents Setting SQL Development Preferences...5 Execution Plan View Options Preferences...5 General Preferences...5 Label Decorations Preferences...6

More information

PROJECT ON MICROSOFT ACCESS (HOME TAB AND EXTERNAL DATA TAB) SUBMITTED BY: SUBMITTED TO: NAME: ROLL NO: REGN NO: BATCH:

PROJECT ON MICROSOFT ACCESS (HOME TAB AND EXTERNAL DATA TAB) SUBMITTED BY: SUBMITTED TO: NAME: ROLL NO: REGN NO: BATCH: PROJECT ON MICROSOFT ACCESS (HOME TAB AND EXTERNAL DATA TAB) SUBMITTED BY: SUBMITTED TO: NAME: ROLL NO: REGN NO: BATCH: INDEX Microsoft Access- An Overview 2 Datasheet view 4 Create a Table in Datasheet

More information

MICROSOFT ACCESS 2003 TUTORIAL

MICROSOFT ACCESS 2003 TUTORIAL MICROSOFT ACCESS 2003 TUTORIAL M I C R O S O F T A C C E S S 2 0 0 3 Microsoft Access is powerful software designed for PC. It allows you to create and manage databases. A database is an organized body

More information

Chapter 5. Microsoft Access

Chapter 5. Microsoft Access Chapter 5 Microsoft Access Topic Introduction to DBMS Microsoft Access Getting Started Creating Database File Database Window Table Queries Form Report Introduction A set of programs designed to organize,

More information

ACCESS 2007. Importing and Exporting Data Files. Information Technology. MS Access 2007 Users Guide. IT Training & Development (818) 677-1700

ACCESS 2007. Importing and Exporting Data Files. Information Technology. MS Access 2007 Users Guide. IT Training & Development (818) 677-1700 Information Technology MS Access 2007 Users Guide ACCESS 2007 Importing and Exporting Data Files IT Training & Development (818) 677-1700 training@csun.edu TABLE OF CONTENTS Introduction... 1 Import Excel

More information

Scheduling Software User s Guide

Scheduling Software User s Guide Scheduling Software User s Guide Revision 1.12 Copyright notice VisualTime is a trademark of Visualtime Corporation. Microsoft Outlook, Active Directory, SQL Server and Exchange are trademarks of Microsoft

More information

Pastel Evolution BIC. Getting Started Guide

Pastel Evolution BIC. Getting Started Guide Pastel Evolution BIC Getting Started Guide Table of Contents System Requirements... 4 How it Works... 5 Getting Started Guide... 6 Standard Reports Available... 6 Accessing the Pastel Evolution (BIC) Reports...

More information

Reduced Quality Sample

Reduced Quality Sample Access 2007 Essentials PART ONE Mobile MOUSe Access 2007 Essentials Version # 1.1 Part One 08/08/2010 11:20 About this Course Microsoft Access is the database application included with Microsoft Office.

More information

Access Tutorial 1 Creating a Database. Microsoft Office 2013 Enhanced

Access Tutorial 1 Creating a Database. Microsoft Office 2013 Enhanced Access Tutorial 1 Creating a Database Microsoft Office 2013 Enhanced Objectives Session 1.1 Learn basic database concepts and terms Start and exit Access Explore the Microsoft Access window and Backstage

More information

Getting Started Guide

Getting Started Guide Getting Started Guide Introduction... 3 What is Pastel Partner (BIC)?... 3 System Requirements... 4 Getting Started Guide... 6 Standard Reports Available... 6 Accessing the Pastel Partner (BIC) Reports...

More information

MICROSOFT OUTLOOK 2010 WORK WITH CONTACTS

MICROSOFT OUTLOOK 2010 WORK WITH CONTACTS MICROSOFT OUTLOOK 2010 WORK WITH CONTACTS Last Edited: 2012-07-09 1 Access to Outlook contacts area... 4 Manage Outlook contacts view... 5 Change the view of Contacts area... 5 Business Cards view... 6

More information

Microsoft Access 2003 Module 1

Microsoft Access 2003 Module 1 Microsoft Access 003 Module http://pds.hccfl.edu/pds Microsoft Access 003: Module June 005 006 Hillsborough Community College - Professional Development Services Hillsborough Community College - Professional

More information

Access 2010 Intermediate Skills

Access 2010 Intermediate Skills Access 2010 Intermediate Skills (C) 2013, BJC HealthCare (St Louis, Missouri). All Rights Reserved. Revised June 5, 2013. TABLE OF CONTENTS OBJECTIVES... 3 UNDERSTANDING RELATIONSHIPS... 4 WHAT IS A RELATIONSHIP?...

More information

Introduction to Computing. Lectured by: Dr. Pham Tran Vu t.v.pham@cse.hcmut.edu.vn

Introduction to Computing. Lectured by: Dr. Pham Tran Vu t.v.pham@cse.hcmut.edu.vn Introduction to Computing Lectured by: Dr. Pham Tran Vu t.v.pham@cse.hcmut.edu.vn Databases The Hierarchy of Data Keys and Attributes The Traditional Approach To Data Management Database A collection of

More information

Access 2010: Creating Queries Table of Contents INTRODUCTION TO QUERIES... 2 QUERY JOINS... 2 INNER JOINS... 3 OUTER JOINS...

Access 2010: Creating Queries Table of Contents INTRODUCTION TO QUERIES... 2 QUERY JOINS... 2 INNER JOINS... 3 OUTER JOINS... Access 2010: Creating Queries Table of Contents INTRODUCTION TO QUERIES... 2 QUERY JOINS... 2 INNER JOINS... 3 OUTER JOINS... 3 CHANGE A JOIN PROPERTY... 4 REMOVING A JOIN... 4 CREATE QUERIES... 4 THE

More information

BID2WIN Workshop. Advanced Report Writing

BID2WIN Workshop. Advanced Report Writing BID2WIN Workshop Advanced Report Writing Please Note: Please feel free to take this workbook home with you! Electronic copies of all lab documentation are available for download at http://www.bid2win.com/userconf/2011/labs/

More information

1 File Processing Systems

1 File Processing Systems COMP 378 Database Systems Notes for Chapter 1 of Database System Concepts Introduction A database management system (DBMS) is a collection of data and an integrated set of programs that access that data.

More information

ECDL. European Computer Driving Licence. Database Software BCS ITQ Level 1. Syllabus Version 1.0

ECDL. European Computer Driving Licence. Database Software BCS ITQ Level 1. Syllabus Version 1.0 ECDL European Computer Driving Licence Database Software BCS ITQ Level 1 Using Microsoft Access 2013 Syllabus Version 1.0 This training, which has been approved by BCS, includes exercise items intended

More information

Lab Manual. Databases. Microsoft Access. Peeking into Computer Science Access Lab manual

Lab Manual. Databases. Microsoft Access. Peeking into Computer Science Access Lab manual Lab Manual Databases Microsoft Access 1 Table of Contents Lab 1: Introduction to Microsoft Access... 3 Getting started... 3 Tables... 3 Primary Keys... 6 Field Properties... 7 Validation Rules... 11 Input

More information

Click to create a query in Design View. and click the Query Design button in the Queries group to create a new table in Design View.

Click to create a query in Design View. and click the Query Design button in the Queries group to create a new table in Design View. Microsoft Office Access 2010 Understanding Queries Queries are questions you ask of your database. They allow you to select certain fields out of a table, or pull together data from various related tables

More information

General User/Technical Guide for Microsoft Access

General User/Technical Guide for Microsoft Access General User/Technical Guide for Microsoft Access School of Nursing University of Michigan This guide is the first step in understanding your database. See the list of documentation locations at the end

More information

Logi Ad Hoc Reporting System Administration Guide

Logi Ad Hoc Reporting System Administration Guide Logi Ad Hoc Reporting System Administration Guide Version 11.2 Last Updated: March 2014 Page 2 Table of Contents INTRODUCTION... 4 Target Audience... 4 Application Architecture... 5 Document Overview...

More information

Microsoft Access 2010: Basics & Database Fundamentals

Microsoft Access 2010: Basics & Database Fundamentals Microsoft Access 2010: Basics & Database Fundamentals This workshop assumes you are comfortable with a computer and have some knowledge of other Microsoft Office programs. Topics include database concepts,

More information

MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC

MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC MyOra 3.0 SQL Tool for Oracle User Guide Jayam Systems, LLC Contents Features... 4 Connecting to the Database... 5 Login... 5 Login History... 6 Connection Indicator... 6 Closing the Connection... 7 SQL

More information

MAS 500 Intelligence Tips and Tricks Booklet Vol. 1

MAS 500 Intelligence Tips and Tricks Booklet Vol. 1 MAS 500 Intelligence Tips and Tricks Booklet Vol. 1 1 Contents Accessing the Sage MAS Intelligence Reports... 3 Copying, Pasting and Renaming Reports... 4 To create a new report from an existing report...

More information

Microsoft Access 2007 Introduction

Microsoft Access 2007 Introduction Microsoft Access 2007 Introduction Access is the database management system in Microsoft Office. A database is an organized collection of facts about a particular subject. Examples of databases are an

More information

Lab 9 Access PreLab Copy the prelab folder, Lab09 PreLab9_Access_intro

Lab 9 Access PreLab Copy the prelab folder, Lab09 PreLab9_Access_intro Lab 9 Access PreLab Copy the prelab folder, Lab09 PreLab9_Access_intro, to your M: drive. To do the second part of the prelab, you will need to have available a database from that folder. Creating a new

More information

Installing LearningBay Enterprise Part 2

Installing LearningBay Enterprise Part 2 Installing LearningBay Enterprise Part 2 Support Document Copyright 2012 Axiom. All Rights Reserved. Page 1 Please note that this document is one of three that details the process for installing LearningBay

More information

Database File. Table. Field. Datatype. Value. Department of Computer and Mathematical Sciences

Database File. Table. Field. Datatype. Value. Department of Computer and Mathematical Sciences Unit 4 Introduction to Spreadsheet and Database, pages 1 of 12 Department of Computer and Mathematical Sciences CS 1305 Intro to Computer Technology 15 Module 15: Introduction to Microsoft Access Objectives:

More information

Excel Database Management Microsoft Excel 2003

Excel Database Management Microsoft Excel 2003 Excel Database Management Microsoft Reference Guide University Technology Services Computer Training Copyright Notice Copyright 2003 EBook Publishing. All rights reserved. No part of this publication may

More information

Creating QBE Queries in Microsoft SQL Server

Creating QBE Queries in Microsoft SQL Server Creating QBE Queries in Microsoft SQL Server When you ask SQL Server or any other DBMS (including Access) a question about the data in a database, the question is called a query. A query is simply a question

More information

ISM 318: Database Systems. Objectives. Database. Dr. Hamid R. Nemati

ISM 318: Database Systems. Objectives. Database. Dr. Hamid R. Nemati ISM 318: Database Systems Dr. Hamid R. Nemati Department of Information Systems Operations Management Bryan School of Business Economics Objectives Underst the basics of data databases Underst characteristics

More information

Structure a Database. Key Concepts LESSON. Access 380. Lesson 2: Structure a Database. Standards

Structure a Database. Key Concepts LESSON. Access 380. Lesson 2: Structure a Database. Standards LESSON Key Concepts Structure a Database In this lesson, you will continue learning skills to use Access in your daily life. You will learn to create the following elements in this lesson: databases, tables,

More information

Lesson 07: MS ACCESS - Handout. Introduction to database (30 mins)

Lesson 07: MS ACCESS - Handout. Introduction to database (30 mins) Lesson 07: MS ACCESS - Handout Handout Introduction to database (30 mins) Microsoft Access is a database application. A database is a collection of related information put together in database objects.

More information

www.gr8ambitionz.com

www.gr8ambitionz.com Data Base Management Systems (DBMS) Study Material (Objective Type questions with Answers) Shared by Akhil Arora Powered by www. your A to Z competitive exam guide Database Objective type questions Q.1

More information

Foundations of Business Intelligence: Databases and Information Management

Foundations of Business Intelligence: Databases and Information Management Foundations of Business Intelligence: Databases and Information Management Content Problems of managing data resources in a traditional file environment Capabilities and value of a database management

More information

Querying the Data Warehouse Using Microsoft Access

Querying the Data Warehouse Using Microsoft Access Querying the Data Warehouse Using Microsoft Access I. What is a Data Warehouse? A data warehouse stores data from current and previous years that have been extracted from the various operational databases

More information