Question

In: Computer Science

1.A TIMESTAMP data type is the same as a DATE data type, except that time zone...

1.A TIMESTAMP data type is the same as a DATE data type, except that time zone can be specified.. Single choice.

a) True

b) False

2.If the column S_ID is the primary key of the STUDENT table, the constraint name would be pk_STUDENT_S_ID according to the constraint naming convention.. Single choice.

a) True

b) False

3.You can always rename a table.. Single choice.

a) True

b) False

4.Which of the following is not a legal table name according to the Oracle Naming Standard?. Single choice.

a. #COURSE_ID

b. COURSE$ID

c. COURSEID

d. COURSE_ID

5.Which of the following data types is used to store variable length ASCII character data?. Single choice.

a. CHAR

b. NCHAR

c. VARCHAR2

d. NVARCHAR2

6.Deleting columns from a table is a(n) ____ action.. Single choice.

a. restricted

b. unrestricted

c. illegal

d. privileged

7.Which of the following pieces of information about a table is not displayed when using the DESCRIBE command?. Single choice.

a. column name

b. column data type

c. not null settings

d. table constraints

8.When selecting the table_name column from the all_tables view which tables are displayed?. Single choice.

a. all tables in database

b. all tables in user’s schema

c. all tables user has permission to manipulate

d. all newly created tables

9.Which command would be used to delete table x and all foreign key constraints to x?. Single choice.

a. delete x

b. delete x cascade constraints

c. drop x

d. drop x cascade constraints

10.Which of the following is true when decreasing the maximum size of a CHAR column?. Single choice.

a. it is an unrestricted action

b. it is only permitted if all values are NULL

c. all values in the column will be truncated to the new size

d. all values larger than the new size will be automatically set to NULL

11.Which of the following column data type changes is permitted?. Single choice.

a. DATE to CHAR

b. VARCHAR2 to CHAR

c. CHAR to NUMBER

d. NUMBER to DATE

12.Which command is used to disable the constraint named faculty_loc_id_fk in the faculty table?. Single choice.

a. MODIFY TABLE CONSTRAINT DISABLE faculty_loc_id_fk;

b. ALTER TABLE faculty DISABLE faculty_loc_id_fk;

c. MODIFY TABLE faculty DISABLE faculty_loc_id_fk;

d. ALTER TABLE faculty DISABLE CONSTRAINT faculty_loc_id_fk;

Solutions

Expert Solution

Solution 1: No, it is false, as the difference between the date and the timestamp is that the date features the day, month as well as the year while the timestamp features the same but even with the fractional seconds and hence there is nothing about the timezones.

Solution 2: For a unique constraint in SQL, the naming convention is UQ_<TableName>_<ColumnName(s) and it is followed by the example given in the question and hence it is completely true.

Solution 3: Yes, it is true as the table can always be renamed.

Solution 4: Option A is the incorrect table name according to the oracle naming convention as # should not be there at the start of a table name.

Solution 5: Option D is the correct option as the nvarchar is a datatype that is used for storing the variable length character data.

Solution 6: Option B is the correct option as the columns can be deleted from the tabel using the drop columns command from the table.

Solution 7: Option D is the correct option as the table constraints are not displayed by the desc command.

Solution 8: Option C is the correct option as the given command actually displays all tables user has permission to manipulate.

Solution 9: Option D is the correct option as the drop x cascade constraints is the command that can be used to delete a table with all the foreign key constraints.

Solution 10: Not sure about this solution, cannot provide you with wrong answers, thanks for understanding dear.

Solution 11: Option C is the correct option as VARCHAR2 to CHAR is the only change that is allowed within the table columns.

Solution 12: Option D is the correct option as it is the correct way to disable the constraints on a table.

Here's the solution to your question, please provide it a 100% rating. Thanks for asking and happy learning!!


Related Solutions

