Oracle 12c: SQL
3rd Edition
ISBN: 9781305251038
Author: Joan Casteel
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Concept explainers
Textbook Question
Chapter 3, Problem 14MC
Which of the following is true?
- a. All data in a table can be recovered if the table is dropped with the PURGE option.
- b. All data in a table can be recovered from the recycle bin if the table is dropped.
- c. All data in a table is lost if the table is dropped.
- d. All of the above statements are true.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Q. Write a trigger that checks the length of a contract when a new contract is inserted into longtermcontract table. If this is the first contract between the pharmacy and pharmaceutical company, the length of the contract should not be more than 12 months. If the contract is more than 12 months, the trigger should alter the end date and reduce it to 12 months after the start date.
* You have to use BEFORE INSERT ON* THE INSERT STATEMENT IN THE END OF THE GIVEN CODE MUST WORK.
GIVEN CODE:-- Do not change the name of the triggerdelimiter //create trigger first_contracts_length_limitation
-- do not modify or delete the following lines. Do not write anything after this line.insert into longtermcontract values('parapharmaceutical', '24 South St., Fabreville, QC H7P-E2H', '2020-02-01', '2021-04-01', '***');
SCRIPT:
What* is a new table operation can you think of, that won't break closure? *What* about a new operation that does break closure? Your operations don't need to be useful in practice, but, they could be :) Note - changing column names/types, adding or deleting columns or rows are not considered table operations, as you know [so those can't be your answers :)] - other than that, you can come up with ANY operations!
List items have an index number. In the following list, which item has the index number of 3?
["John", "Harry", "Jesse", "John", "Harry", "Harry"]
Select one:
a. None
O b. "John"
O c. "Jesse"
O d. "Harry"
Chapter 3 Solutions
Oracle 12c: SQL
Ch. 3 - Which command is used to create a table based on...Ch. 3 - Prob. 2RQCh. 3 - What guidelines should you follow when naming...Ch. 3 - What is the difference between dropping a column...Ch. 3 - Prob. 5RQCh. 3 - What happens to the existing rows of a table if...Ch. 3 - Explain the difference between truncating a table...Ch. 3 - Prob. 8RQCh. 3 - What happens if you try to decrease the scale or...Ch. 3 - Are a table and the data contained in the table...
Ch. 3 - Which of the following is a correct statement?
You...Ch. 3 - Prob. 2MCCh. 3 - Which of the following is not a correct...Ch. 3 - Which of the following is not a valid SQL...Ch. 3 - Which of the following is true? a. If you truncate...Ch. 3 - Which of the following commands creates a new...Ch. 3 - Which of the following commands drops any columns...Ch. 3 - Which of the following statements is correct?
A...Ch. 3 - Which of the following commands removes all data...Ch. 3 - Which of the following commands changes a table’s...Ch. 3 - Prob. 11MCCh. 3 - Which of the following is not a valid...Ch. 3 - Which of the following characters can be used in a...Ch. 3 - Which of the following is true?
All data in a...Ch. 3 - Prob. 15MCCh. 3 - Which of the following commands creates a new...Ch. 3 - Which of the following is a valid table name? a....Ch. 3 - Prob. 18MCCh. 3 - Which object in the data dictionary enables you to...Ch. 3 - Prob. 20MCCh. 3 - Create a new table containing the category code...Ch. 3 - Create a new table containing these four columns:...Ch. 3 - Add two columns to the EMPLOYEES table. One...Ch. 3 - Modify the Job_class column of the EMPLOYEES table...Ch. 3 - Prob. 5HOACh. 3 - Rename the EMPLOYEES table as JL_EMPS.
Ch. 3 - Create a new table containing these four columns...Ch. 3 - Prob. 8HOACh. 3 - Truncate the BOOK_PRICING table, and then verify...Ch. 3 - Delete the BOOK_PRICING table permanently so that...
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
- All do. Else report.arrow_forwardWhich of the following is a condition(s) that causes deadlock? a. Mutual exclusion b. Hold and wait Oc. Circular Wait d. Coffman's Conditionsarrow_forwardDuring which of the following AES transformation, XOR operation is performed? a.Add round key b.Sub-bytes c.Mix columns d.Shift rowsarrow_forward
- 3. Which of the following statements is TRUE about passing parameters by reference and by value? A. Passing by reference requires more space and time. B. Passing by reference guarantees the integrity of the data. C. Passing by value requires less space but more time. D. Passing by value is preferred if the integrity of the original data is the priority. E. None of the abovearrow_forwardInclude an inner listener class to handle the events from the Save Record button. WhenSave Record button is clicked, new customer record is inserted into the table named“CUSTOMER” and display a message “New Customer Record Inserted” in a dialog box.Include another anonymous inner listener class to handle the events from the Reset button.When Reset is clicked then clear all the text fields and place the cursor in the first text fieldto allow the user to re-enter the correct values and Write a code that includes an exception handler that deals with duplicate records (e.g. sameCustomer ID.) and database error (e.g. Error establishing a database connection).arrow_forwardBullet-point the boots' functions.arrow_forward
- q4) Which of the following is the correct definition of alias in SQL statement? a. It is a way of renaming a column heading in the output b. It specifies the table containing the columns listed in the SELECT clause c. It is a value that is unavailable, unassigned, unknown, or inapplicable d. It retrieves information from the databasearrow_forwardDatabase course: a. Write in SQL a command that creates the table Customers according to the above description. b. Write in SQL a statement that adds a new column named accountID of type Char(8). This column should be defined as a foreign key that relates the table Customers to the table Account. c. Write in SQL a command that deletes the customers whose date of birth is after 22-Dec-1990. d. Write a SQL query that displays the number of customers who born on the 16th day of a month. e. Write in SQL a query that displays the ids of the customers who have the highest income. f. Create a view named ‘customerDetails’ to hold all the details of customers whose first names start with ‘S’ and their incomes are between 500 and 1000 Omani Rials. (I need the codes to copy them please) Photo is there.arrow_forwardWhich of the following statements are valid reasons for sorting data? It can be faster to search an ordered list. O It is easier to check for duplicate records. It makes it harder to steal your data. O It keeps your knives arranged nicely.arrow_forward
- 15. Suppose that Column B contains 100 observations of a string variable. Which of the following is therefore true? a. The command =AVERAGE(B2:B101)/100 will return the average value of this variable. b. The "COUNTIF" command cannot be applied to the data in this column. C. The "MODE" command can be applied to the data in this column. d. The "MEDIAN" command cannot be applied to the data in this column.arrow_forwardWhich of the following statements is NOT true about hard coded values? Choices: A.Hard-coded values may not be updated by the user when the spreadsheet changes B.Hard-coded values are sometimes entered as a test and then forgotten about C.Hard-coded values are sometimes used as a plug to get figures to balance. D.None of the answers is correct. E.Hard-coded values within formulas are good.arrow_forwardOpen your text editor and create a new document named model.php model.php will contain functions that will connect to a database potentially return PDO statementobjects to the controller for processing. updateMessagesfunction updateMessages($id)This method will take a single parameter of id which is the saved id from the last or latest message displayed. It will conditionally select from the table “messages”, id, name, message, and time. The condition is that the field id is greater than the parameter for id. The return is the PDOStatement object with the row data from the query.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
dml in sql with examples; Author: Education 4u;https://www.youtube.com/watch?v=WvOseanUdk4;License: Standard YouTube License, CC-BY