Select the correct SQL statement that records the space occupied by deleted or updated rows for later reuse, and also updates statistics.
A 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 ) );
From the SQL commands below, select one that is generally classified as "DDL".
Select one incorrect statement regarding psql.
The table "t1" is defined by the following SQL statement: CREATE TABLE t1 (id integer, namevarchar(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.