Q1
True / FalseIn PostgreSQL, JSON data type can be used to store JSON-formatted text.
PostgreSQL supports JSON data type which can store JSON (JavaScript Object Notation) formatted text.
Q2
True / FalseThe ->> operator in PostgreSQL JSON queries returns the JSON object.
The ->> operator in PostgreSQL returns the JSON value as text. The -> operator returns the JSON object.
Q3
True / FalseIn PostgreSQL, you can use the jsonb data type to store JSON data.
PostgreSQL provides json and jsonb data types for storing JSON data. jsonb stores data in a binary format which is more efficient for querying.
Q4
True / FalseThe jsonb_each_text function in PostgreSQL returns set of key-value pairs from a JSONB object.
The jsonb_each_text function in PostgreSQL returns a set of key-value pairs, where keys and values are both of type text.
Q5
True / FalsePostgreSQL allows indexing of JSONB data using GIN (Generalized Inverted Index).
PostgreSQL supports indexing JSONB data using GIN, which is efficient for searching within JSONB documents.
Q6
True / FalseThe #>> operator in PostgreSQL can be used to extract a JSON object at the specified path.
: The #>> operator is used to extract the JSON object as text at the specified path. The #> operator is used to extract the JSON object.
Q7
True / FalsePostgreSQL's JSON functions do not support JSON path queries.
PostgreSQL supports JSON path queries using the jsonpath functions and operators introduced in version 12.
Q8
True / FalseThe jsonb_set function in PostgreSQL can be used to update values in a JSONB document.
The jsonb_set function is used to update the value of a JSONB document at a specified path.
Q9
True / FalsePostgreSQL supports filtering rows based on JSONB array length using the jsonb_array_length function.
The jsonb_array_length function returns the number of elements in a JSONB array, which can be used in WHERE clauses for filtering.
Q10
True / FalseIn PostgreSQL, the jsonb_each function can be used to transform JSONB data into a set of records with keys and values as separate columns.
The jsonb_each function returns a set of key-value pairs from a JSONB object, making it easier to work with JSONB data in a relational manner.