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;
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],
…;
3
Q
foxshop inner join
A