Professional Documents
Culture Documents
DateAdd:
Returns a new datetime value based on adding an interval to the specified date
DateDiff:
Returns the number of date and time boundaries crossed between two specified dates
4.
Select *
From EMP_1
Where JOB_code=502
5.
Select *
From EMP_1
Where EMP_lname=Smith
6.
Select *
From EMP_1
7.
FROM EMP_1
8.
SELECT *
FROM EMP_1
9.
SELECT AVG(CUS_BALANCE) AS Average Balance
From EMP_1
10.
SELECT COUNT(CUS_CODE)
FROM EMP_1
WHERE CUS_BALANCE>500
11.
SELECT CHAR_DATE
CHAR_NUM
CHAR_DESTINATION
CHAR_DISTANCE
CHAR_HOURS_FLOWN
FROM CHARATER
WHERE AC_NUMBER=2778V
AND
OR
Combine two search conditions when one or the other must be true
NOT
INSERT: The INSERT command in SQL is used to add records to an existing table.
DELETE: The DELETE command with a WHERE clause can be used to remove his record.
UPDATE: The UPDATE command can be used to modify the information contained within a table.
SELECT: The SELECT command is the most commonly used command in SQL.