psql generated the following error message:
psql: could not connect to server: Connection was refused Is the server running on host "server.example.com" and accepting TCP/IP connections on port 5432?
Select two reasons that are NOT the cause of this error.
A. Host "server.example.com" does not exist.Select two correct descriptions about views.
A. A view is created by 'DECLARE VIEW', and deleted by 'DROP VIEW'.What does the following command do? Choose the most appropriate statement from the selection below.
Note: $ is the command prompt.
$ pg_dump postgres > pgsql
A. Writes a backup of the database postgres to the file pgsql.A set of tables are defined as follows:
t1
t2
How many rows are returned by executing the following SQL statement? SELECT * FROM t1 UNION ALL SELECT * FROM t2;
A. 2 rowsSelect two suitable statements regarding the following SQL statement: CREATE TRIGGER trigger_1 AFTER UPDATE ON sales FOR EACH ROW EXECUTE PROCEDURE write_log();
A. It is defining a trigger "trigger_1".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 with the following content on the client side.
1,Pgsql \,inc.
2,Postgres Co. \,Ltd
3,SQL Company.
A. \copy company TO 'company.txt' WITH ',';Select two statements that the command below DOES NOT do. Note: $ is the command prompt. $ pg_dump -b -F c b > d
A. Backs up the "b" database to the "c" file, and stores error messages to the "d" file.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.
A. \copy company TO 'company.txt' WITH ','I would like to check the privileges on the "items" table in psql. Select the most appropriate command.
A. \a itemsSelect two incorrect statements related to the command below. Note: $ is the command prompt. $ psql -U foo -c "COPY company TO stdout;" bar
A. If the company table is not readable, an error occurs.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.