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
1. Load the tidyverse package first and then explore the diamonds dataset. What’s the average price of premium cut diamonds in the diamonds dataset?
2. Which is true about mutate() and transmute()? Select all the correct answers. Group of answer choices:
A. They both create new columns that are based upon existing columns.
B. mutate(flights, gain = dep_delay - arr_delay, speed = distance / air_time * 60)
and
transmute(flights, gain = dep_delay - arr_delay, hours = air_time / 60, gain_per_hour = gain / hours)
returns the same output.
C. If you only want to keep the new variables that you have created, use transmute() instead of mutate().
No hand written and fast answer with explanation
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 4 steps with 2 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
- Suppose that we have an item table and a shipment table. The Item table contains all of the items and the Shipment table contains items received by the company. Shipments Table itemNo description Items Table itemNo 342 345 346 347 description MacBook Pro Lenovo PC 4GB Memory 500GB HD qtyOnHand 10 55 100 6 342 345 347 352 What is the result of executing the following query on this data? MacBook Pro Lenovo PC 500GB HD ITB External Drive qty Received SELECT I.itemNo "Item No", qtyOnHand "Quantity On Hand", S.itemNo "Item Number", qtyReceived "Quantity Received" FROM Items I RIGHT JOIN Shipments S ON (1.itemNo= S.itemNo); O c. 'NULL' appears in the column Item Number. O d. '352' appears in the column Item No. 1 5 6 4 Identify in the list below, a value and the name of a column in which it appears. O a. '346' appears in the column Item No. O b. 'NULL' appears in the column Item No.arrow_forwardImport the ticket transaction data set and what teams (besides Washington Capitals) and what seat types are inside the data set? Clean the transaction data and only keep the ticket transactions of Washington Capitals in the CB/LC/LG/MC/MG seat zones. How many ticket transactions remain after data cleaning? and the dates of the two games?arrow_forwardSELECT P.BRAND_ID, B.BRAND_NAME, B.BRAND_TYPE,MAX(AVGPRICE) FROM LGPRODUCT P INNER JOIN LGBRAND B ON P.BRAND_ID = B.BRAND_ID (SELECT P.BRAND_ID, AVG (P.PROD_PRICE) AS AVGPRICE FROM LGPRODUCT P GROUP BY P.BRAND_ID)AS AVG_PRICE GROUP BY P.BRAND_ID, B.BRAND_NAME, B.BRAND_TYPE ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT P.BRAND_ID, AVG (P.PROD_PRICE) AS AVGPRICE FROM LGPRODUCT P GROUP BY P.' at line 3arrow_forward
- Task 6: The StayWell marketing team wants to send mail to all residents. You need to return the first name and surname of all the residents combined as NAME, with their addresses named ADDRESS. However, the address should be retrieved from the PROPERTY table for residents. Task Retrieve the mailing address (first name, surname, and address) for each resident. Task 7: The development team wants to add new residents and new service requests to StayWell without checking the latest IDs and manually incrementing it. Therefore, you need to alter the RESIDENTS table and change the RESIDENT_ID field to an auto-incremented field of type SMALLINT. Alter the RESIDENTS table and change the ID field to an auto-incremented field. Task 8: The Colombia City office of StayWell indicated that there is a new tenant by the name of Yigit Yilmaz staying at the property with an ID of 13. You need to include this new resident in the RESIDENTS table. Task Add Yigit…arrow_forwardHi, the data that is populating the Supplier Field is from this string object in bold that is one of this variable parameters: var supplierField = form.addField('custpage_supplier', 'select', 'Supplier', 'customrecord_reorder_suppliers').setLayoutType('startrow'); How do I go about retrieving the suppliers name and reordering the name view from this internal ID 'customrecord_reorder_suppliers'. This ID/string object is to a custom table in NetSuite that houses the supplier information. *Please see screenshot of suppliers table* I have tried: var supplierName = 'customrecord_reorder_suppliers'.toString().split(' ').reverse().join(' ');. To reassign that string object so I could call it in a function but it still did not work. If needed we can get on a chat to discuss this in more detail. Please let me know.arrow_forwardRead the data into a DataFrame with ID as the index. Convert the “Hired” column into Date/Time data type Create a new column with years of experience with the company at present without rounding. Create a new Boolean column for senior status with employees with at least 10 years of experience as senior and others are not. Create a new column for longevity pay equal to $150 per whole year of experience in the company. Create a list of column names for each data type in the DataFrtame.arrow_forward
- Data on the age of 11 residents who live in a house are as follows: 2,4, 4, 5, 7, 9, 11, 11, 13, 14, 41. Please determine the value and describe the positions of Q1, Q2, Q3,Minimum, Maximum, and Outlier of the dataset mentioned above. Please also specify the value andnew Minimum data position; New Maximum Data, as well as a mustache. In doing analysisnext, what will you do with the outlier??? Explain the reasonSibling.arrow_forwardis there any other way to do it without changing the create table instances and just do everything under this part? SELECT * FROM "arena"WHERE "people_count" >=100ORDER By "event_date" ASCarrow_forwardThe InstantRide Driver Relationship team wants to learn how many travels each driver has done in the month of October. You need to send them the DRIVER_ID, and two calculated columns: DAY and RIDES. The DAY column is calculated using the DAY() function with the TRAVEL_START_TIME as the argument. The RIDES column is calculated by using the COUNT() function to determine the number of rides given for each day. Filter the results with the MONTH function.arrow_forward
arrow_back_ios
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