Question 1
Select 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;
Select 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;
Select two incorrect descriptions regarding the following SQL statements.
CREATE TABLE cities ( name text,
population float ); CREATE
TABLE capitals ( state
char(2) ) INHERITS
(cities);
The tables "t1" and "t2" are defined in the same way (they have the same data types and column names). You want to select rows in "t1" which are not in "t2". Select a correct keyword to fill in the blank below. SELECT * FROM t1 ______ SELECT * FROM t2;
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
Select two incorrect statements regarding 'TRIGGER'.
Select an incorrect statement regarding the following SQL statement. Note that "user_view" is a view. CREATE OR REPLACE RULE rule_1 AS ON UPDATE TO user_view DO INSTEAD NOTHING;
The "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;
Select two incorrect statements about the Point-In-Time Recovery (PITR) from below.
Select the SQL command that must be executed prior to executing the EXECUTE command.
What does the following command do? Choose the most appropriate statement from the selection below.
Note: $ is the command prompt.
$ pg_dump postgres > pgsql