The tables "t1" and "t2" are defined below. The tables "t1" and "t2" have columns "id" which are type of INTEGER and column "name"s which are type of TEXT. t1 t2 The following SQL command was executed. Select the number of rows in the result. SELECT
*
FROM t1 NATURAL FULL OUTER JOIN t2;
A. 2 rowsSelect one incorrect statement concerning the following SQL statement. CREATE OR REPLACE VIEW sales_view AS SELECT * FROM sales_table ORDER BY sales_date DESC LIMIT 10;
A. Defines the view called "sales_view".Select the most appropriate setting to output the log messages of the database to syslog.
A. "syslog = true" in postgresql.conf.Given the following two table definitions, select one SQL statement which will cause an error.
CREATE TABLE sample1 (id INTEGER, data TEXT);
CREATE TABLE sample2 (id INTEGER);
A. SELECT s1.id FROM sample1 s1;Select one incorrect description about changing the settings of PostgreSQL during operation.
A. The current value of a parameter can be confirmed using the SHOW command.Select two suitable statements regarding creating a new table.
A. There is no upper limit to the number of columns in a table.Select an incorrect statement regarding prepared statements, and 'PREPARE' / 'EXECUTE' commands.
A. 'PREPARE'/'EXECUTE' is mainly used to optimize performance.SQL statements were executed in the following order.
CREATE TABLE book (
id VARCHAR(21), title TEXT NOT NULL, price INT,
UNIQUE (id), CHECK (price > 0)
);
INSERT INTO book VALUES ('4-12345-678-9', 'SQL book', 2300); --(1) INSERT INTO book (title, price) VALUES ('PostgreSQL', 3000); --(2) UPDATE book SET id = '4-12345-678-9' WHERE id IS NULL; --(3) DELETE FROM book WHERE
price < 0; --(4)
While executing, select the first location that generates an error.
A. (1)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,
);
A. FOREIGN KEY (id) REFERENCES item_master (item_id)You have just added an option "listen_addresses = 'localhost'" in postgresql.conf. When will this setting take effect?
A. This change will take effect as soon as postgresql.conf is saved.Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only PostgreSQL-CE exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your PGCES-02 exam preparations and PostgreSQL-CE certification application, do not hesitate to visit our Vcedump.com to find your solutions here.