You are on page 1of 3

Tutorial 2

Readings:

1. Chapters 1 and 2 in the SAD textbook.

2. Chapters 1, 2, 7.3.2 and 7.3.4 in the DB textbook.

3. Related items on Wikipedia, such as planning phase, feasibility analysis,


database environment, database management system, ANSI-SPARC 3 level
architecture, and so on.

4. Related topics on w3schools, such as create table and drop table.

Resources:

You might find some of the following resources useful:

1. Wikipedia http://www.wikipedia.org/

2. W3C school – SQL tutorials: table creation


http://www.w3schools.com/sql/sql_create_table.asp

3. W3C school – SQL tutorials - drop http://www.w3schools.com/sql/sql_drop.asp

Page 1
Part A – SAD Questions (1 mark):

1. What are the major questions in the planning phase of SDLC?

2. Describe the advantages and disadvantages of DBMS.

3. Describe the ANSI-SPARC 3 level architecture.

4. What are logical data independence and physical data independence


respectively? How can they be supported by the ANSI-SPARC 3 level
architecture?

You should type your answers to these questions.

Part B – Project Practices (1 mark):

I. SAD - Final project planning. Consider the following questions in order to


complete the planning phase of the final project.

a) Why should I select this project?

b) Is this project feasible?

c) Which variant of SDLC will be used in this project?

d) What is the project plan?

e) Who will be involved in?

f) How to minimize the potential risks? What are the potential risks?

You should type your answers to the above questions. Also, you need to deliver a
final project work plan (Hint: based on the learning guide).

Page 2
Part C – SQL Questions (1 mark):

I. SQL – connect to Microsoft SQL Server Management Studio.

II. SQL – table creation and deletion.


a. Create 4 tables: staff, customer, timetable, classes with some attributes
and primary keys.

b. Drop the above tables and recreate them again.

c. Write an SQL statement to create a subject table with subjectCode as the


primary key. In addition, the column “subject name” must not be empty.
This table must have another field, subjectName with maximum 20
characters.

d. Write an SQL statement to drop the above table.

Note: for comparison purposes, you better keep all records of your SQL statements
(simply save them in a separate .txt file). You must take screenshots of your
queries and the results too.

You should type your answers to these questions.

Page 3

You might also like