12.07.2015 Views

Oracle SQL Developer

Oracle SQL Developer

Oracle SQL Developer

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Creating a Table (Patrons)In Available Columns, double-click TITLE and then AUTHOR_LAST_NAME to movethem to Selected Columns.Check Constraints tabClick Add to add a check constraint for the table, namely, that the rating column valueis optional (it can be null), but if a value is specified, it must be a number from 1through 10. You must enter the condition using <strong>SQL</strong> syntax that is valid in a CHECKclause (but do not include the CHECK keyword or enclosing parentheses for the entireCHECK clause text).Name: rating_1_to_10Condition: rating is null or (rating >= 1 and rating

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!