Sequence
Table Function
Identity Column
INSTEAD OF Trigger
第1题:
A programmer wants to generate values for a numeric ID column in their EXPENSE table. The ID column values need to be incremented by 1000 for each new expense report added to the EXPENSE table. Which DB2 object can be referenced by an INSERT statement to meet thisrequirement?()
第2题:
On Jan 11, 2005 at 2:30 P.M., an erroneous update operation modified all the values of column LASTNAME in the EMPLOYEE table in the Scott schema to an empty string. You are the system administrator, and you want to return the original values in the table. To do so, you decided to flash back the table. Which two options can you use to flash back a table?()
第3题:
Which three statements inserts a row into the table?()
第4题:
36 You are creating a report wizard to create a matrix report. The query build, you select the patient_name column from the patient table; the doctor_name from the doctors table; and the doctor_ID, patient_ID and ID columns from the procedure table. In the report wizard you select patient_name as the row value, doctor_ID as the column values and the count as the cell values. You need to add a total for each doctors column. In the wizard report which tab will allow you to create the summary column?()
第5题:
Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER NOT NULL EMP_NAME VARCHAR2(30) JOB_ID VARCHAR2(20) SAL NUMBER MGR_ID NUMBER DEPARTMENT_ID NUMBER You want to create a SQL script file that contains an INSERT statement. When the script is run, the INSERT statement should insert a row with the specified values into the EMPLOYEES table. The INSERT statement should pass values to the table columns as specified below: EMPLOYEE_ID: Next value from the sequence EMP_ID_SEQ EMP_NAME and JOB_ID: As specified by the user during run time, throughsubstitution variables SAL: 2000 MGR_ID: No value DEPARTMENT_ID: Supplied by the user during run time through substitution variable. The INSERT statement should fail if the user supplies a value other than 20 or 50. Which INSERT statement meets the above requirements?()
第6题:
Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER NOT NULL, Primary Key EMP_NAME VARCHAR2(30) JOB_ID NUMBER SAL NUMBER MGR_ID NUMBER References EMPLOYEE_ID column DEPARTMENT_ID NUMBER Foreign key to DEPARTMENT_ID column of the DEPARTMENTS table You created a sequence called EMP_ID_SEQ in order to populate sequential values for the EMPLOYEE_ID column of the EMPLOYEES table. Which two statements regarding the EMP_ID_SEQ sequence are true? ()
第7题:
You are responsible for managing the database schema for an order entry application in a SQL Server 2005 database. After a design review, a member of the development staff asks you to add a new column named CommissionRate to the Product table. Because the actual commission rates for all products are not known at this time, each product has a default commission rate of 12 percent. The rate can be modified as necessary. You add the new column. You need to configure the table to assign the default value as efficiently as possible. What should you do?()
第8题:
There is no row with dept_id 90 in the EMPLOYEES table.
You cannot delete the JOB_ID column because it is a NOT NULL column.
You cannot specify column names in the DELETE clause of the DELETE statement.
You cannot delete the EMPLOYEE_ID column because it is the primary key of the table.
第9题:
First 15 dept_no values.
Last 20 ID_no and quantity values with the first 15 dept_no values for each work_in_progress value.
First 15 dept_no values with the last 20 ID_number and quantity values for each total_inventory value.
First 15 dept_no values and the last 20 ID_no and quantity values.
The last 20 ID_number and quantity values.
第10题:
After the query.
Enter the report and change the column's position in the field tab.
Alter the column's position in the object navigator.
Enter the report wizard and change the column's position in the data tab.
Alter the column's position within its group and change the layout.
第11题:
Create an INSERT trigger to assign the default value to each item in the table.
Create a CHECK constraint to validate the data and to assign the default value to each item in the table.
Create an UPDATE trigger to update the default value for each new item in the table.
Create a DEFAULT constraint to assign the default value specifying the WITH VALUES argument.
第12题:
Rows
Totals
Columns
Cells
Data
第13题:
Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2(25) LAST_NAME VARCHAR2(25) Which three statements inserts a row into the table? ()
第14题:
The details of the order ID, order date, order total, and customer ID are obtained from the ORDERS table. If the order value is more than 30000, the details have to be added to the LARGEjDRDERS table. The order ID, order date, and order total should be added to the ORDERJHISTORY table, and order ID and customer ID should be added to the CUSTJHISTORY table. Which multitable INSERT statement would you use? ()
第15题:
Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER NOT NULL, Primary Key EMP_NAME VARCHAR2(30) JOB_ID NUMBER/ SAL NUMBER MGR_ID NUMBER References EMPLOYEE_ID column DEPARTMENT_ID NUMBER Foreign key to DEPARTMENT_ID column of the DEPARTMENTS table You created a sequence called EMP_ID_SEQ in orderto populate sequential values for the EMPLOYEE_ID column of the EMPLOYEES table. Which two statements regarding the EMP_ID_SEQ sequence are true? ()
第16题:
Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2(25) LAST_NAME VARCHAR2(25) Which three statements insert a row into the table? ()
第17题:
You created a report from the human resources department based on all the columns in the EMP table. After viewing the report users requested that the cmp_ID columns peers first in the output. How would you change the position of the column?()
第18题:
You are responsible for managing the database schema for an order entry application in a SQL Server 2005 database. After a design review, a member of the development staff asks you to add a new column named CommissionRate to the Product table. Because the actual commission rates for all products are not known at this time, each product has a default commission rate of 12 percent. The rate can be modified as necessary. You add the new column. You need to configure the table to assign the default value as efficiently as possible. What should you do?()
第19题:
Sequence
Table Function
Identity Column
INSTEAD OF Trigger
第20题:
INSERT INTO employees VALUES (emp_id_seq.NEXTVAL, &ename','&jobid', 2000, NULL, &did);
INSERT INTO employees VALUES (emp_id_seq.NEXTVAL, '&ename', '&jobid', 2000, NULL, &did IN (20,50));
INSERT INTO (SELECT * FROM employees WHERE department_id IN (20,50)) VALUES (emp_id_seq.NEXTVAL, &ename','&jobid', 2000, NULL, &did);
INSERT INTO (SELECT * FROM employees WHERE department_id IN (20,50) WITH CHECK OPTION) VALUES (emp_id_seq.NEXTVAL, &ename','&jobid', 2000, NULL, &did);
INSERT INTO (SELECT * FROM employees WHERE (department_id = 20 AND department_id = 50) WITH CHECK OPTION ) VALUES (emp_id_seq.NEXTVAL, &ename','&jobid', 2000, NULL, &did);
第21题:
by using Oracle Enterprise Manager
by issuing the FLASHBACK TABLE statement at the RMAN prompt
by issuing the FLASHBACK TABLE statement at the SQL prompt
by issuing the FLASHBACK TABLE statement at the LSNRCTL prompt
第22题:
You cannot use the EMP_ID_SEQ sequence to populate the JOB_ID column.
The EMP_ID_SEQ sequence is invalidated when you modify the EMPLOYEE_ID column.
The EMP_ID_SEQ sequence is not affected by modifications to the EMPLOYEES table.
Any other column of NUMBER data type in your schema can use the EMP_ID_SEQ sequence.
The EMP_ID_SEQ sequence is dropped automatically when you drop the EMPLOYEES table.
The EMP_ID_SEQ sequence is dropped automatically when you drop the EMPLOYEE_ID column.
第23题:
Create an INSERT trigger to assign the default value to each item in the table.
Create a CHECK constraint to validate the data and to assign the default value to each item in the table.
Create an UPDATE trigger to update the default value for each new item in the table.
Create a DEFAULT constraint to assign the default value specifying the WITH VALUES argument.
第24题:
Pivoting INSERT
Unconditional INSERT
Conditional ALL INSERT
Conditional FIRST INSERT