COC Practical l3
COC Practical l3
Compertences covered
1 gather data to identify busines requirments
2. Identitfy physical database requirmaents
3. Design a databasee
4. Using Structural Query languages
5. design program logic
6. test physical database implementation
7. create technical docmentation
8. Model data objects
Instruction:- under this project you are expected to perform on the information provided
Task1:- Design an E-R diagram for a database course and course section
Requirments for the database
The name and employee in number salary and email
How long sections each professor teaches
The name nubmber and topc for each course sector
Each course section must have only one professor
Each course can have multiple sections
Under this task you are expected to perform on the information procided
Instal Microsoft office viso 2007 software
Design the ERD for the database on software
Taske2: Design flowchart
The collowing pesedo code descirbes ans algorithm which calculate the sum
of N numbers between 1 and N
Start ;
Sum=;
Count=1;
Display ‘input value for N’;
Accept the value for N;
While (count<=N);
Sum=sum+count;
Count=count+1;
TPTC COC Based Question
Instruction:- under this task you are expected to perform the follwing
activities base information provided whil instaing SQL server 2008
e
2. COURSE
3. GRADE REPORT
A) Add a new Colum name ‘Email Address’ as type char with size 25 to
student table
B) Create a lookup Colum for the fieid deptname and users can selected
the value (computer science ,Electrical) they want from at list
C) Insert the sample record in to the tables as shown
STUDENT
COURSE
GRADE-REPORT
Instruction:- under this task you are expected to perform the following
activities based on the information
1. Develop SQL query that retrieve the name of all student who secure ‘B’ and save it by
the name result ‘B’ in D:drve
2. Develop a SQL query that retrieve student _id and name of all female student who taken
the course title ‘software’ and save it by the name sort in Desktop
3. Write a SQL statement that retrieve all students who score grade ‘A’ in computer
science department and sort them descending by their department and ascending by
their name and then save it by the name order in d:drive
4. Write a SQL statement that create a backup for ABC-collage database and save the
backup with the backup name ABCbackup in local disk d:drive
5. Develop a SQL statement that changes the section in to ‘ROOM4’ of all students who
score grade ‘A’ or ‘B’ for the course title ‘software’
6. Assume that ABCcollege database was dropped accidental write a SQL query that
Recovery dropped database for the backup