|
|
Authorized user can see question and answers. Please log in or sign up. 
|
#43. Examine the structure of the STUDENT table: Name Null? Type
STUD_ID NOT NULL NUMBER(3)
NAME NOT NULL VARCHAR2(25)
ADDRESS VARCHAR2(50)
GRADUATION DATE Graduation column is a foreign key column to the GRADDATE table. Examine the data in the GRADDATE table: GRADUATION ____________ 20-JAN-1999 12-MAY-1999 19-JAN-2000 25-MAY-2000 13-JAN-2001 29-MAY-2001 Which update statement produces the following error? ORA-02291: integrity constraint (SYS_C23) violated - parent key not found
Show comments for this question (0)
Add comments
Link to this question
|
|
#45. Click on the EXHIBIT button and examine the table instance chart for the sales table. You attempt to change the database with this command: INSERT INTO sales (purchase_no, customer_id, car_id) VALUES (1234, 345, 6);
If this statement fails, which condition would explain the failure?
Show comments for this question (0)
Add comments
Link to this question
|
|
#48. The EMP table contains columns to hold the birth date and hire date of employees. Both of these columns are defined with DATE as their datatype. You want to insert a row with the details of employee Smith who was born in 1944 and hired in 2004. Which statement will ensure that values are inserted into the table in the correct century?
Show comments for this question (0)
Add comments
Link to this question
|
|
#49. The EMPLOYEE table contains these columns: FIRST_NAME VARCHAR2(25)
LAST_NAME VARCHAR2(25) Evaluate these two SQL statements: 1. SELECT CONCAT(first_name, last_name), LENGTH(CONCAT(first_name, last_name)) FROM employee WHERE UPPER(last_name) LIKE ‘%K’ ORUPPER(last_name) LIKE ‘%K’ ORUPPER(last_name) LIKE ‘%K’;
2. SELECT INITCAP(first_name) || INITCAP(last_name), LENSTH(last_name) + LENGTH(first_name) FROM employee WHERE INITCAP(SUBSTR(last_name, 1, 1)) IN (J’, ‘K’, ‘L’);
How will the results differ?
Show comments for this question (0)
Add comments
Link to this question
|
|
|
|
gen. 0.398
|
Server date 10:58 22-11-2008
|
Developed by Zip © 2006
|
|
 |
|
|