Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

DBA Project L4

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Level 4 practical question

Project 1

Task 1: normalize/remove duplicated records

The following table contains information about project ,employees ,job class of an employee ,hours rate
an employee do on specific projects and hours charged

Project

projNr projName emplNr empName jobClass hrRate Hours chgd

15 Evergreen 103 Toyiba E Eng 80 40


Evergreen 101 James DB Dsn 95 40
Evergreen 105 Alemu DB Dsn 95 25
18 Amberwave 114 Dereje Analyst 95 40
Amberwave 118 Jalala Support 20 40
Amberwave 104 Almaz Analyst 95 30
22 Rolling Tide 105 Afewerk DB Dsn 95 15
Rolling Tide 104 Almaz Analyst 95 10
25 Star flight 107 Marta Pgmr 35 40

1. Normalize the table to the appropriate normal form by identifying the functional
dependency
2. Identify the functional dependency
3. Normalize the above table to the appropriate normal form and create relationship on the
paper
4. Identify functional dependency
Task 2: Make the database ready to use
Using the above table that you already normalized in project 1 perform the following
activates
1. Using Microsoft SQL server 2008 or latest version the normalized table by assigning
appropriate data type for each field
2. Create relationship
3. Create primary key and foreign key
4. Fill records to attribute that have been
Project 2: design and create security strategies
Create different type of security strategies for the database users on SQL server
2008 or latest version
Case 1: by using the above database in project 1 assume you are a database
Administrator of Xy company and the company database is used and accessible by
different Employees Each database user has her/his own privilege and permission to
access the table assigned by you .Now you need to grant privilege and logging
account for each database user that access and use the table according to the
following rule.

Database user Login Password Privileges Table name Description


name account
Alemu Login 1 1234 Insert,update,delete,read Employee
Kemilat Login 2 123 Read Employee
Habtamu Login 3 Login123 Insert,update,delete and All table Can grant this
read privilege to
others
Task 1: design and create security strategies
1. By using the previous database create the three database user with their
respective login account and password
2. Grant privileges for each user based on the given information
3. Login to SQL server principal using “login” account and grant insert privilege to
“kemilat” user
4. When habtamu tries grant drop privilege to kemilat . the SQL server displays
message like this “Access denied” what would you do to enable kemilat to
drop table/database?
Project 3: create a simple program
 Create a program using one of the programming language (C++,C#,VB
etc)
Task 1: create a simple program
1. Write a program that displays your full name ,age, birth date and department
2. Write a program that accepts two numbers and display the largest one
3. Write a program that displays the following output
1
1 2
1 2 3

1 2 3 4

1 2 3 4 5
#include<iostream.h>

int main()

cout<<"name tiruwork abebe:"<<endl;

cout<<"age 25:"<<endl;

cout<<"birthdate 2/5/1985:"<<endl;

cout<<"department database administration:"<<endl;

return 0;

#include<iostream.h>
#include<iostream.h>
int main()
int main()
{
{
cout<<"the for loop statement:"<<endl;
int a,b,c;
for (int i=1;i<=5;i++)
a=15;
{
b=10;
for (int j=1;j<=i;j++)
c=(a>b)?a:b;
cout<<c; {

return 0; cout<<j;

} }

cout<<endl;

return 0;

You might also like