Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Oracle Exam 1Z0-770 Topic 2 Question 43 Discussion

Actual exam question for Oracle's 1Z0-770 exam
Question #: 43
Topic #: 2
[All 1Z0-770 Questions]

Examine this code used in Quick SQL:

students

name

roll no num

Quick SQL is using default settings.

Which table creation script or other output is produced?

Show Suggested Answer Hide Answer
Suggested Answer: C

The table creation script produced by Quick SQL is:

create table emp_salary ( id number generated by default on null as identity constraint emp_salary_id_pk primary key, name varchar2 (255 char) not null, salary number, commission_yn varchar2 (1 char) check (commission_yn in ('Y','N')) default 'N' not null );

The commission_yn column will default to 'N' because of the default clause in the column definition. It will also restrict acceptable values to 'Y' or 'N' because of the check constraint. The other options are incorrect because they do not match the output of Quick SQL. Verified References:Using Quick SQLAbout Quick SQL Shorthand Syntax


Contribute your Thoughts:

Currently there are no comments in this discussion, be the first to comment!


Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77