SQL Overview - 02
The SELECT statement is used to query the database and retrieve data that match the criteria. The SELECT statement has five main clauses to choose from. Format of the SELECT statement: SELECT [ALL | DISTINCT] column1[,column2] FROM [table1, table2] [WHERE "conditions"] [GROUP BY "column-list"] [HAVING "conditions] [ORDER BY "column-list" [ASC | DESC] ] Example: SELECT name, age, salary FROM employee WHERE age > 40; ALL and DISTINCT are keywords used to select either all (default) or the distinct or unique records in query results....