PGCES-02 Exam Questions & Answers
PostgreSQL CE 8 Silver • PostgreSQL
100% money-back guarantee
Sample PGCES-02 Questions
Practice with real exam-style questions, each with the verified correct answer and explanation.
Select two SQL statements which abort a transaction.
You want to set a constraint so that the "item_id" in the "sales" table will always have a value that already exists as "id" in the "item_master" table. Select the correct SQL statement to fill in the underlined blank of the "sales" table. Definitions: CREATE TABLE item_master ( id INTEGER PRIMARY KEY, name TEXT ); CREATE TABLE sales ( sales_id INTEGER, item_id INTEGER, num INTEGER, );
SQL statements were executed in the following order:
CREATE TABLE fmaster
(id INTEGER PRIMARY KEY, name TEXT);
CREATE TABLE ftrans
(id INTEGER REFERENCES fmaster (id), stat INTEGER, date DATE);
INSERT INTO fmaster VALUES (1, 'itemA');
INSERT INTO ftrans VALUES (1, 1, CURRENT_DATE);
Select two SQL statements that will generate an error when executed next.
The following table called 'company' is defined as follows:
id | name ----+--------
---------- 1 |
Pgsql,inc. 2 |
Postgres Co.,Ltd 3 |
SQL Company.
Select the most appropriate psql command for generating a text file company.txt on the client side with the following content: 1,"Pgsql,inc." 2,"Postgres Co.,Ltd" 3,SQL Company.
Select two incorrect statements regarding large objects.
Get access to all 142 verified questions with detailed answers.
Unlock All PGCES-02 Questions