SQL Definition: Structured Query Language An industry-standard language for creating, updating and, querying relational database management systems.relational database management systems SQL was developed by IBM in the 1970s for use in System R. It is the de facto standard as well as being an ISO and ANSI standard. It is often embedded in general purpose programming languages.IBMSystem Rde facto standardISOANSI standard
The SELECT statement To use the SELECT command: SELECT [column], [column],.., [column] FROM [table] where column = fieldnames. Columns should be separated by commas. You may choose to display only the columns you wish to see.
Classwork Using the SELECT statement: 1. Write a select statement to select only the FirstName and LastName of all records in the EmployeeAddressTable. 2. Write a select statement to display every field from all the records in the EmployeeAddressTable.
WHERE
The SELECT statement To use the SELECT command: SELECT [column], [column],.., [column] FROM [table] WHERE [condition]
Classwork Using the SELECT statement: 3. Write a select statement to every field of all records in the EmployeeAddressTable where the LastName is ‘Smith’. 4. Write a select statement to LastName of all the records in the EmployeeAddressTable that live in (State) ‘Ohio’.
AND
OR
AND/OR
AND Before OR
Using parenthesis to group conditions
Classwork Using the SELECT statement: 5. Write a select statement to every field of all records in the EmployeeStatisticsTable where the Salary is greater than and Benefits are less than or equal to Write a select statement to LastName of all the records in the EmployeeStatisticsTable that are ‘Staff’ and make at least 50000, or are a ‘Manager’.
IN and BETWEEN
NOT
LIKE
%