Computer Science: An Overview (13th Edition) (What's New in Computer Science)
13th Edition
ISBN: 9780134875460
Author: Glenn Brookshear, Dennis Brylow
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
Chapter 9, Problem 40CRP
Program Plan Intro
SQL:
- The structured query language (SQL) denotes a domain specific language used to program and designed to manage data held in a relational
database management system. - It is used to handle data that is structured where relations between different data entities exist.
- Many records can be accessed by SQL with a single command.
- It eliminates need for specifying the way to reach a record.
Given Code:
UPDATE Manufacturer
SET Cost = .03
WHERE CompanyName = ‘Company Y’
AND PartName = ‘Bolt 2X’
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Write an SQL statement to list the LastName and FirstName of customers who have purchased an item that was created by an artist with a LastName that begins with the letter J. Use a subquery.
From Database Fundamentals Ch. 3 (Kroenke)
In Sql
These are some database from a set of tables
insert into AccountHolder(AccountID, CustomerID, AccountType)values
(55003, 115, 'Savings'),(44001, 101, 'Chequing'),(55006, 109, 'Savings'),(44002, 102, 'Chequing'),(44003, 113, 'Chequing'),(55007, 108, 'Savings'),(44004, 103, 'Chequing'),(44005, 110, 'Chequing'),(55005, 112, 'Savings'),(44006, 114, 'Chequing'),(55001, 111, 'Savings'),(44007, 107, 'Chequing'),(44008, 104, 'Chequing'),(55004, 106, 'Savings'),(44009, 105, 'Chequing'),(44010, 113, 'Chequing'),(55002, 107, 'Savings'),(44011, 110, 'Chequing'),(44012, 104, 'Chequing')
select * from AccountHolder
insert into Branch(LocationID, BranchName, Address, Type, DepositSum, LoanSum)values
(1, 'Boulevard Branch', '3268 Wade Boulevard', 'Rural', 171848.88, 37681.72),(2, 'Avenue Branch', '4814 Dare Avenue', 'Rural', 232707.42, 68324.56),(3, 'Street Branch', '208 Ferry Street', 'Commercial', 375010.75, 44665.08),(4, 'Road Branch', '468 Zulauf Road', 'Commercial', 496001.41,…
Write an SQL statement to list LastName and FirstName of customers who have purchase an item that costs more that $50. Use a subquery
From Database Fundamentals (Kroenke)
James River Jewelry Project Questions: Chapter 3
Chapter 9 Solutions
Computer Science: An Overview (13th Edition) (What's New in Computer Science)
Ch. 9.1 - Identify two departments in a manufacturing plant...Ch. 9.1 - Prob. 2QECh. 9.1 - Summarize the roles of the application software...Ch. 9.2 - Prob. 1QECh. 9.2 - Prob. 2QECh. 9.2 - Prob. 4QECh. 9.2 - Prob. 5QECh. 9.2 - Prob. 6QECh. 9.3 - Prob. 1QECh. 9.3 - What is a persistent object?
Ch. 9.3 - Identify some classes as well as some of their...Ch. 9.3 - Prob. 4QECh. 9.4 - Prob. 1QECh. 9.4 - Prob. 2QECh. 9.4 - Prob. 3QECh. 9.4 - Prob. 4QECh. 9.4 - Prob. 5QECh. 9.4 - Prob. 6QECh. 9.5 - Prob. 1QECh. 9.5 - Prob. 2QECh. 9.5 - Prob. 3QECh. 9.5 - Prob. 4QECh. 9.5 - Prob. 5QECh. 9.5 - Prob. 6QECh. 9.5 - Prob. 7QECh. 9.6 - Prob. 1QECh. 9.6 - Give an additional example of a pattern that might...Ch. 9.6 - Prob. 3QECh. 9.6 - How does data mining differ from traditional...Ch. 9.7 - Prob. 1QECh. 9.7 - Prob. 2QECh. 9.7 - Prob. 3QECh. 9.7 - Prob. 4QECh. 9 - Prob. 1CRPCh. 9 - Prob. 2CRPCh. 9 - Prob. 3CRPCh. 9 - Prob. 4CRPCh. 9 - Prob. 5CRPCh. 9 - Prob. 6CRPCh. 9 - Prob. 7CRPCh. 9 - Prob. 8CRPCh. 9 - Prob. 9CRPCh. 9 - Prob. 10CRPCh. 9 - Prob. 11CRPCh. 9 - Prob. 12CRPCh. 9 - Using the commands SELECT, PROJECT, and JOIN,...Ch. 9 - Answer Problem 13 using SQL. PROBLEM 13 13. Using...Ch. 9 - Prob. 15CRPCh. 9 - Prob. 16CRPCh. 9 - Prob. 17CRPCh. 9 - Prob. 18CRPCh. 9 - Prob. 19CRPCh. 9 - Empl Id Name Address SSN Job Id Job Title Skill...Ch. 9 - Empl Id Name Address SSN Job Id Job Title Skill...Ch. 9 - Prob. 22CRPCh. 9 - Prob. 23CRPCh. 9 - Prob. 24CRPCh. 9 - Prob. 25CRPCh. 9 - Write a sequence of instructions (using the...Ch. 9 - Prob. 27CRPCh. 9 - Prob. 28CRPCh. 9 - Prob. 29CRPCh. 9 - Prob. 30CRPCh. 9 - Prob. 31CRPCh. 9 - Prob. 32CRPCh. 9 - Prob. 33CRPCh. 9 - Prob. 34CRPCh. 9 - Prob. 35CRPCh. 9 - Prob. 36CRPCh. 9 - Prob. 37CRPCh. 9 - Prob. 38CRPCh. 9 - Prob. 39CRPCh. 9 - Prob. 40CRPCh. 9 - Prob. 41CRPCh. 9 - Prob. 42CRPCh. 9 - Prob. 43CRPCh. 9 - Prob. 44CRPCh. 9 - Prob. 45CRPCh. 9 - Prob. 46CRPCh. 9 - Prob. 47CRPCh. 9 - Prob. 48CRPCh. 9 - Prob. 49CRPCh. 9 - Prob. 50CRPCh. 9 - Prob. 51CRPCh. 9 - Prob. 52CRPCh. 9 - Prob. 53CRPCh. 9 - Prob. 54CRPCh. 9 - Prob. 55CRPCh. 9 - Prob. 56CRPCh. 9 - Prob. 57CRPCh. 9 - Prob. 58CRPCh. 9 - Prob. 59CRPCh. 9 - Prob. 60CRPCh. 9 - Prob. 61CRPCh. 9 - Prob. 62CRPCh. 9 - Prob. 1SICh. 9 - Prob. 2SICh. 9 - Prob. 3SICh. 9 - Prob. 4SICh. 9 - Prob. 5SICh. 9 - Prob. 6SICh. 9 - Prob. 7SICh. 9 - Prob. 8SICh. 9 - Prob. 9SICh. 9 - Prob. 10SI
Knowledge Booster
Similar questions
- Write SQL update statements to do the following on the database schema shown in Figure 1.i. Insert a new course, <‘Knowledge Engineering’, ‘CS4390’, 3, ‘CS’>.ii. Delete the record for the student whose name is ‘Smith’ and whose student number is 17.arrow_forwardGiven the Bank database that contains the following tables (primary keys are underlined and foreign keys are preceded with #): Agency(agencyNumber, agencyName, city, assets) Client (clientNumber, firstName, lastName, clientCity) Account(accountNumber, #agencyNumber, #clientNumber, balance) Loan(loanNumber, #agencyNumber, #clientNumber, amount ) Without using DISTINCT, write the SQL query equivalent to the following one SELECT DISTINCT clientNumber FROM Account WHERE balance < 1000 OR balance > 100000 ;arrow_forwardTable: Team Member Primary key: Team MemberID Team MemberID 1 2 3 Team MemberName Joe Bloggs Samantha Smith Pete Ngwenya Table: Task Primary key: TaskID Foreign key: Team MemberID TaskID 1 2 3 Description Build login screen Implement inventory management Add logo to splahs 1 screen TeamMemberEmail joe@theoffice.com sam@theoffice.com pete@theoffice.com Duration StartDate Team MemberID 2022-05-06 1 2022-05-15 1 4 10 2022-05-06 2arrow_forward
- The aim of assignment 1 is to implement a database schema and execute different types of SQL queries in Oracle SQL developer. Given the following relational schema: Student (studid, FirstName, LastName, Email, phoneNumber, DateofBirth, GPA) Club (clubid, ClubName, #studid) MemberOf (#clubid, #studid, joiningDate ) Activities (actid, actdt, place, durationNbHour) Organize (#actid , #clubid , fee) 1. Write SQL queries to create the following tables according to the below descriptions. Table name: Student studid |Char(9) Primary key FirstName Varchar2(50) NOT NULL LastName Varchar2(50) NOT NULL Email Varchar2(50) NOT NULL, UNIQUE phoneNumber Number(8) NOT NULL, UNIQUE DateofBirth Date NOT NULL GPA Number(1,2) NOT NULL Table name: Club clubID Number(3) Primary key ClubName Varchar2(20)NOT NULL NULL, UNIQUE, NOT Foreign key studid Char(9) Table Name: MemberOf ClubID Number(3) Primary Key, Foreign Key Studid Char(9) Primary Key, Foreign Key joiningDate Date Table Name: Activities Actid…arrow_forwardUsing the relational database given in lab work no. 2, write the following queries in SQL: 7) How many different instructors taught the “Computer Programming” course at least two times?8) Which instructor taught the “Object-Oriented Programming” course the most time?You should also present the output of each query in the lab report. =========================================== The relational database schemas are as follows:department(dept-name, building, budget)instructor(ID, name, dept-name, salary)student(ID, name, dept-name, tot-cred)advisor(s-ID, i-ID)course(course-id, title, dept-name, credits)teaches(ID, course-id, sec-id, semester, year)takes(ID, course-id, sec-id, semester, year, grade)classroom(building, room-number, capacity)time-slot(time-slot-id, day, start-time, end-time)section(course-id, sec-id, semester, year, building, room-number, time-slot-id)prereq(course-id, prereq-id)arrow_forwardConsider a scenario in which the SQL statement is of the form SELECT DISTINCT c1, c2, c3 from T. Why might it make sense to create an index to optimize this query?arrow_forward
- Write the appropriate SQL query for each of the following questions: A) Display ALL the activities organized by the IT club B) Display the number of students who are acting in each club.arrow_forwardInstructions: Write the suitable SQL statement to answer the following questions based on the following tables ( image )the question is:2. Get employee details from employee table whose first name starts with 'J', order the result descending.arrow_forwardWrite SQL statement that retrieve the department_name that has the maximum number of employees: Select one: a. select d_name from depart where depart_id=( select depart_id from emp having count(*)= (select max(count(*)) from emp group by depart_id) group by depart_id); b. select depart_name from depart where depart_id=( select depart_id from emp where count(*)= (select max(count(*)) from emp group by depart_id) group by depart_id); c. select depart_name from depart where depart_id=( select depart_id from emp having count(*)= (select max(count(*)) from empl group by depart_id)); d. select depart_name from depart where depart_id=( select depart_id from emp having count(*)= (select max(count(*)) from emp group by depart_id) group by depart_id);arrow_forward
- Consider the following table in a relational database.Last Name Rank Room ShiftSmith Manager 234 MorningJones Custodian 33 AfternoonSmith Custodian 33 EveningDoe Clerical 222 MorningAccording to the data shown in the table, which of the following could be candidate keys of the table?a) {Last Name}b) {Room}c) {Shift}d) {Rank, Room}e) {Room, Shift}arrow_forwardSolve This SQL For the following operations, write the appropriate SQL statement. c) Get category and their total price of products whose sale is done with commission ratio bigger than 0.05. Sort result set according to total price. When you are retrieving result set, you should obey some rules: 1) Add TL after all price values, e.g, 30 TL, etc... !! DROP DATABASE IF EXISTS store;CREATE DATABASE store;USE store; CREATE TABLE IF NOT EXISTS `customers` (`customer_id` int(11) NOT NULL AUTO_INCREMENT,`customer_name` varchar(50) NOT NULL,PRIMARY KEY(`customer_id`)) ENGINE=InnoDB; CREATE TABLE IF NOT EXISTS `products` (`product_id` int(11) NOT NULL AUTO_INCREMENT,`product_name` varchar(50) NOT NULL,`category` varchar(20) NOT NULL,`price` double DEFAULT 0,PRIMARY KEY(`product_id`)) ENGINE=InnoDB; CREATE TABLE IF NOT EXISTS `salesmans` (`salesman_id` int(11) NOT NULL AUTO_INCREMENT,`salesman_name` varchar(50) NOT NULL,`salary` double DEFAULT 0,`hire_date` date NOT NULL,PRIMARY…arrow_forwardIs this statement true or false? The term "null" refers to a column in a database table that does not contain any data and is thus empty.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781305627482Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781285196145Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos CoronelPublisher:Cengage Learning
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781285196145
Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:Cengage Learning