Data Manipulation Flashcards

1
Q

Filtering

A

used to identify and isolate specific sets of data based on predefined criteria.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Condition

A

criterion or set of criteria that specify which data should be selected or manipulated within a database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

WHERE

A

conditional statement that is used to filter the results of a query

WHERE clause can be used in conjunction with SQL statements like SELECT, UPDATE,
DELETE, etc.

=, <, >, <>, >=, <=, BETWEEN, LIKE, IN, and NOT IN, and can also be used to combine multiple
conditions using AND / OR.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

BETWEEN Operator:

A

selects values within a range

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

IN Operator:

A

IN operator allows you to specify multiple values in a WHERE clause. In PostgreSQL is used to reduce the need for
multiple OR conditions in a SELECT, UPDATE, INSERT, or DELETE statement.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

NOT Operator:

A

The NOT IN operator displays a record if the exclusion condition is met

returns TRUE if the value is in the list of values matches, whereas the NOT IN operator returns TRUE if the value is not in the list of values or there is no match.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

LIKE

A

LIKE is case-sensitive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

ILIKE

A

ILIKE provides a case-insensitive option.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

ORDER BY

A

ORDER BY clause is used in a SELECT statement to sort the results
in ascending (ASC ) or descending order (DESC) based on one or more columns.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

LIMIT clause

A

used to limit the number of rows returned

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

OFFSET clause

A

used to skip a number of rows

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

CONCAT

A

to concatenate two or more strings into one

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

CONCAT_WS

A

specify a separator that will be inserted between the strings to concatenate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

AS

A

to rename a column an alias

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

DISTINCT

A

allows to return only distinct (different) values within a column. I

How well did you know this?
1
Not at all
2
3
4
5
Perfectly