Group_1_Assignment01
.xlsx
keyboard_arrow_up
School
University of Texas *
*We aren’t endorsed by this school
Course
6320
Subject
Computer Science
Date
Apr 3, 2024
Type
xlsx
Pages
19
Uploaded by MasterGalaxyQuetzal12
Modern Data Management - Assignment 1
Database: Sakila
Instructions:
Each of the following worksheets in this workbook poses a set of questions or a task that you need to answer or complete. Follow the directions provided on each worksheet, save the workbook, rename it to include your first name and last name or your group number, and upload it to Canvas.
For each question you need to put the query that you developed in the light green box and the results of your query in the light yellow box.
completing this assignment here.
Question 1 (10 points)
Instructions:
Write a query to display the film_id, title, an
Your query (expand query area as needed):
SELECT film_id, title, description FROM film W
Query results (expand query area as needed
film_id
title
37 ARIZONA BANG
71 BILKO ANONYMOUS
101 BROTHERHOOD BLANKET
114 CAMELOT VACATION
175 CONFUSED CANDLES
304 FARGO GANDHI
344 FURY MURDER
366 GOLDFINGER SENSIBILITY
374 GRAFFITI LOVE
429 HONEY TIES
434 HORROR REIGN
448 IDAHO LOVE
460 INNOCENT USUAL
480 JEEPERS WEDDING
483 JERICHO MULAN
517 LESSON CLEOPATRA
519 LIBERTY MAGNIFICENT
537 LOVER TRUMAN
542 LUST LOCK
548 MAGNIFICENT CHITTY
567 MEET CHOCOLATE
575 MIDSUMMER GROUNDHOG
583 MISSION ZOOLANDER
624 NIGHTMARE CHILL
650 PACIFIC AMISTAD
nd description fields of all films that have a replacement cost of 25 dollars or above and a rental duration of less than 4 days (exclud
:
WHERE replacement_cost >= 25 AND rental_duration < 4 d):
description
A Brilliant Panorama of a Mad Scientist And a Mad Cow who must Meet a Pioneer in A Monastery
A Emotional Reflection of a Teacher And a Man who must Meet a Cat in The First Manned Space Station
A Fateful Character Study of a Butler And a Technical Writer who must Sink a Astronaut in Ancient Japan
A Touching Character Study of a Woman And a Waitress who must Battle a Pastry Chef in A MySQL Convention
A Stunning Epistle of a Cat And a Forensic Psychologist who must Confront a Pioneer in A Baloon
A Thrilling Reflection of a Pastry Chef And a Crocodile who must Reach a Teacher in The Outback
A Lacklusture Reflection of a Boat And a Forensic Psychologist who must Fight a Waitress in A Monastery
A Insightful Drama of a Mad Scientist And a Hunter who must Defeat a Pastry Chef in New Orleans
A Unbelieveable Epistle of a Sumo Wrestler And a Hunter who must Build a Composer in Berlin
A Taut Story of a Waitress And a Crocodile who must Outrace a Lumberjack in A Shark Tank
A Touching Documentary of a A Shark And a Car who must Build a Husband in Nigeria
A Fast-Paced Drama of a Student And a Crocodile who must Meet a Database Administrator in The Outback
A Beautiful Drama of a Pioneer And a Crocodile who must Challenge a Student in The Outback
A Astounding Display of a Composer And a Dog who must Kill a Pastry Chef in Soviet Georgia
A Amazing Yarn of a Hunter And a Butler who must Defeat a Boy in A Jet Boat
A Emotional Display of a Man And a Explorer who must Build a Boy in A Manhattan Penthouse
A Boring Drama of a Student And a Cat who must Sink a Technical Writer in A Baloon
A Emotional Yarn of a Robot And a Boy who must Outgun a Technical Writer in A U-Boat
A Fanciful Panorama of a Hunter And a Dentist who must Meet a Secret Agent in The Sahara Desert
A Insightful Story of a Teacher And a Hunter who must Face a Mad Cow in California
A Boring Documentary of a Dentist And a Butler who must Confront a Monkey in A MySQL Convention
A Fateful Panorama of a Moose And a Dog who must Chase a Crocodile in Ancient Japan
A Intrepid Story of a Sumo Wrestler And a Teacher who must Meet a A Shark in An Abandoned Fun House
A Brilliant Display of a Robot And a Butler who must Fight a Waitress in An Abandoned Mine Shaft
A Thrilling Yarn of a Dog And a Moose who must Kill a Pastry Chef in A Manhattan Penthouse
ding 4 days).
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
Related Questions
SQL Database help
arrow_forward
Scenario and Database Model: Instant Ride
InstantRide is the new ride sharing application in the city and it has just started its operations.
With the help of the Instant Ride mobile application, the users request a ride with their location.
Drivers and cars are assigned to the request; and then the driver picks up the user to ride their
requested location. Information for the users, drivers and cars are stored in the database as well as
the travel transactions.
In the USERS table, information for the users are stored with their first name, last name and email:
USER_ID
3001
3002
3003
3004
3005
3006
3007
3008
USERS Table
2001
2002
2003
2004
USER_FIRST_NAME
Willie
Justin
Anthony
Ece
Jack
Ryan
Nursin
Sarah
Bobby
Randy
Jose
DRIVERS Table
Nursin
Butler
Howard
In the DRIVERS table, all the drivers in the InstantRide are stored with their name, driving license
number and check and rating information:
Walker
DRIVER_ID DRIVER_FIRST_NAME DRIVER LAST NAME DRIVER DRIVING LICENSE_ID…
arrow_forward
Scenario and Database Model: InstantRide
InstantRide is the new ride sharing application in the city and it has just started its operations. With the help of the InstantRide mobile application, the users request a ride with their location. Drivers and cars are assigned to the request; and then the driver picks up the user to ride their requested location. Information for the users, drivers and cars are stored in the database as well as the travel transactions.
In the USERS table, information for the users are stored with their first name, last name and email:
In the DRIVERS table, all the drivers in the InstantRide are stored with their name, driving license number and check and rating information:
In the CARS table, all the cars in the InstantRide system are kept with the license plate, model and year:
Finally, the transactions of the rides are stored in the TRAVELS table. For each travel, start and end time with location are stored. In addition, the involved driver, car and…
arrow_forward
Scenario and Database Model: InstantRide
InstantRide is the new ride sharing application in the city and it has just started its operations. With the help of the InstantRide mobile application, the users request a ride with their location. Drivers and cars are assigned to the request; and then the driver picks up the user to ride their requested location. Information for the users, drivers and cars are stored in the database as well as the travel transactions.
In the USERS table, information for the users are stored with their first name, last name and email:
In the DRIVERS table, all the drivers in the InstantRide are stored with their name, driving license number and check and rating information:
In the CARS table, all the cars in the InstantRide system are kept with the license plate, model and year:
Finally, the transactions of the rides are stored in the TRAVELS table. For each travel, start and end time with location are stored. In addition, the involved driver, car and…
arrow_forward
Relation:
Relation is a two-dimensional table in which data is named. The
relations have the named columns and numbers which denote the
unnamed rows.
Although relation is defined as the two-dimensional table of
data, not all the tables are considered as relations.
There are some properties that differentiate relation tables
from non-relation tables.
arrow_forward
The database has three tables for tracking horse-riding lessons:
Horse with columns:
ID - primary key
RegisteredName
Breed
Height
BirthDate
Student with columns:
ID - primary key
FirstName
LastName
Street
City
State
Zip
Phone
EmailAddress
LessonSchedule with columns:
HorseID - partial primary key, foreign key references Horse(ID)
StudentID - foreign key references Student(ID)
LessonDateTime - partial primary key
Write a SELECT statement to create a lesson schedule with the lesson date/time, horse ID, and the student's first and last names. Order the results in ascending order by lesson date/time, then by horse ID. Unassigned lesson times (student ID is NULL) should not appear in the schedule.
arrow_forward
The database has three tables for tracking horse-riding lessons:
Horse with columns:
ID - primary key
RegisteredName
Breed
Height
BirthDate
Student with columns:
ID - primary key
FirstName
LastName
Street
City
State
Zip
Phone
EmailAddress
LessonSchedule with columns:
HorseID - partial primary key, foreign key references Horse(ID)
StudentID - foreign key references Student(ID)
LessonDateTime - partial primary key
Write a SELECT statement to create a lesson schedule with the lesson date/time, horse ID, and the student's first and last names. Order the results in ascending order by lesson date/time, then by horse ID. Unassigned lesson times (student ID is NULL) should not appear in the schedule.
Hint: Perform a join on the Student and LessonSchedule tables, matching the student IDs
arrow_forward
Question Setup:
Scenario and Database Model: InstantRide
InstantRide is the new ride sharing application in the city and it has just started its operations. With the help of the InstantRide mobile application, the users request a ride with their location. Drivers and cars are assigned to the request; and then the driver picks up the user to ride their requested location. Information for the users, drivers and cars are stored in the database as well as the travel transactions.
In the USERS table, information for the users are stored with their first name, last name and email:
USER_ID
USER_FIRST_NAME
USER_LAST_NAME
USER_EMAIL
USERS Table
In the DRIVERS table, all the drivers in the InstantRide are stored with their name, driving license number and check and rating information:
DRIVER_ID
DRIVER_FIRST_NAME
DRIVER_LAST_NAME
DRIVER_DRIVING LICENSE_ID
DRIVER_START_DATE
DRIVER_DRIVING_LICENSE_CHECKED
DRIVER_RATING
DRIVERS Table
In the CARS table, all the cars in the InstantRide…
arrow_forward
DataBase;
You are required to develop a simple database application for a small recruiting firm that wishes to keep track of all the employees at the
firm; storing details about their name, phone numbers, hiredate, Gender, Date of Birth, Salary, and Commission. The firm has many
departments and there are 5 to 20 employees in each department. The department information includes department name, description
and total number of employees in that department. The company also provides vehicles for some of its employees. An employee maybe
allocated one car. To ensure timely maintenance of vehicle, the company would like to store the following details of the vehicle: make,
model, next_maintenance_date.
Each employee has a position (manager, accountant, administrator, clerk, HR employee, etc.). Various allowances are allocated to each
position. For example, the managers have fuel allowance, house allowance, social allowance and managers allowance. On the other
hand, the administrators have…
arrow_forward
SportTech Events.
SportTech Events SportTech Events puts on athletic events for local high school athletes. The company needs a database designed to keep track of the sponsor for the event and where the event is located. Each event needs a description, date, and cost. Separate costs are negotiated for each event. The company would also like to have a list of potential sponsors that includes each sponsor’s contact information, such as the name, phone number, and address. Each event will have a single sponsor, but a particular sponsor may sponsor more than one event. Each location will need an ID, a contact person, and a phone number. A particular event will use only one location, but a location may be used for multiple events. SportTech asks you to create a Conceptual Entity Relationship Diagram from the information described above.
arrow_forward
Assume that a database has a table named Stock, with the following columns:Column Name TypeTrading_Symbol nchar(10)Company_Name nchar(25)Num_Shares intPurchase_Price moneySelling_Price money
Write a Select statement that returns the Trading_Symbol column and the Num_Shares column only from the rows where Selling_Price is greater than Purchase_Price and Num_Shares is greater than 100. The results should be sorted by the Num_Shares column in ascending order.
arrow_forward
Scenario and Database Model: InstantRide
InstantRide is the new ride sharing application in the city and it has just started its operations. With the help of the InstantRide mobile application, the users request a ride with their location. Drivers and cars are assigned to the request; and then the driver picks up the user to ride their requested location. Information for the users, drivers and cars are stored in the database as well as the travel transactions.
I need help with task 4 and task 5.
arrow_forward
assume that a database has a table named Stock, with thefollowing columns:Column Name TypeTrading_Symbol nchar(10)Company_Name nchar(25)Num_Shares intPurchase_Price moneySelling_Price money Write a Select statement that returns the Trading_Symbol column and the Num_ Shares column only from the rows where Selling_Price is greater than Purchase_ Price and Num_Shares is greater than 100. The results should be sorted by the Num_Shares column in ascending order.
arrow_forward
Use Mysql code
The database has three tables for tracking horse-riding lessons:
Horse with columns:
ID - primary key
RegisteredName
Breed
Height
BirthDate
Student with columns:
ID - primary key
FirstName
LastName
Street
City
State
Zip
Phone
EmailAddress
LessonSchedule with columns:
HorseID - partial primary key, foreign key references Horse(ID)
StudentID - foreign key references Student(ID)
LessonDateTime - partial primary key
Write a SELECT statement to create a lesson schedule for Feb 1, 2020 with the lesson date/time, student's first and last names, and the horse's registered name. Order the results in ascending order by lesson date/time, then by the horse's registered name. Make sure unassigned lesson times (student ID is NULL) appear in the results.
Hint: Perform a join on the LessonSchedule, Student, and Horse tables, matching the student IDs and horse IDs.
arrow_forward
assume that a database has a table named Stock, with thefollowing columns:Column Name TypeTrading_Symbol nchar(10)Company_Name nchar(25)Num_Shares intPurchase_Price moneySelling_Price money Write a Select statement that returns the Trading_Symbol column and the Num_Shares column from every row in the table.
arrow_forward
Assume that the Authors table is already built in the database with the following specifications:
Authors:
Column Name
Data Type
constrains
Authors ID
Author Name
Varchar2(10)
|Varchar2(30)
Primary key
Unique
You Need to Create the Books table with the following specifications
Column Name
Data Type
Constrains
ISBN
Book Title
Book Price
Author id
Number (10)
Varchar2(40)
Number (4,2)
Varchar2(10)
Primary key
Not Null
referencing the Author_ID in
the Author Table
Complete the create statement by drag and drop the correct word:
Create Table lblank (ISBN Number (10) plank,
Book Title Varchar2blank ) Not Null,
Book Price Number(4, 2),
Auther IR blank (10) references Jolank (blank );
Author ID Books Number||Authors Not Nul Varchar2| Primary Key 40
h (United States)
arrow_forward
Write Mysql code
The database has three tables for tracking horse-riding lessons:
Horse with columns:
ID - primary key
RegisteredName
Breed
Height
BirthDate
Student with columns:
ID - primary key
FirstName
LastName
Street
City
State
Zip
Phone
EmailAddress
LessonSchedule with columns:
HorseID - partial primary key, foreign key references Horse(ID)
StudentID - foreign key references Student(ID)
LessonDateTime - partial primary key
Write a SELECT statement to create a lesson schedule with the lesson date/time, horse ID, and the student's first and last names. Order the results in ascending order by lesson date/time, then by horse ID. Unassigned lesson times (student ID is NULL) should not appear in the schedule.
Hint: Perform a join on the Student and LessonSchedule tables, matching the student IDs.
arrow_forward
assume that a database has a table named Stock, with thefollowing columns:Column Name TypeTrading_Symbol nchar(10)Company_Name nchar(25)Num_Shares intPurchase_Price moneySelling_Price money Write a Select statement that returns the Trading_Symbol column only from the rows where Selling_Price is greater than Purchase_Price and Num_Shares is greater than 100.
arrow_forward
assume that a database has a table named Stock, with thefollowing columns:Column Name TypeTrading_Symbol nchar(10)Company_Name nchar(25)Num_Shares intPurchase_Price moneySelling_Price money Write a Select statement that returns all the columns from the rows where Trading_Symbol starts with "SU".
arrow_forward
Assume that a database has a table named Stock, with the following columns:Column Name TypeTrading_Symbol nchar(10)Company_Name nchar(25)Num_Shares intPurchase_Price moneySelling_Price moneyWrite a Select statement that returns the Trading_Symbol column only from the rows where Purchase_Price is greater than $25.00.
arrow_forward
Below is part of a student database for your reference. The primary keys are highlighted in bold.
Student (studNo, studlvame, address, mobileNo)
Registration (studNo, courseNo, regDate, semester, session)
Course (courseNo, courseName, creditHour, level)
Project (projNo, projName, courseNo)
Assignment (projNo, studNo, startDate, dueDate, hoursSpent)
Fill the empty lines (Line 10, 12, 22, 23, 27) with the appropriate PL/SQL code so as to complete the following anonymous block. The anonymous block displays the
list of courses taken by a certain student. Allow the user to enter the STUDENT NAME:
1.
ACCEPT studname PROMPT 'Enter the student name:'
2.
3.
DECLARE
4.
v_cid
course.courseno%TYPE;
5.
V_sname
student.studname%TYPE:= '&studname;
6.
V_cname
course.coursename%TYPE;
7.
8.
CURSOR course_list IS
9.
SELECT c.courseno, c.coursename
10.
11.
WHERE s.studno = r.studno
12.
13.
AND studname = V_sname;
14.
15.
BEGIN
16.
17.
OPEN course_list;
18.
19.
DBMS_OUTPUT.PUT_LINE(List of courses for…
arrow_forward
Submit Result Key Here..
Subm
SQL Injection Escaping Challenge
To complete this challenge, you must exploit SQL injection flaw in the following form to find the result key. The
developer of this level has attempted to stop SQL Injection attacks by escaping apostrophes so the database
interpreter will know not to pay attention to user submitted apostrophes
Challenge Hint
This is the query you are injecting code into! Be aware that your apostrophes are being escaped with a leading
backslash before being sent to the interpreter
SELECT FROM customers WHERE customerld ="
Please enter the Customer Id of the user that you want
to look up
Get user
There were no results found in your search
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Related Questions
- SQL Database helparrow_forwardScenario and Database Model: Instant Ride InstantRide is the new ride sharing application in the city and it has just started its operations. With the help of the Instant Ride mobile application, the users request a ride with their location. Drivers and cars are assigned to the request; and then the driver picks up the user to ride their requested location. Information for the users, drivers and cars are stored in the database as well as the travel transactions. In the USERS table, information for the users are stored with their first name, last name and email: USER_ID 3001 3002 3003 3004 3005 3006 3007 3008 USERS Table 2001 2002 2003 2004 USER_FIRST_NAME Willie Justin Anthony Ece Jack Ryan Nursin Sarah Bobby Randy Jose DRIVERS Table Nursin Butler Howard In the DRIVERS table, all the drivers in the InstantRide are stored with their name, driving license number and check and rating information: Walker DRIVER_ID DRIVER_FIRST_NAME DRIVER LAST NAME DRIVER DRIVING LICENSE_ID…arrow_forwardScenario and Database Model: InstantRide InstantRide is the new ride sharing application in the city and it has just started its operations. With the help of the InstantRide mobile application, the users request a ride with their location. Drivers and cars are assigned to the request; and then the driver picks up the user to ride their requested location. Information for the users, drivers and cars are stored in the database as well as the travel transactions. In the USERS table, information for the users are stored with their first name, last name and email: In the DRIVERS table, all the drivers in the InstantRide are stored with their name, driving license number and check and rating information: In the CARS table, all the cars in the InstantRide system are kept with the license plate, model and year: Finally, the transactions of the rides are stored in the TRAVELS table. For each travel, start and end time with location are stored. In addition, the involved driver, car and…arrow_forward
- Scenario and Database Model: InstantRide InstantRide is the new ride sharing application in the city and it has just started its operations. With the help of the InstantRide mobile application, the users request a ride with their location. Drivers and cars are assigned to the request; and then the driver picks up the user to ride their requested location. Information for the users, drivers and cars are stored in the database as well as the travel transactions. In the USERS table, information for the users are stored with their first name, last name and email: In the DRIVERS table, all the drivers in the InstantRide are stored with their name, driving license number and check and rating information: In the CARS table, all the cars in the InstantRide system are kept with the license plate, model and year: Finally, the transactions of the rides are stored in the TRAVELS table. For each travel, start and end time with location are stored. In addition, the involved driver, car and…arrow_forwardRelation: Relation is a two-dimensional table in which data is named. The relations have the named columns and numbers which denote the unnamed rows. Although relation is defined as the two-dimensional table of data, not all the tables are considered as relations. There are some properties that differentiate relation tables from non-relation tables.arrow_forwardThe database has three tables for tracking horse-riding lessons: Horse with columns: ID - primary key RegisteredName Breed Height BirthDate Student with columns: ID - primary key FirstName LastName Street City State Zip Phone EmailAddress LessonSchedule with columns: HorseID - partial primary key, foreign key references Horse(ID) StudentID - foreign key references Student(ID) LessonDateTime - partial primary key Write a SELECT statement to create a lesson schedule with the lesson date/time, horse ID, and the student's first and last names. Order the results in ascending order by lesson date/time, then by horse ID. Unassigned lesson times (student ID is NULL) should not appear in the schedule.arrow_forward
- The database has three tables for tracking horse-riding lessons: Horse with columns: ID - primary key RegisteredName Breed Height BirthDate Student with columns: ID - primary key FirstName LastName Street City State Zip Phone EmailAddress LessonSchedule with columns: HorseID - partial primary key, foreign key references Horse(ID) StudentID - foreign key references Student(ID) LessonDateTime - partial primary key Write a SELECT statement to create a lesson schedule with the lesson date/time, horse ID, and the student's first and last names. Order the results in ascending order by lesson date/time, then by horse ID. Unassigned lesson times (student ID is NULL) should not appear in the schedule. Hint: Perform a join on the Student and LessonSchedule tables, matching the student IDsarrow_forwardQuestion Setup: Scenario and Database Model: InstantRide InstantRide is the new ride sharing application in the city and it has just started its operations. With the help of the InstantRide mobile application, the users request a ride with their location. Drivers and cars are assigned to the request; and then the driver picks up the user to ride their requested location. Information for the users, drivers and cars are stored in the database as well as the travel transactions. In the USERS table, information for the users are stored with their first name, last name and email: USER_ID USER_FIRST_NAME USER_LAST_NAME USER_EMAIL USERS Table In the DRIVERS table, all the drivers in the InstantRide are stored with their name, driving license number and check and rating information: DRIVER_ID DRIVER_FIRST_NAME DRIVER_LAST_NAME DRIVER_DRIVING LICENSE_ID DRIVER_START_DATE DRIVER_DRIVING_LICENSE_CHECKED DRIVER_RATING DRIVERS Table In the CARS table, all the cars in the InstantRide…arrow_forwardDataBase; You are required to develop a simple database application for a small recruiting firm that wishes to keep track of all the employees at the firm; storing details about their name, phone numbers, hiredate, Gender, Date of Birth, Salary, and Commission. The firm has many departments and there are 5 to 20 employees in each department. The department information includes department name, description and total number of employees in that department. The company also provides vehicles for some of its employees. An employee maybe allocated one car. To ensure timely maintenance of vehicle, the company would like to store the following details of the vehicle: make, model, next_maintenance_date. Each employee has a position (manager, accountant, administrator, clerk, HR employee, etc.). Various allowances are allocated to each position. For example, the managers have fuel allowance, house allowance, social allowance and managers allowance. On the other hand, the administrators have…arrow_forward
- SportTech Events. SportTech Events SportTech Events puts on athletic events for local high school athletes. The company needs a database designed to keep track of the sponsor for the event and where the event is located. Each event needs a description, date, and cost. Separate costs are negotiated for each event. The company would also like to have a list of potential sponsors that includes each sponsor’s contact information, such as the name, phone number, and address. Each event will have a single sponsor, but a particular sponsor may sponsor more than one event. Each location will need an ID, a contact person, and a phone number. A particular event will use only one location, but a location may be used for multiple events. SportTech asks you to create a Conceptual Entity Relationship Diagram from the information described above.arrow_forwardAssume that a database has a table named Stock, with the following columns:Column Name TypeTrading_Symbol nchar(10)Company_Name nchar(25)Num_Shares intPurchase_Price moneySelling_Price money Write a Select statement that returns the Trading_Symbol column and the Num_Shares column only from the rows where Selling_Price is greater than Purchase_Price and Num_Shares is greater than 100. The results should be sorted by the Num_Shares column in ascending order.arrow_forwardScenario and Database Model: InstantRide InstantRide is the new ride sharing application in the city and it has just started its operations. With the help of the InstantRide mobile application, the users request a ride with their location. Drivers and cars are assigned to the request; and then the driver picks up the user to ride their requested location. Information for the users, drivers and cars are stored in the database as well as the travel transactions. I need help with task 4 and task 5.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage