A set of tables are defined as follows:
t1
t2
How many rows are returned by executing the following SQL statement? SELECT * FROM t1 WHERE EXISTS (SELECT name FROM t2 WHERE t1.id = t2.id);
A. 0 rowsA sequence has the following definition: CREATE SEQUENCE seq1 CACHE 10 CYCLE; Select the value that is returned by executing the following SQL. SELECT nextval('seq1');
B. 1Select two incorrect statements concerning the BOOLEAN type in PostgreSQL.
A. BOOLEAN is an alias of the INTEGER type in PostgreSQL.Select the most suitable statement regarding PostgreSQL's pg_hba.conf configuration file.
A. You can use any number of authentication types on a single line.Configuration file pg_hda.conf is set as below on a host currently running PostgreSQL. local all all trust host all 192.168.1.0/24 reject host all all 192.168.0.0/16 trust Select a host IP address which is authorized to connect to this database via
the network. Note:
INET domain socket communication is available.
A. 127.0.0.1Select an appropriate command to check the PostgreSQL version in psql.
A. \server_versionWhich normal form has the constraint that there must be no tables with duplicate column values in the same row?
A. First normal formSelect one statement which will cause a syntax error.
A. SELECT (SELECT item FROM sale WHERE id = 1);The table "t1" is defined by the following SQL statement: CREATE TABLE t1 (id integer, name varchar(20));
You want to increase the execution speed of the SQL statement below:
SELECT id, name FROM t1 WHERE id < 123 AND upper(name) = 'MAMMOTH'; Select the most suitable SQL statement to create an index.
A. CREATE INDEX t1_idx ON t1 (id, upper(name));The following SQL defines an INSERT with respect to item_view. Select the keyword that is applicable in the underlined blank. CREATE foo AS ON INSERT TO item_view DO INSTEAD INSERT INTO item_table VALUES (NEW.id, NEW.itemname);
A. RULENowadays, 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.