Database Administration Level IV Practical Exam 4
Database Administration Level IV Practical Exam 4
2. Import the above table which is created in excel to Microsoft access database and save it as registration2
Normalize the imported table registration2 in its appropriate normal form and save the derived tables by
any name you like
3. Create a relationship for the normalize tables and save it by the name my relationship
Project: - 2 generating a report from a database
Time allowed 1:30 hr
The main task of projects
- Open Microsoft query analyses
- Write a SQL statement run and save it
1. Create a table and insert a records then save employstatisticstable
Employ id no salary benefits position
010 75000 15000 manager
105 65000 15000 manager
152 60000 15000 manager
215 50000 12500 manager
244 50000 12000 staff
300 45000 10000 staff
335 40000 10000 staff
400 32000 7500 Entry-level
441 28000 75000 Entry-level
\
2. Suppose you are a database administrator of the ABC Company. The manager of the company needs the list of
employees write a SQL statement using employstatisticstable of the ABC database that displays the list. The
report is expected to includes fields EmployeeIDNO, salary, benefits, position, execute and save the query by
the name emp1A, emp1B, emp1C, emp2A, emp2B, emp2C, emp2D, emp2E, emp2F respectively
A. The EmployeeIDNO’s of those making salary at or more over & 50,000
Select EmployeeIDNO from employstatisticstable where position = ‘manage’;
B. Display the id numbers of all managers
Select EmployeeIDNO from employstatisticstable where salary >= 50000;
C. Display all staff making salary over $40,000
Select EmployeeIDNO from employstatisticstable where salary>40000 AND position=’ staff’;
Page 1
D. All those who make salary less than $40,000 or have less than $10,000 in benefit listed together
Select EmployeeIDNO from employstatisticstable where salary<40000 OR benefit<10000;
E. Rows where the salary is greater than $60,000 and the position column is equal to manager or benefit column is
greater than $12,000
Select EmployeeIDNO from employstatisticstable where position=’ manager’ AND salary >60000;
F. List of employees making a large salary ($50,000)or have a large benefit package (&10,000)and that happen to
be a manager
Select EmployeeIDNO from employstatisticstable where position= manager AND (salary>50000 OR
benefits > 10000);
G. List of all managers and staff
Select EmployeeIDNO from employstatisticstable where position IN (’manager’, ‘staff’);
H. List of making greater than or equal to $30,000 but less than or equal to $50,000, use
Select EmployeeIDNO from employstatisticstable where salary between 30000 and 50000;
I. You wanted to see all people whose last names started with “S”
Select EmployeeIDNO from employstatisticstable where last name LIKE ‘$S’
Note that:
a. The query can be written is upper or lower cases
b. The query should be written is query analyzer window
Project 3: applying security an Microsoft database 2003 server
Time allotted /1:30 hr/
The main task of the project
- Changing the authentication method of the server
- Creating a login and database user account
- Creating a role
- giving a privilege to role
Perform the following administrative tasks on the ms-SQL server using enterprise manager
1. Configure the authentication method of the server to be mixed /SQL server & windows/
2. Create SQL login account by name OCACA and password QLSS
3. In the ABC database create a user called OCACA by the login account OCACA that is already created on
question 2
4. In the ABC database, create a role called EOS and add the user OCACA in this role
5. Deny ‘SELECT’ permission for the role EOS on the employeestatistics table
Note:
To check that this project is done correctly, any select command on the order table should not return a result and
an error massage having ‘SELECT’ permission denied an object “employeestatistics” will be displayed. For
example when you try
USE ABC
SELECT * from employeestatistics
Oral question
1. Suppose your system security and its other features have been changed due to policy change or user request
what are you going to do to make the end users know about the change?
- Giving training / orientation - Preparing a manual
2. Suppose your system or database performance is very slow what are the possible causes for this low
performance? - Low capacity of hard disk
- Low speed processor - Read / write speed of hard disk
- Low capacity of memory - virus
3. After you completed developing a system what are you going to do before implementing the system? Testing
the system
4. What are you going to do when you try to connect your database server, an error message “SQL server doesn’t
exist or access is denied” is displayed?
- Check whether the user name and / or password are written correctly
- Check whether the service is running
5. When you run SQL statement, the statement is not executed currently and an error message is displayed. What
are you going to do to solve this problem?
- Check syntax or spelling error on the written statement
- Check the existence of the database or objects of the database.
Page 2