|
|
Authorized user can see question and answers. Please log in or sign up. 
|
#131. You create the sale table with this command: CREATE TABLE sale (purchase_no NUMBER(9) CONSTRAINT sale_purchase_no_pk PRIMARY KEY, customer_id NUMBER(9) CONSTRAINT sale_customer_id_fk REFERENCES customer (id) CONSTRAINT sale_customer_id_nn NOT NULL);
Which index or indexes are created for this table?
Show comments for this question (0)
Add comments
Link to this question
|
|
#133. Examine the structure of the STUDENT table: Name Null Type
STUD_ID NOT NULL NUMBER(3)
NAME VARCHAR2(25)
ADDRESS VARCHAR2(50)
GRADUATION DATE Currently, the table is empty. You have decided that NULL values should not be allowed for NAME column. Which statement restricts NULL values from being entered into the column?
Show comments for this question (0)
Add comments
Link to this question
|
|
#134. The view EMP_VIEW is created based on the table EMP as follows: CREATE OR REPLACE VIEW emp_view AS SELECT deptno, SUM(sal) TOT_SAL, COUNT(*) NUM_EMP FROM emp GROUP BY deptno;
What happens when the following command is issued? UPDATE emp_view SET tot_sal = 20000 WHERE deptno = 10;
Show comments for this question (0)
Add comments
Link to this question
|
|
#138. Examine the structure of the STUDENT table: Name Null Type
STUD_ID NOT NULL NUMBER(3)
NAME NOT NULL VARCHAR2(25)
PHONE NOT NULL VARCHAR2(9)
ADDRESS VARCHAR2(50)
GRADUATION DATE There are 100 records in the STUDENT table. You need to modify the PHONE column to hold only numeric values. Which statement will modify the datatype of the PHONE column?
Show comments for this question (0)
Add comments
Link to this question
|
|
#139. You need to store currency data and you know that the data will always have two digits to the right of the decimal point. However, the number of digits to the left of the decimal place will vary greatly. Which datatype would be most appropriate to store this data?
Show comments for this question (0)
Add comments
Link to this question
|
|
#140. You attempt to create the salary table with this command: 1 CREATE TABLE salary 2 .(employee_idNUMBER(9) 3.CONSTRAINT salary_pk PRIMARY KEY, 4.1995_saIaryNUMBER(8,2), 5 .manager_nameVARCHAR2(25) 6.CONSTRAINT mgr_name_nn NOT NULL, 7.$salary_96NUMBER(8,2));
Which two lines of this statement will return errors? (Choose two.)
Show comments for this question (0)
Add comments
Link to this question
|
|
|
|
gen. 0.078
|
Server date 11:07 08-01-2009
|
Developed by Zip © 2006
|
|
 |
|
|