SQL commands
Latest uploads at SQL commands. Looking for notes at SQL commands? We have lots of notes, study guides and study notes available for your school.
-
7
- 0
-
2
All courses for SQL commands
-
SQL commands 7
Latest content SQL commands
SQL COMMANDS LATEST STUDY GUIDE 
 
The SELECT statement is used to select data from a database. 
 
The result is stored in a result table, called the result-set. ans: SELECT column_name,column_name 
FROM table_name; 
 
SELECT * FROM table_name; 
 
The SELECT DISTINCT statement is used to return only distinct (different) values ans: SELECT DISTINCT column_name,column_name 
FROM table_name; 
 
The WHERE clause is used to extract only those records that fulfill a specified criterion. ans: SELECT co...
- Exam (elaborations)
- • 7 pages's •
-
SQL COMMANDS•SQL COMMANDS
Preview 2 out of 7 pages
Getting your document ready...
SQL COMMANDS LATEST STUDY GUIDE 
 
The SELECT statement is used to select data from a database. 
 
The result is stored in a result table, called the result-set. ans: SELECT column_name,column_name 
FROM table_name; 
 
SELECT * FROM table_name; 
 
The SELECT DISTINCT statement is used to return only distinct (different) values ans: SELECT DISTINCT column_name,column_name 
FROM table_name; 
 
The WHERE clause is used to extract only those records that fulfill a specified criterion. ans: SELECT co...
SQL commands 
 
 
AVG() ans: SELECT AVG(COLUMN NAME) FROM TABLE_NAME 
Using it in WHERE CLAUSE so a different form of presentation: 
TO LIST ONLY THOSE PRODUCTS AND PRICES WHERE THE AVERAGE IS MORE THAN A SPECIFIC AMOUNT:- 
SELECT ProductName, Price FROM Products 
WHERE Price>(SELECT AVG(Price) FROM Products); 
 
COUNT() ans: SELECT COUNT(*) FROM TABLE_NAME 
(to select all the NON null values of records in the table 
SELECT COUNT(Column Name) FROM TABLE_NAME 
(to count all values in a column...
- Exam (elaborations)
- • 14 pages's •
-
SQL commands•SQL commands
Preview 2 out of 14 pages
Getting your document ready...
SQL commands 
 
 
AVG() ans: SELECT AVG(COLUMN NAME) FROM TABLE_NAME 
Using it in WHERE CLAUSE so a different form of presentation: 
TO LIST ONLY THOSE PRODUCTS AND PRICES WHERE THE AVERAGE IS MORE THAN A SPECIFIC AMOUNT:- 
SELECT ProductName, Price FROM Products 
WHERE Price>(SELECT AVG(Price) FROM Products); 
 
COUNT() ans: SELECT COUNT(*) FROM TABLE_NAME 
(to select all the NON null values of records in the table 
SELECT COUNT(Column Name) FROM TABLE_NAME 
(to count all values in a column...
The SELECT statement is used to select data from a database. 
 
The result is stored in a result table, called the result-set. ans: SELECT column_name,column_name 
FROM table_name; 
 
SELECT * FROM table_name; 
 
The SELECT DISTINCT statement is used to return only distinct (different) values ans: SELECT DISTINCT column_name,column_name 
FROM table_name; 
 
The WHERE clause is used to extract only those records that fulfill a specified criterion. ans: SELECT column_name,column_name 
FROM table_n...
- Exam (elaborations)
- • 7 pages's •
-
SQL COMMANDS•SQL COMMANDS
Preview 2 out of 7 pages
Getting your document ready...
The SELECT statement is used to select data from a database. 
 
The result is stored in a result table, called the result-set. ans: SELECT column_name,column_name 
FROM table_name; 
 
SELECT * FROM table_name; 
 
The SELECT DISTINCT statement is used to return only distinct (different) values ans: SELECT DISTINCT column_name,column_name 
FROM table_name; 
 
The WHERE clause is used to extract only those records that fulfill a specified criterion. ans: SELECT column_name,column_name 
FROM table_n...
AVG() ans: SELECT AVG(COLUMN NAME) FROM TABLE_NAME 
Using it in WHERE CLAUSE so a different form of presentation: 
TO LIST ONLY THOSE PRODUCTS AND PRICES WHERE THE AVERAGE IS MORE THAN A SPECIFIC AMOUNT:- 
SELECT ProductName, Price FROM Products 
WHERE Price>(SELECT AVG(Price) FROM Products); 
 
COUNT() ans: SELECT COUNT(*) FROM TABLE_NAME 
(to select all the NON null values of records in the table 
SELECT COUNT(Column Name) FROM TABLE_NAME 
(to count all values in a column) 
SELECT COUNT(Di...
- Exam (elaborations)
- • 14 pages's •
-
SQL commands•SQL commands
Preview 2 out of 14 pages
Getting your document ready...
AVG() ans: SELECT AVG(COLUMN NAME) FROM TABLE_NAME 
Using it in WHERE CLAUSE so a different form of presentation: 
TO LIST ONLY THOSE PRODUCTS AND PRICES WHERE THE AVERAGE IS MORE THAN A SPECIFIC AMOUNT:- 
SELECT ProductName, Price FROM Products 
WHERE Price>(SELECT AVG(Price) FROM Products); 
 
COUNT() ans: SELECT COUNT(*) FROM TABLE_NAME 
(to select all the NON null values of records in the table 
SELECT COUNT(Column Name) FROM TABLE_NAME 
(to count all values in a column) 
SELECT COUNT(Di...