Vous êtes sur la page 1sur 2

LAB1

1. Create a user and give him all privileges.


2. A professor wants to implement an online grade book to keep track of and display student
grades for several courses. Courses can generally be differentiated by department, course
number, semester, and year, and knowing the course title can be useful. For each class, the
grade is determined by grades on various categories, including tests, quizzes, homework,
labs, projects, etc. The percentages of the categories should add to 100%. The number of
assignments from each category is unspecified, and can change at any time.

Example: A course may be graded by the distribution: 50% tests, 20% quizzes, and 30%
homework. If there are 5 tests, each test is worth 50/5=10% of the grade.

Assignment scores are stored on a point basis, and assignments with a different number of
points in the same category are worth equal weight.

Example: If quizzes are worth 24%, and there are three quizzes worth 20, 50, and 100 points,
each quiz is still worth 24/3 = 8% of the final grade. If a fourth quiz is added, each quiz is now
worth 24/4 = 6% of the grade.

The professor wants to be able to list students for each class, including the name, student
number, email, and major of each student. He needs to change the distribution, add and
delete assignments, and update grades.

He would also like the system to compute the average grade for each assignment, the current
percentage score of each student. He would also like to sort the students by name, total
percentage, or on any individual assignment.

A few important things to remember:


a. A student might be in more than one course.
b. Since there will be many scores listed for students, it is important to not duplicate
information.
c. Computed values, including average scores, final percentages, etc. should not be
stored in the database.

We want to design a database to store the required data for this project.

Made with by 1
3. Create your mapped tables with their columns. Be aware of columns data types and Storage
engine.
4. Create the relationships between the tables.
5. Index the email field as unique.

REPORTS
1. MySQL Engines and their Differences?
2. DBMSs Types?
3. How to configure MySQL to accept connection from external client?
4. How can we use mysqlshow tool to view databases, tables, columns and keys?

TRY @ LAB
1. Get Time, Date, Current user, MySQL Version using prompt?
2. Create a temporary table form existing table and fill it with its data.

Made with by 2

Vous aimerez peut-être aussi