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

PostgreSQL Exam PGCES-02 Topic 11 Question 58 Discussion

Actual exam question for PostgreSQL's PGCES-02 exam
Question #: 58
Topic #: 11
[All PGCES-02 Questions]

A table named "sample" is defined as below. Select two statements which will generate a constraint error. CREATE TABLE sample ( i INTEGER PRIMARY KEY, j INTEGER,

CHECK ( i > 0 AND j < 0 ) );

Show Suggested Answer Hide Answer
Suggested Answer: A, D

Contribute your Thoughts:

Jose
13 days ago
Ooh, a tricky one! Okay, let's think this through. The table definition says the `i` column must be greater than 0 and the `j` column must be less than 0. So (B) and (E) should be good, but (A), (C), and (D) are gonna trigger that constraint error for sure. Time to put on my SQL thinking cap!
upvoted 0 times
...
Berry
16 days ago
Well, look at that, an opportunity to show off my SQL prowess! Let's see, the question is which statements will generate a constraint error. Hmmm, I'm thinking (A) and (C) are the ones that will fail. Gotta love those pesky CHECK constraints!
upvoted 0 times
...
Dortha
23 days ago
I believe statement D will also generate a constraint error because it has a NULL value for i.
upvoted 0 times
...
Dannette
24 days ago
I agree with Rosina. The constraint CHECK ( i > 0 AND j < 0 ) will be violated with statement B.
upvoted 0 times
...
Rosina
1 months ago
I think statement B will generate a constraint error.
upvoted 0 times
...

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