Oracle 12c: SQL
3rd Edition
ISBN: 9781305251038
Author: Joan Casteel
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Concept explainers
Textbook Question
thumb_up100%
Chapter 3, Problem 3RQ
What guidelines should you follow when naming tables and columns in Oracle 12c?
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
The Driver Relationship team realized that maintaining driver IDs is difficult and requested an automatic way of incrementing the value when a new driver is added. You need to make the changes on the table to automatically increment the Driver ID. After the change, you need to insert the following driver:
First Name: Nursin
Last Name: Yilmaz
Driving License ID: 4141447
Start Date: 2019-12-28
Driving License Checked: True
Rating: 4.0
What are the advantages of using table-valued parameters in SQL functions?
How do we decide which model to create in Microsoft Access as our table creation environment?
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
- How do you create an index? How do you create a unique index? What is the difference between an index and a unique index?arrow_forwardProgram language: SQLite Table syntax: CREATE TABLE Author( aid INTEGER PRIMARY KEY, name TEXT NOT NULL, certifications TEXT NOT NULL, bio TEXT NOT NULL); CREATE TABLE Course( number TEXT PRIMARY KEY, title TEXT NOT NULL, length INTEGER NOT NULL); CREATE TABLE CourseTopic( number TEXT, tid INTEGER PRIMARY KEY, FOREIGN KEY(number) REFERENCES Course(number), FOREIGN KEY(tid) REFERENCES Topic(tid)); CREATE TABLE Topic( tid INTEGER PRIMARY KEY, name TEXT NOT NULL, length INTEGER NOT NULL, subjectArea TEXT NOT NULL, aid INTEGER NOT NULL , FOREIGN KEY(aid) REFERENCES Author(aid)); Task: Construct at least one trigger to either manage a constraint, a derived attribute, or create an audit trail. Update the database if necessary. Which trigger you create and on which table is your choice, but in your submission explain why you built that trigger and what its intended purpose is.arrow_forwardNote: I am asking you to create a table in a database. If you already have a database, that's fine, so create the table within it. Otherwise create a database for your table. (sql server has a script to create a database) Create a SQL table using your name with the following features: the columns of your table must include, at least the data types (in this order) and one more of your choice NOTE: You need to specify a 2 column (i.e 2 attribute 1. varchar (n), // where n covers the string length you want to enter 2. Int, 3. decimal, (precision = 8, scale = 3 4. date. 5. ??? your choice here ??? Table constraints: 1. It has a two column primary key 2. a check constraint on 2 columns, on the decimal and the date field 3. Use '2024-02-18' date as the default on the date field 5. write down your relational schema 5. Create the table, insert at least 4 rows, and do a Select * to show them example don't just copy these, change the constraint namesarrow_forward
- When does Oracle 12c automatically generate an index for a table that it has been given access to?arrow_forwardWrite 8 different SQL queries with their descriptions for the database you created. You must write the queries based on the specified approaches below: -2 joins(with conditions) -2 nested queries -2 set operations -2 aggregate operations (must include joins) Topic Health Carearrow_forwardWhat steps would you take in SQL to modify a table's structure? What kind of generic changes are possible? What commands are required to implement these changes?arrow_forward
- Task 6: The Car Maintenance team considered that the available maintenance tasks should also have the price information in the database. Alter the MAINTENANCE_TYPES table to include a new column named MAINTENANCE_PRICE of type FLOAT. ANSWER IN MYSQL PLEASEarrow_forwardError Functions What type of error occurs with a VLOOKUP) function when there is no corresponding match between a source table and a lookup table? OPTIONS: No matching values #N/A Error #DIV/0arrow_forwardWhat is the SQL SELECT statement used for in database development?arrow_forward
- You are required to create the following tables in a database named STUDENT_REGISTRATIONS. Ensure that you create the database and table objects exactly as depicted below.STUDENTSSTUDENT_ID VARCHAR(8) NOT NULL PRIMARY KEYSTUDENT_NAME VARCHAR(40) NOT NULLSTUDENT_SURNAME VARCHAR(40) NOT NULLMODULESMODULE_ID VARCHAR(8) NOT NULL PRIMARY KEYMODULE_NAME VARCHAR(40) NOT NULLMODULE_CREDIT SMALLINT NOT NULLSTUDENT_MODULESSTUDENT_ID VARCHAR(8) NOT NULL PRIMARY KEYFOREIGN KEY REFERENCES STUDENTS(STUDENT_ID)MODULE_ID VARCHAR(8) NOT NULL PRIMARY KEYFOREIGN KEY REFERENCES MODULES(MODULE_ID)LECTURERSLECTURER_ID VARCHAR(8) NOT NULL PRIMARY KEYLECTURER_NAME VARCHAR(40) NOT NULLLECTURER_SURNAME VARCHAR(40) NOT NULL LECTURER_MODULESMODULE_ID VARCHAR(8) NOT NULL PRIMARY KEYFOREIGN KEY REFERENCES MODULES(MODULE_ID)LECTURER_ID VARCHAR(8) NOT NULL PRIMARY KEYFOREIGN KEY REFERENCESarrow_forwardCreate the ROOMS table using the specification below: Table Name: ROOMS Field Name/ Data Type Size Constraints column name RID Number 8 PRIMARY KEY RType Varchar2 25 NOT NULL Rate Number Bedroom Number 5 Room Status Varchar2 10 REFERENCES to CID in Clients Table CID Numberarrow_forwardCreate a Pl SQL package named EMP_PKG which will have the above three functions and procedures as follows: CALC_TAX - private CHECK_FNAME - Public AVG_SAL - Publicarrow_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
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr
SQL Basics for Beginners | Learn SQL | SQL Tutorial for Beginners | Edureka; Author: edureka;https://www.youtube.com/watch?v=zbMHLJ0dY4w;License: Standard YouTube License, CC-BY