Able to retrieve data from multiple tables using SQL Flashcards

1
Q

How can you select only the different values?

A

SELECT DISTINCT(column_name) FROM your_table_name;

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

How can you manipulate the order of the result?

A

To sort the rows in the result set, you add the ORDER BY clause to the SELECT statement.

The following illustrates the syntax of the ORDER BY clause:

SELECT
select_list
FROM
table_name
ORDER BY
column1 [ASC|DESC],
column2 [ASC|DESC],
…;

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

foxshop inner join

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