Question

In: Computer Science

In this assignment, you must use the MySQL Command Line Client Window. READ ALL INSTRUCTIONS BEFORE...

In this assignment, you must use the MySQL Command Line Client Window.

  • READ ALL INSTRUCTIONS BEFORE STARTING.
  • Install MySQL Server if you haven't done it yet. Some instructions are posted here: MySQL
  • You'll need to take screen shots throughout the assignment (more details below).
  • You may change the properties of your MySQL Command Line window by right-clicking on the title bar (or the icon on the upper left corner of the window), and selecting the Defaults menu.
    • This will allow you change the size and color of the window and the fonts.
    • You should increase the screen buffer size (height), in the Layout tab, to allow you to keep more lines available to review (when you scroll up).
    • The Command History buffer size, in the Options tab, is not the same as the above. It is the number of commands available when you use the up and down arrow keys to review previous commands. You may increase that too.
    • Remember that the command history is gone when you close the MySQL Command Line Client window. Your databases and tables are saved and will still be there when you log in again.  

Perform all the following steps in order. Some steps are repeated on purpose.

Open the MySQL Command Line Client.

1. The first query you must do, before creating the database is:

SELECT NOW();

2. Create a database named 'school'.

  • The 'school' database will have the following tables:
student (student_id, first_name, last_name, dob, home_street, home_city, home_state, home_zip)

faculty (employee_id, first_name, last_name, dept_id)

department (dept_id, dept_name, building_code)
  • You do not need to specify primary or foreign keys yet.

  • Choose appropriate data types and sizes for the fields.

  • Make sure the fields student_id and last_name do not allow NULL values. Other fields should allow NULL values.

3. Create the above tables.

4. Load fictitious data into your tables:

  • The student table should have at least 10 records. You should have 5 students with Tampa as their home_city. Other students should reside in other cities of your choice.
  • The faculty table should have at least 5 records.

  • The department table should have at least 3 records. The field building_code is a 3 letter code that identifies the location of the department, such as ENB, CPR...

  • You should make up your own data (do not use data from another student).

5. Write (and run) SQL queries to:

  • Show all existing databases in your RDBMS.

  • Show the tables in the 'school' database.

  • Show the structure of each table in the 'school' database.

  • Show all the data in each of the three tables in the 'school' database.

  • Show only the first name and last name of all the faculty.
  • Show only the first name, last name and home city of all the students who live in Tampa.

6. The last query you must do, after everything is done is:

SELECT NOW();
  • All of the above steps must be done in the MySQL Command Line Client.
  • You must take screen shots of the above commands AND results (showing in your command-line client window). It is okay to include any errors you made along the way.
    • You may use the 'Snipping Tool' or 'Snip and Sketch' (on Windows) , or 'Grab' (on MacOS), or see here for other options: https://www.take-a-screenshot.org/  (Links to an external site.).
    • Please avoid taking pictures of the screen with a camera/phone as it can be very hard to read (blurry/glare/small), and more time-consuming for you than the above tools.

Solutions

Expert Solution


Related Solutions

