IT-FPX2230_LastFirst_Assessment4-Attempt1

.docx

School

Capella University *

*We aren’t endorsed by this school

Course

2230

Subject

Computer Science

Date

Feb 20, 2024

Type

docx

Pages

6

Uploaded by aralph1993

Report
IT-FPX2230: Introduction to Database Systems Weekly Solutions Submission Template Name : Angela Ralph Date : 2/4/24 Course : IT-FPX2230 – Introduction to Database Systems Assessment : 3 Insert here a copy of your tee log file(s) of all of your SQL statements so that they could be unzipped, loaded, and run in MySQL command line client: Insert here a copy of SQL statements text that you used here (copy and paste SQL statements here): - use volunteers; Database changed - CREATE TABLE hours ( -> volunteerId int, -> amountOfFunds int); - DROP TABLE hours; - CREATE TABLE hours ( -> volunteerId int, -> hoursWorked int); - CREATE TABLE funds ( -> volunteerId int, -> amountOfFunds int); - INSERT INTO funds VALUES (1, 100); - INSERT INTO funds VALUES (2, 432); - INSERT INTO funds VALUES (3, 28463); - INSERT INTO funds VALUES (4, 284); - INSERT INTO funds VALUES (5, 32847); - INSERT INTO funds VALUES (6, 2384); - INSERT INTO funds VALUES (7, 283); - INSERT INTO funds VALUES (8, 28); - INSERT INTO funds VALUES (9, 108); - INSERT INTO funds VALUES (10, 2837); - INSERT INTO hours VALUES (1, 10); - INSERT INTO hours VALUES (2, 13); - INSERT INTO hours VALUES (3, 5); - INSERT INTO hours VALUES (4, 20); - INSERT INTO hours VALUES (5, 23); - INSERT INTO hours VALUES (6, 18); - INSERT INTO hours VALUES (7, 16); - INSERT INTO hours VALUES (8, 10); - INSERT INTO hours VALUES (9, 10); - INSERT INTO hours VALUES (10, 25); - SELECT * FROM hours; 1
- SELECT * FROM funds; - SELECT hours.volunteerId, hours.hoursWorked -> FROM funds -> JOIN hours ON funds.volunteerId = hours.volunteerId; - SELECT amountOfFunds, hoursWorked -> FROM funds -> JOIN hours ON funds.volunteerId = hours.volunteerId -> WHERE hoursWorked = 10; - SELECT amountOfFunds, hoursWorked -> FROM funds -> JOIN hours USING (volunteerId); Insert screenshot(s) showing the result running your SQL statements here: 2
3
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help