Write a program in PHP using for loop and embed it in HTML.
CS406 Assignment 3 Solution and Discussion
Assignment No. 03
CS406 – Web Based Database Applications
Total Marks: 20
Due Date: 24-Jan-2020
Assignment Submission Instructions:
Please read the following instructions carefully before submitting assignment:
It should be clear that your assignment will not get any credit if:
o Assignment is submitted after due date.
o Submitted assignment does not open or file is corrupt.
o Assignment is copied (From internet/ to from students).
o You must submit assignment only in .sql or .txt or zipped format on VULMS.
The purpose of this assignment is to make you familiar with following topics:
• MySQL Overview, Introduction, Installation, Configuration Steps
• MySQL-Structure (RDBMS , Creating Table for web application, Data Types)
• Insert, Update, Delete, Connecting to MySQL using a client such as PHP MyAdmin or MySQL Workbench
You have to use phpmyadmin GUI tool to design database and tables, also create relations and then export complete schema and submit your exported .sql file on LMS.
Assignment 20 marks
Consider the “HR database” structures given below and write the following queries.
Write a query to select FIRST_NAME from employees table without duplications. (5 Marks)
Write a query to select top 5 rows from employees table where salary is less than or equal to 5000. (5 Marks)
Write a query to find employees with null hire_date from employees table. (5 Marks)
Write a query to select all employees starting last_name with “M”. (5 Marks)
Deadline: Your assignment must be uploaded on or before the given dye date. We shall not accept your solution through email after the due date.