Oracle 12c: SQL
3rd Edition
ISBN: 9781305251038
Author: Joan Casteel
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Question
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 2 steps
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
- The command would be used to delete the table row where the P CODE is 'BRT-345'.arrow_forwardStayWell’s maintenance team wants to recheck the apartments that had plumbing service requests beforehand. You will need to return all the property IDs and the addresses of the properties that had plumbing service request (CATEGORY_NUMBER 1). Task Return a list of all the property IDs and the addresses of the properties that had plumbing service requests.arrow_forwardTask 1: The StayWell Property Management team wants a list of all property addresses combined with the name of the owners. You will need to return three columns: the first name as FIRST_NAME, the last name as LAST_NAME, and the property address as ADDRESS of the owners. Task Provide the StayWell Property Management team with a list of all property addresses combined with the name of the owners. Task 2: StayWell’s maintenance team wants to recheck the apartments that had plumbing service requests beforehand. You will need to return all the property IDs and the addresses of the properties that had plumbing service request (CATEGORY_NUMBER 1). Task Return a list of all the property IDs and the addresses of the properties that had plumbing service requests. Task 3: The StayWell property management team wants to get in touch with those owners having properties larger than 2,000 square feet. You need to return all the available information of the corresponding owners to the property…arrow_forward
- Task 5: The InstantRide User Satisfaction team are looking forward to creating discounts for the users. However, the team suspects that there could be duplicate users in the system with different emails. Check for the users with their names and surnames for potential duplicates. Therefore, you need to JOIN the USERS table with USERS table and compare for equality of USER_FIRST_NAME and USER_LAST_NAME and difference in USER_ID fields. Task: Check for duplicate driver accounts. (SQL Database Test)arrow_forwardJustify why you would want to switch to page view from the standard list view. Explain. Please respond in a couple of sentences.arrow_forwardWrite a script that adds an index to the MyGuitarShop database for the zip code field in the Addresses table. Write a script that implements the following design in a database named MyWebDB: In the Downloads table, the UserID and ProductID columns are the foreign keys. In the Users table, the EmailAddress and LastName columns are required, but the FirstName column is not. Include a statement to drop the database if it already exists. Include statements to create and select the database. Include any indexes that you think are necessary. 3. Write a script that adds rows to the database that you created in exercise 2. Add two rows to the Users and Products tables. Add three rows to the Downloads table: one row for user 1 and product 1; one for user 2 and product 1; and one for user 2 and product 2. Use the GETDATE function to insert the current date and time into the DownloadDate column. Write a SELECT statement that joins the three tables and retrieves the data from these tables like…arrow_forward
- Insert the following records into their corresponding tables, using the MySQL CLI. Take a screenshot of a Select * command being successfully executed on each table (6 total). Class TeacherID SubjectNumber StudentNumber grade 4 83 2411 85 60 13 1217 92 119 78 1093 100 138 43 2600 93 52 62 2258 75 16 23 2895 86 25 67 1601 72 146 9 2725 98 101 35 2056 70 172 53 2168 84 89 70 1803 86 76 85 2213 93 193 33 2932 94 77 70 2492 87 24 53 1440 77 5 83 2036 91 18 62 2732 80 18 62 1927 70 150 23 1448 83 52 83 1972 97arrow_forwardI am stuck on a question. Please assist with writing this code: Create a trigger for the EMPLOYEES table that will set the commission amount to .4 whenever the department_id is 80. Test your trigger COMPLETELY for every event it is defined. (Sometimes, UPDATE statements must have UPDATE tablename on a separate line by itself to keep APEX from hanging). This should work both for new rows and existing rows that are updated. Scenerio: All employees who are in the sales department (80) will have their commission always set to .4. This trigger is to enforce this business rule automatically.arrow_forwardTask 5: Write and execute the command to retrieve the item ID, description, invoice number, and quoted price for all invoices in the ITEM_INVOICE VIEW for items with a quoted prices that exceed $100.arrow_forward
- Please examine the references and citations in my PowerPoint presentation before I turn it in to my lecturer.arrow_forwardInsert the following records into their corresponding tables, using the MySQL CLI. Take a screenshot of a Select * command being successfully executed on each table (6 total). Subject subjectNumber Name gradeLevel 62 Algebra 9 33 Biology 10 83 Legal Studies 11 35 Entomology 9 70 Norse Mythology 10 23 Geography 10 67 Literature 12 78 World History 11 13 US History 12 9 Astronomy 9 53 Self Defense 12 85 Introduction to Computer Science 11 43 Algebra II 10arrow_forwardCan you join the AccountID field in one table with the ProfileNum field in a different table on Tableau? Select an answer: Yes; it is possible to join fields with different names. No; fields with different names cannot be joined. It will be possible, but only if both fields are textual. It will be possible, but only if both fields are numeric.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- A Guide to SQLComputer ScienceISBN:9781111527273Author:Philip J. PrattPublisher:Course Technology Ptr
- COMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L