5
ACCESS( TABLE , RELATIONSHIP,FORM) IMPLEMENTING A DESIGN. OBJECTIVE Students will be required to convert logical database to physical implementation using any DBMS visual tools. Student will design based on the system and ensure that all the related button and linking works as required. DISCUSSION / RESULT / EXERCISE THE DBMS There are many DBMS product in the market. One simple example is using Microsoft Access 2007 can illustrate the capabilities of DBMS product. An Access database stores not only data but also objects associated with that data. CREATING DATABASE A table stores data about a particular subject and is the basic element in any database. The data in a a table is organized in rows (records) and columns (fields). A form provides a more convenient and attractive way to enter, display and or print the data in a table. You are required to create a database – Student Database. In the database, you should do the following task: 1. Create three tables : tblStudent, tblCourse, and tblStudentCourse. 2. Insert at least 10 records into the table (Get the data from your classmate). 3. Build the relationship between tblStudent and tblCourse. 4. Create a form which will able to link with the table that had been created. The following is an example of database design for student and course. You can follow the same procedures to accomplish your work. 1. Database Design This database contains three tables : tblStudent, tblCourse, and tblStudentCourse. tblStudent (StudentID , StudentName, Programme, Gender, Age) tblCourse(CourseID , CourseTitle, CreditHour, Description)

IMPLEMENTING A . Web viewThere are many DBMS ... Set the first field “StudentID” as “the primary key” by ... Repeat the procedures of b) and input the field names and data

  • Upload
    ngokien

  • View
    224

  • Download
    2

Embed Size (px)

Citation preview

Page 1: IMPLEMENTING A . Web viewThere are many DBMS ... Set the first field “StudentID” as “the primary key” by ... Repeat the procedures of b) and input the field names and data

ACCESS( TABLE , RELATIONSHIP,FORM)

IMPLEMENTING A DESIGN.

OBJECTIVE

Students will be required to convert logical database to physical implementation using any DBMS visual tools. Student will design based on the system and ensure that all the related button and linking works as required.

DISCUSSION / RESULT / EXERCISE

THE DBMS There are many DBMS product in the market. One simple example is using Microsoft Access

2007 can illustrate the capabilities of DBMS product. An Access database stores not only data but also objects associated with that data.

CREATING DATABASE A table stores data about a particular subject and is the basic element in any database. The

data in a a table is organized in rows (records) and columns (fields). A form provides a more convenient and attractive way to enter, display and or print the data in

a table.

You are required to create a database – Student Database. In the database, you should do the following task:

1. Create three tables : tblStudent, tblCourse, and tblStudentCourse.2. Insert at least 10 records into the table (Get the data from your classmate).3. Build the relationship between tblStudent and tblCourse.4. Create a form which will able to link with the table that had been created.

The following is an example of database design for student and course. You can follow the same procedures to accomplish your work.

1. Database DesignThis database contains three tables : tblStudent, tblCourse, and tblStudentCourse.

tblStudent (StudentID, StudentName, Programme, Gender, Age)tblCourse(CourseID, CourseTitle, CreditHour, Description)tblStudentCourse(StudentID, CourseID, DateTaken, Status)

Steps:a) Open Microsoft Access 2007, and click “Blank Database”. You need to name your

database as “dbStudent.accdb” and save it into a specified folder. Click “Create”.b) In the database, you will see “Table1”, which is the default name created by Access. The

datasheet view of “Table1” is on the right hand side of the database. Right click “Table1” on the top of the datasheet view and choose “Design View”. In the pop up window, rename the table as “tblStudent”.

c) Input the field name and choose the data type as shown in Figure 1.d) Set the first field “StudentID” as “the primary key” by right clicking the very beginning of

the first row. Now, the design of the table “tblStudent” is completed.

Page 2: IMPLEMENTING A . Web viewThere are many DBMS ... Set the first field “StudentID” as “the primary key” by ... Repeat the procedures of b) and input the field names and data

e) To create other two tables “tblCourse” and “tblStudentCourse”, go to the top menu and click “Create” and then “Table”, you will see a new table named “Table1”. Repeat the procedures of b) and input the field names and data types as indicated in Figure 2 and 3.

f) Input the data as indicated in Figure 4a, 4b, and 4c.

Figure 1

Figure 2

Page 3: IMPLEMENTING A . Web viewThere are many DBMS ... Set the first field “StudentID” as “the primary key” by ... Repeat the procedures of b) and input the field names and data

Figure 3

Figure 4a

Figure 4b

Figure 4c

2. Build relationships for Student and Course databaseClick Datasheet Relationships……from the Tool menu, you will see a dialogue box. Select all the tables and hit the button “Add”. Simply drag CourseID from tblCourse to tblStudentCourse and StudentID from tblStudent to tblStudentCourse. The relationships

Page 4: IMPLEMENTING A . Web viewThere are many DBMS ... Set the first field “StudentID” as “the primary key” by ... Repeat the procedures of b) and input the field names and data

among the tables are built (Figure 5).

Figure 5

3. Create a form which will able to link with the table that had been created.

4. Create logical Schema/Relational Data model according to the above information

----------------------------------------------------- ---- GOOD LUCK-----------------------------------------------------------