Computer Hardware Essay

11635 Words Mar 23rd, 2015 47 Pages
Introduction to Structured Query Language
This page is a introductory tutorial of the Structured Query Language (also known as SQL) and is a pioneering effort on the World Wide Web, as this is the first comprehensive SQL tutorial available on the Internet. SQL allows users to access data in relational database management systems, such as Oracle, Sybase, Informix, Microsoft SQL Server, Access, and others, by allowing users to describe the data the user wishes to see. SQL also allows users to define the data in a database, and manipulate that data. This page will describe how to use SQL, and give examples. The SQL used in this document is "ANSI", or standard SQL, and no SQL features of specific database management systems will be discussed
…show more content…
Losantiville Ohio 33 Elm St. 440 U.S. 110 Paris Upton New York Michigan

To explain what you just did, you asked for the all of data in the EmployeeAddressTable, and specifically, you asked for the columns called FirstName, LastName, Address, City, and State. Note that column names and table names do not have spaces...they must be typed as one word; and that the statement ends with a semicolon (;). The general form for a SELECT statement, retrieving all of the rows in the table is: SELECT ColumnName, ColumnName, ... FROM TableName; To get all columns of a table without typing all column names, use: SELECT * FROM TableName; Each database management system (DBMS) and database software has different methods for logging in to the database and entering SQL commands; see the local computer "guru" to help you get onto the system, so that you can use SQL.

Conditional Selection
To further discuss the SELECT statement, let's look at a new example table (for hypothetical purposes only): EmployeeStatisticsTable EmployeeIDNo 010 105 152 215 244 300 335 400 Salary 75000 65000 60000 60000 50000 45000 40000 32000 Benefits 15000 15000 15000 12500 12000 10000 10000 7500 Position Manager Manager

Related Documents