Survey
Client Business Requirements: Your customer is called Magic Survey, a well-known company for online surveys and marketing. Your team will design a database for their online survey web application. The database stores all the information related to surveys, users, and responses.
- Anyone can take an active survey if they have the survey link.
- An active survey means it is not closed or canceled by the user or not after the deadline.
- All users must sign up with a unique email and strong password before creating surveys.
- Password must have at least eight characters long, one upper case, one lower case, one number, and one special character.
- The users must provide a first name, last name, email, and phone number.
- The users can look up the surveys by name or code.
- The users can remove or delete the surveys from their list, but the data is kept in the database.
- The users can view all the surveys and responses.
- The users can cancel or close the survey at any time.
- Each survey must have a code, name, description, start date-time, and end date-time.
- One survey must have a minimum of five questions.
- The users can arrange questions in a survey in any order.
- Each question must have a name, description, and type.
- Question type: o Multiple answers: Respondents can choose more than one answer from the available options. o Multiple choice: Respondents can choose only one answer from the available options. o Yes/No: Respondents can either choose yes or no. o Essay: Respondents can enter anything into the answer textbox.
- Some question types, such as multiple answers and multiple-choice, have a list of answer options so the respondents can select only the options from the list.
- Respondents can be anonymous or registered users.
- All tables must have a timestamp to know when the record is inserted. Additional Submission Requirements for the Project
- Provide a SQL script to create a database called “survey” in MySQL server. Ensure your script can create the database and all the tables without an issue.
- Create a VIEW with the first name, last name, email, and phone number of all users who create more than ten surveys.
- Create a VIEW showing all the surveys with more than ten responses.
- Create a VIEW showing all the surveys with more than ten questions.
- Create a VIEW showing all the removed or deleted survey