Dbms MySQL Exercise
Dbms MySQL Exercise
b) Specify a constraint that no input of marks can be less than zero or greater than 100.
c) Input the following details alone (Regno, name, mark1, mark2) and calculate the total and
average and update the database.
d) Delete the student details for the specified regno.
2) a) Create a table employee (empid, name, dept_name, hire_date, salary) and specify the
corresponding constraints
b) Display the employees who are working in sales department
c) Find out the number of employees working in purchase department.
b) Specify the constraint that bill_no should not be null and grater than 1000.
4) a) Create tables
Student_details (regno, name, class, batch_year, semester, result) and insert records
c) Find the total of marks when marks are input and update the database.