Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps with 1 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Hello I need help with the question for SQL developer for my Database Management class 5. For each order line, what is the amount of discount, and percent discount given. Discount is based on difference between price and quoted_price. Report order number, order date, discount amount, and discount percent. Percentage of discount is based on difference_ in_ price/price*100arrow_forwardlease help with the below regarding VBA and Access SQLarrow_forwardSQL: Display all product information for products that contain the string ‘saw’ anywhere in their description. Remember to use the * for all attributes here and the LIKE keyword. [hint: you should have 5 rows of output] I understand how to create the query but I can't get the expected result. What am I doing wrong? My code: select * from product where p_descript like 'saw' ; I get no data found when I know there is supposed to be 5 rows of output.arrow_forward
- So here I have 2 tables and I need help understanding the basics of joins. I have developed some pieces of SQL code, but im not sure what they will output. I need to know what each one will output. INNER JOIN - SELECT StudentDetails.NAME, StudentMarks.MARKS FROM StudentDetails INNER JOIN StudentMarks ON StudentDetails.S_ID = StudentMarks.ID; LEFT JOIN - SELECT Name, Address, Age FROM StudentDetails LEFT JOIN StudentMarks ON S_ID=ID; RIGHT JOIN - SELECT Name, Address, Age FROM StudentDetails RIGHT JOIN StudentMarks ON S_ID=ID; FULL JOIN - SELECT StudentDetails.NAME, StudentMarks.MARKS FROM StudentDetails FULL OUTER JOIN StudentMarks ON StudentDetails.S_ID = StudentMarks.ID;arrow_forwardMake at least 20 sql statements from the table script given (try to make a little complex script) .please make scripts as related to given categories below:(script to make table is given below) create database kapil; create table Books(Book_id varchar (30)NOT NULL Primary key,Book_name varchar (80),Edition_no varchar (20),category_835757 varchar(20),price decimal(5,2));INSERT into booksvalues (1,'Specs','12th','Philosophy',35.11);INSERT into booksvalues (2,'Oxford','25th','Dictionary',20.12);INSERT into booksvalues (3,'Revolution','9th','Novel',10.15);INSERT into booksvalues (4,'Ghost in wires','8th','Crime',13.52);INSERT into booksvalues (5,'Burned','4th','Encyclopedia',15.22); create table Reader(Userid_757 varchar(50) NOt NULL Primary key,Last_name varchar(100),First_name varchar (200),Phone varchar(100),Email varchar(200),Book_id int);INsert into readervalues('U513','Mahara','Kapil',647-555-1151,'Phantomconflicted.com',003);INSERT into readervalues…arrow_forwardUsing MySQL Workbench, create a new schema for this assignment and import assignment2.sql. Reverse-engineer the database to produce the ER diagram for this database. Rely on the ERD to perform remaining tasks. Write and execute SQL commands to get information from the database: Display a single number showing the total number of customers in the database. Display a single number showing how many products categories are available (do not include duplicates). Display a single number showing how many shipping addresses are from Ontario. Join the payment_info and payments table together based on PK/FK. Display the count of records for each payment type. Display a single number showing how many invoices were issued in 2013. Join the customers and shipping_details tables together based on PK/FK. Display the province code and the number of records per province. Data should be sorted in descending order of the number of records. Display the lowest, highest, and mean amounts on the invoice…arrow_forward
- Write one SQL statement to create a view named ctype_view (that must not be dropped if it already exists) to display the information exactly as listed below. The column “Customer TYPES” is derived from the ctype values as follows” P-Prestige, C-Clandestine, O-Ordinary, L-Loyal, else Undefined (Use DECODE to derive these values). Column ctotal represents the number of customer types of the specific type and column ototal represents the total currency value of all the orders placed by customers of a specific customer type.arrow_forwardplease use sql to answer the following question and erd and code from the last test (tesk 2) have been provide and it connect to task 3 as well Task 3: Create(Enter) new product by using a Procedure with IN Parameters Follow these steps to create a procedure that allows a company employee to add a new product to the database. This procedure needs only IN parameters. In SQL Developer, create a procedure namedPROD_ADD_SPthat adds a row for a new product in the BB_PRODUCT table. Keep in mind that the user provides values for the product name, description, image filename (use same template for file name as ‘roasted.jpg’ or ‘double-roasted.jpg’ ) , price, and active status. Address the input values or parameters in the same order as in the preceding sentence. Call the procedure with these parameter values:('Roasted Blend', 'Well-balanced mix of roasted beans, a medium body', 'roasted.jpg',9.50,1). Check whether the update was successful by querying the BB_PRODUCT table.…arrow_forwardplease assist with the SQL question for SQL server below: Create a INSERT trigger called checkPubCity to ensure there are no more than two publishers in the same city. Print an appropriate message if this is violated. Otherwise, add an entry into the table pub_info with the pub_id and the text “newbie”. No logo needs to be supplied.arrow_forward
- Use MySQL Workbench to create an EER model from the script file named create_my_guitar_shop.sql that’s in the mgs_ex_starts folder. From the model, create an EER diagram that shows the relationships between the seven tables in the database. (The administrators table is not related to the other six tables.)arrow_forwardExpress the following query in SQL using no subqueries and no set operations.select IDfrom studentexceptselect s idfrom advisorwhere i ID is not nullarrow_forwardHow would I create a Update statement in SQL Lite for the following question: The student ‘100004’ gave his phone to student ‘100003’. Make the phone ‘14896572315’ become the alternate phone of student ‘100003’.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education