Q1
True / FalseIn PostgreSQL, the > operator is used to compare if one value is greater than another.
The > operator checks if the value on the left is greater than the value on the right.
Q2
True / FalseIn PostgreSQL, the < operator is used to compare if one value is less than another.
The < operator checks if the value on the left is less than the value on the right.
Q3
True / FalseIn PostgreSQL, the expression 5 > 3 evaluates to FALSE.
The expression 5 > 3 evaluates to TRUE because 5 is greater than 3.
Q4
True / FalseIn PostgreSQL, the > and < operators can be used to compare both numeric and date values.
The > and < operators can be used to compare numeric, date, and other types of values in PostgreSQL.
Q5
True / FalseIn PostgreSQL, NULL > 0 and NULL < 0 both evaluate to FALSE.
In PostgreSQL, any comparison with NULL results in NULL, which is not TRUE or FALSE but unknown.
Q6
True / FalseIn PostgreSQL, the query SELECT * FROM table WHERE column > 100 returns rows where the column value is greater than 100.
The query filters rows where the value in column is greater than 100.
Q7
True / FalseIn PostgreSQL, the > and < operators can be combined with the BETWEEN operator to check for a range of values.
While the BETWEEN operator is often used for range checks, > and < can also be used to define custom range conditions.
Q8
True / FalseIn PostgreSQL, the expression column1 > column2 will always evaluate to TRUE if column1 and column2 contain the same values.
If column1 and column2 contain the same values, the expression column1 > column2 will evaluate to FALSE.
Q9
True / FalseIn PostgreSQL, using > or < operators in ORDER BY clauses sorts the results based on the specified condition.
The ORDER BY clause uses ASC or DESC for sorting, not > or < operators. However, these operators are used within WHERE clauses for filtering.
Q10
True / FalseIn PostgreSQL, using the > operator in an indexed column's query condition can improve query performance by leveraging the index.
If a column is indexed, using the > operator in query conditions can improve performance as the index helps in quickly locating the relevant rows.