_____ The conducting zone of the respiratory system performs all of the following functions EXCEPT a....
_____ The conducting zone of the respiratory system performs all of the following functions EXCEPT a. Humidify air b. Exchange gases c. Warm the incoming air d. Get rid of inhaled debris _____ The tonsils are located in the a. Laryngopharynx and behind the tongue b. Nasopharynx and the laryngopharynx c. Oropharynx and nasopharynx d. Oral cavity and trachea _____ Gas exchange in the kidney occurs a. At the glomerulus b. At the vasa recta c. At the peritubular capillaries...
Question 1) Identify the type of data that would be used to describe a response. Time...
Question 1) Identify the type of data that would be used to describe a response. Time in Line to Buy Groceries A. Qualitative (Categorical) B. Quantitative - Continuous C. Quantitative - Discrete Question 2) Identify the type of data that would be used to describe a response. Most Watched Television Show A. Quantitative - Discrete B. Quantitative - Continuous C. Qualitative (Categorical) Question 3. lege administrator wants to survey 250 students that attend her college to see if students are...
1. Explain clearly why it is possible that, for the same firm, for the same time...
1. Explain clearly why it is possible that, for the same firm, for the same time period: (a) Sales may rise but net income fall. (b) Net Income may rise but cash flow fall. (c ) Net income may rise but stock price fall. (d) Dividends rise but stock return fall.
All of the following is always true about valuation date EXCEPT:
All of the following is always true about valuation date EXCEPT:a.The valuation date is the same as the date of the valuation report producedb.The valuation date should be specifically defined at the time of engagementc.Only information that is known or knowable as of the specific valuation date should be incorporated into a business valuationd.It is generally easiest if the valuation date coincides with the date of the company’s reported financial statements
The company purchased furniture on April 1, 2020 for $5,630. On the same date, furniture with...
The company purchased furniture on April 1, 2020 for $5,630. On the same date, furniture with an original cost of $119,961, was sold for $66,438. Calculate the maximum impact on business income for the year from furniture and other miscellaneous tangible capital assets.
Consider Fisher & Company’s financial data as follows (unit: millions of dollars except ratio and time...
Consider Fisher & Company’s financial data as follows (unit: millions of dollars except ratio and time figures): Cash and marketable securities $100 Fixed assets $280 Sales $1,200 Net income $358 Inventory $180 Current ratio 3.2 Average collection periods 45 days Average common equity $500 Find Fisher’s accounts receivable Calculate the amount of current assets Determine the amount of current liabilities Determine the amount of total assets Calculate the amount of the long-term debt Calculate the net profit margin
Question 1: Which of the following best characterizes theconcept of zone indifference?The zone of...
Question 1: Which of the following best characterizes the concept of zone indifference?The zone of indifference exists because employees know which orders need to be followed and which orders can be ignored.the zone of indifference extends to an area of decision making where employees are equally satisfied following one other versus another.the zone of indifference comes about because employees have an ethical duty not to follow certain orders issued from management.the zone of indifference is the range in which attempts...
1. Describe the different functions of the conducting zone and respiratory zone and relate those to...
1. Describe the different functions of the conducting zone and respiratory zone and relate those to differences in their histology. 2. State whether hyperventilation and emphysema would raise or lower each of the following—the blood Po2, Pco2, and pH—and explain why.
Say I'm on a date. The probability of my date showing up on time for the...
Say I'm on a date. The probability of my date showing up on time for the first date is 0.5 (since possible outcomes are either “on time” or “not on time”, the probability of being “not on time” is 1 – P (on time) = 1 - 0.5 = 0.5). For the second date, the probability of the same person showing up on time is 0.90 if she was on time for the first date. However, this probability is only...
Construct a time series plot. What type of pattern exists in the data?
Consider the following time series data. Quarter Year 1 Year 2 Year 3 1 4 6 7 2 2 3 6 3 3 5 6 4 5 7 8 Construct a time series plot. What type of pattern exists in the data? The time series plot indicates a linear trend and a seasonal pattern Show the four-quarter and centered moving average values for this time series.   Compute seasonal indexes and adjusted seasonal indexes for the four quarters.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT