The following question concerns the use of multibyte characters in PostgreSQL. Select two correct items about character encoding in PostgreSQL.
A. "./configure --enable-multibyte" must be designated at time of build.The table "tbl" is defined below such that it could only store non-negative integers in the column "nn".
Select the keyword that is applicable for the underlined blank. CREATE natural_number AS DECIMAL CHECK (VALUE >= 0); CREATE TABLE tbl(nn natural_number);
A. VIEWA 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 )
);
A. INSERT INTO sample VALUES (1, 0);Select two incorrect descriptions regarding the following SQL statements. CREATE TABLE cities ( name
text, population
float
);
CREATE TABLE capitals (
state char(2)
) INHERITS (cities);
A. Defines the tables called "cities" and "capitals".Which psql command do you need to execute to display the list of tables in the currently connected database?
A. SELECT * FROM pg_table_list;Select the most suitable statement about PostgreSQL from below.
A. There are PostgreSQL GPL license versions and commercial license versions.The table "score" is defined as follows: gid | score -----+------1 | 70 1 | 60 2 | 100 3 | 80 3 | 50 The following query was executed. Select the correct result value. SELECT score FROM score ORDER BY gid DESC, score ASC LIMIT 1;
A. 50The "sample" table consists of the following data:
How many rows are returned by executing the following SQL statement? SELECT i FROM sample GROUP BY i HAVING count(*) = 2;
A. 0 rowsThe "sample" table consists of the data below. The column "x" is of type INTEGER. How many rows are returned by executing the following SQL statement? SELECT 6 / x FROM sample WHERE CASE WHEN x = 0 THEN FALSE ELSE TRUE END;
A. "ERROR division by zero" and no rows are returned.Based on the following request, select the most appropriate command for creating a database cluster.
?Character encoding of the template database needs to be EUC_JP ?Locale is not used
A. initdb --locale=EUC_JP --no-encodingNowadays, 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.