Title Outcomes: Admin

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

Course Code & Course: EC601 DATABASE SYSTEM

Programme: DTK 6
Assessment task: PRACTICAL WORK 5
Student Learning Time (SLT) : 60 minutes

TITLE
CLO

Lecturer:
Date:
Total marks : (30
report) +
(70 rubric)
Duration: 2 hours

: Introduction Structured Query Language (SQL)


: CLO1, LD1
: By the end of this laboratory session, you should be able to:
1.
Familiar with interface
2.
Use SQL command to make simple query.
3.
Use SQL command to display infortmation based on criteria.

OUTCOMES

EQUIPMENTS & COMPONENTS


1. Computer
2. MySQL Workbench

Theory: MySQL is an open source relational database management system


(RDBMS) based on Structured Query Language (SQL).
MySQL runs on virtually all platforms, including Linux, UNIX, and Windows.
Although it can be used in a wide range of applications, MySQL is most often
associated with web-based applications and online publishing and is an
important component of an open source enterprise stack called LAMP.

Admin
Internet

Online
user

cloud

DBMS
Webpag
e

Database

ACTIVITY 5A: Redefine interface

What are those upper 3 categories?

SQL Development allows editing and execution of SQL queries and scripts,
create or alter database objects and edit table data.

Data Modeling covers the EER Modeling functionality you might already be
familiar with from previous MySQL Workbench releases.

Server Administration offers administrative tasks like starting/stopping the


server, edit the database server configuration, create user accounts, do data
dumps and much more.

What are those tab ?

1. Create a new Connection Before you can start any other tasks using the
SQL Editor, forward engineering your model, or managing your database server,
you need to create a new Database Connection. You can do that by using
the New Connection Wizard or if you are an advanced user by using
the Manage Connections dialog.You will have to enter the usual connection
parameters, like IP address and port the server is running on as well as your
username and password.
2. Open Editor After you have created a new connection, it will be displayed in
the list of available Database Connections. Simply double-click on the list entry to
open a SQL Editor and start querying.
3. Create a new model - If you want to start your work by designing a visual
database design first, click the Create new EER Model action item. An empty
model will be created for you, only featuring the my_db schema which you can
easily rename to the desired name.
4. Create a New Server Profile In order to administer your database server you
have to register it within MySQL Workbench first. Use the New Server
Profile Wizard or if you are an advanced user use the Manage Server
Profiles dialog.
5. Open Admin Once the new Server Profile is registered and appears in the list
box you can double-click it to open the Admin.

Activity 4B: Familiarize with MySQL environment

3
4
6

Question 1 (1m): MySQL workbench working area can be divided into 6


areas. State the name all the area and give its function regarding to the
areas name.
Activity 5B: First database execution
1. Select (double click) Sakila connection as your recent database
connection. Please note Sakila is database instance that exists as
education purpose.

2. A new query tab will appear. Create a new command in query that is:
Select * from
customer;

3. Click on the icon given above.


Question 2 (1m):: What are the result and the output? Print screen and
place it on your report. Discuss the outcome.
4. Add a syntax that is:
Select * from customer;
from last_name is
WILLIAMS;
Question 3 (1m):: what is the result? Print screen and place it on your
report. Discuss the outcome and how to overcome the problems?
5. The manager want to see a customer that buy a stuff from store ID
=1 and store ID= 2 in different outcome. Do a SQL statement regarding
to this problems.
Question 4 (1m):: What is the syntax you used? Prints screen those
outcomes.
6. The manager also wants to see the customer that is inactive
(value=0) within the store id and customer id.

Question 5 (1m):: What is the syntax you used? Prints screen the output
and what is the outcome?
7. The manager also wants the information about city in London and
Moscow in City table in Sakila database.
Question 6 (1m):: What is the syntax you used? Prints screen the output
and what is the outcome.
8. The manager also wants the information from table film_category that
category_id is between 14 in 16 in Sakila database.
Question 7 (2m):: What is the syntax you used? Prints screen the output
and what is the outcome.
9. The administrator wants to know the people who live in places that
have Boulevard in table of address in Sakila database.
Question 8 (2m):: What is the syntax you used? Prints screen the output
and what is the outcome.
REPORT
Please include the following item in your report:

1.
2.
3.
4.
5.
6.
7.

Title 2 marks
Outcomes 2 marks
Procedure - 2 marks
Result 6 marks
Questions - 10 marks
Discussion for both activity 5 marks
Conclusion 3 marks

REFERENCE BOOK
Anderson V. (2003). Microsoft Office 2003: The Complete Reference. Osborne
McGraw-Hill. (ISBN: 0-072-22917-9)
Connolly T.M and Begg C.E (2009). Database System A Practical Approach to
Design, Implementation and Management 5th Edition. Pearson Addison Wesley.
(ISBN: 0-321-521306-5)

RUBRIC OF PRACTICAL WORK

LAB 5: Introduction Structured Query Language (SQL)

Learnin
g

Domain

Aspects

Excellent

Very Good

Good

Fair

10

7-9

4-6

1-3

Student can

Student
can

Unsatis
factory
0

CLO1, LD1

Introduction Structured Query Language


(SQL)

(LD)
A. REDEFIN
E
INTERFAC
E
Able to
1
redefine
interface
base on
steps
given.

B. DATABAS
E
EXECUTI
ON
2
Able to
execute
database
and query
in SQL.

understand understan
d and
and follow
follow all
all steps
successfully
steps
without
being
assisted.

successfull
y after
being
assisted.

Student
can

Student
can
understan
d and
follow all
syntax
with
some
error.

understan
d and
follow all
syntax
successfull
y without
error.

Student
can

understan
d and
follow all
steps but
complete
only
some.

Student
can

understan
d and
follow all
syntax but
completes
only some
of the tasks

Student
can

understan
d but
unable
follow all
steps.

Student
can
understan
d the and
follow all
syntax but
unable to
complete
the tasks.

Student
did not
underst
and and
unable
to
follow
the
steps.

Student
did not
underst
and the
syntax
and
unable
to
complete
the
tasks.

Poin
ts

You might also like