PLEASE READ ALL OF THESE INSTRUCTIONS BEFORE BEGINNING THIS ASSIGNMENT. For this assignment, you need to...
PLEASE READ ALL OF THESE INSTRUCTIONS BEFORE BEGINNING THIS ASSIGNMENT. For this assignment, you need to analyze the information below from BOTH the management AND the employee perspective. This information pertains to a labor union in a simulated/made up/not real firm in Glen Ellyn. The first part of your information relates to Management – the second part relates to the Labor Union employees. I have provided you with information from the last union negotiations at the plant in 2016. It...
INFS 2400 – Challenge Assignment 6 Read ALL of the instructions carefully before starting the exercise!...
INFS 2400 – Challenge Assignment 6 Read ALL of the instructions carefully before starting the exercise! Dear Colleague, Earlier today I built my fifth website using HTML5, CSS3, and Bootstrap4. Bootstrap seems amazing, but it never did what it should do – make my website look better. Also, my page should have a blue theme that was provided in the CSS folder. This also didn’t work. My website is supposed to look like what is shown in Figures 1 (see...
Use Workbench/Command Line to create the commands that will run the following queries/problem scenarios. Use MySQL...
Use Workbench/Command Line to create the commands that will run the following queries/problem scenarios. Use MySQL and the Colonial Adventure Tours database to complete the following exercises. 1. List the last name of each guide that does not live in Massachusetts (MA). 2. List the trip name of each trip that has the type Biking. 3. List the trip name of each trip that has the season Summer. 4. List the trip name of each trip that has the type...
Open the Command Prompt window and use the nslookup command to identify the domain names that...
Open the Command Prompt window and use the nslookup command to identify the domain names that correspond to the following IP addresses: 161.170.244.20 205.251.242.103 144.160.155.43 Use the Command Prompt window and nslookup command to identify the IP addresses that correspond to the following domain names: walmart.com amazon.com att.com Close the Command Prompt window. Submit your findings.
Assignment instructions: In this assignment, you will first have to go “out” and do something before...
Assignment instructions: In this assignment, you will first have to go “out” and do something before you can write it up. Read here what you need to do: - Break a social norm (Caution: do not wear anything illegal, dangerous, or extremely disruptive.) For example: Wear formal attire to a casual get together. Wear a winter jacket in the summer. Wear sandals in the snow. Wear your pajamas outside. Wear an unstylish or outdated outfit. (What is a social norm?...
Instructions: You are not required to use R markdown for the lab assignment. Please include ALL...
Instructions: You are not required to use R markdown for the lab assignment. Please include ALL R commands you used to reach your answers in a word or pdf document. Also, report everything you are asked to do so. Problem 3 : In lab lecture notes and demo code, I simulated random samples from Exp(1) to verify classical central limit theorem numerically. I also stressed that no matter what type of random samples you use, the standardized partial sum Sn...
Instructions: You are not required to use R markdown for the lab assignment. Please include ALL...
Instructions: You are not required to use R markdown for the lab assignment. Please include ALL R commands you used to reach your answers in a word or pdf document. Also, report everything you are asked to do so. Problem 1 : Consider a binomial random variable X ∼ Bin(100, 0.01). 1. Report P(X = 7), P(X = 8), P(X = 9), try to use one ONE R command to return all these three values. 2. Find the probability P(0...
Instructions – PLEASE READ THEM CAREFULLY The Assignment must be submitted on Blackboard (WORD format only)...
Instructions – PLEASE READ THEM CAREFULLY The Assignment must be submitted on Blackboard (WORD format only) via allocated folder. Assignments submitted through email will not be accepted. Students are advised to make their work clear and well presented, marks may be reduced for poor presentation. This includes filling your information on the cover page. Students must mention question number clearly in their answer. Late submission will NOT be accepted. Avoid plagiarism, the work should be in your own words, copying...
Instructions – PLEASE READ THEM CAREFULLY The Assignment must be submitted on Blackboard (WORD format only)...
Instructions – PLEASE READ THEM CAREFULLY The Assignment must be submitted on Blackboard (WORD format only) via allocated folder. Assignments submitted through email will not be accepted. Students are advised to make their work clear and well presented, marks may be reduced for poor presentation. This includes filling your information on the cover page. Students must mention question number clearly in their answer. Late submission will NOT be accepted. Avoid plagiarism, the work should be in your own words, copying...
For this assignment, you will create a command-line version of the game ​Hangman. You should work...
For this assignment, you will create a command-line version of the game ​Hangman. You should work in a group of two on the project and not view Hangman code of other students or found on-line. Submit this project-- your .java file-- here on Canvas. For this assignment you will research on StringBuilder Class (​Use this link​) and use it in your code. Functional requirements (rubric) ● Your game should have a list of at least ten phrases of your choosing...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT