What is SQL? SQL stands for Structured Query Language and is the lingua franca in the database world. SQL is a standard that is used by all database vendors and programmers to define, extract and access the information that is stored in databases. SQL began life as an IBM creation but was standardized by the American National Standards Institute (ANSI) and the International Organization for Standardization (ISO) as ANSI/ISO SQL in 1988. Since then ANSI/ISO SQL standard continued to evolve. The ANSI-SQL group has since published three standards over the years:
1. SQL89 (SQL1)
2. SQL92 (SQL2)
3. SQL99 (SQL3)
SQL is a query language. It is English-like and easy to use. However, although there are more than 90 SQL reserved words, most programmers seldom use more than the following handful of commands - SELECT, INSERT, UPDATE, DELETE, FROM, WHERE, HAVING, BETWEEN, LIKE, OR, AND, NOT, IN, ORDER, GROUP and BY.
For example, if you had a database table named "employees" and you wanted to retrieve all records where the employee has the last name "goodman", you would use the following SQL statement:
SELECT * FROM employees WHERE lastname = 'goodman';
There are many different categories of SQL statements but the basic ones which all programmers should be familiar with are the SQL statements that:
1. Create tables and manipulate their definitions
2. Query the table data
3. Manipulate the table data
SQL is predominantly used by 2 types of users - programs and humans (keying in the commands through a database client) - to pass instructions to databases. SQL commands can be keyed into a database client like the MySQL Query Browser or the SQL Server Enterprise Manager and executed to either return a result or modify records in the database. SQL can also be used in conjunction with programming language or scripting language like Microsoft Visual Basic or PHP to communicate with the database.
Although SQL is a world standard, it is unfortunate that most database vendors have come up with different dialects and variations. This is because every database vendor wants to differentiate their database products from the crowd. One good example is Microsoft SQL Server's TRANSACT-SQL. TRANSACT-SQL is a superset of SQL and is designed for use only with Microsoft SQL Server. Although it does make programming much easier for software developers, it is not compliant with other databases like Oracle or MySQL - making TRANSACT-SQL programs non database-portable. As such, although many of these features are powerful and robust, it is good practice to exercise caution and limit your SQL use to be compliant with the ANSI/ISO SQL standards and ODBC-Compliant.
Courtesty of SQLPrimer.com. For more information, please contact the Webmaster of SQLPrimer.com - http://www.sqlprimer.com.
![]() |
|
![]() |
|
![]() |
|
![]() |
Designing an E-commerce Web site is not as simple as... Read More
There was a time not long ago when setting up... Read More
In the late 1990's three San Francisco based web developers... Read More
Conceptualize, Build and Publish a Web site - What's required... Read More
A system development process can follow a number of standard... Read More
The Disability Discrimination Act says that websites must be made... Read More
You have seen those web pages where they have the... Read More
Visitors to your site come looking for information or solutions... Read More
After years of working with entrepreneurs who developed their first... Read More
Selecting the Perfect Domain NameThe first issue I have with... Read More
The needs of screen magnifier users are overlooked when implementing... Read More
The process of Web application development is critical to the... Read More
How many Web Sites did you stumble over telling you... Read More
If you haven't made the sales and built your clients... Read More
Revenues are often lost because many business owners don't see... Read More
D.zigns dzignerwebs The Basics Before starting on... Read More
An interesting eCommerce success factor that isn't precisely overlooked, but... Read More
Like most average persons, I wanted some extra money to... Read More
Is Your Web Site an Expense or an Investment?Why don't... Read More
Profiles are one of the best kept secrets around regarding... Read More
With more and more countries around the world passing laws... Read More
After having decided to start a business, the next thing... Read More
If you've been developing websites on Mars for the past... Read More
Some left shoes are in isle 5, while the right... Read More
What is the most important part of your online business?Many... Read More
Many of site owners still don't realize all advantages of... Read More
There's been widespread speculation about the new legislation being introduced... Read More
I'm one of those people that always wanted a website,... Read More
When you purchase a new item from a Yahoo! Store,... Read More
Simply ensuring your website is accessible to screen reader users... Read More
In a previous ezinearticles.com article,"I Need real visitors, Not Search... Read More
A simple website stats counter is not enough if you... Read More
2 Golden Rules for an Engaging Website35% of visitors fail... Read More
Thinking about starting up a business? The web is the... Read More
Let's begin by setting some limits. If you're like me,... Read More
The Internet is a remarkable publishing medium. With just a... Read More
Build it and they will come is not always true;... Read More
It amazes me how many people try to build serious... Read More
A system development process can follow a number of standard... Read More
Developing a website with content that entices visitors to return... Read More
I'm a freelance programmer and somehow I managed to get... Read More
Visitors to your site come looking for information or solutions... Read More
As increasing numbers of people search for information on the... Read More
When used to describe a web site, the term "sticky"... Read More
Huge Mistake #1: Creating a Website with Flash -- Did... Read More
One of the biggest mistakes that most online retailers make... Read More
Many web developers today are starting to KISS their website,... Read More
"Build it and they will come."--Filed of Dreams (1989) If... Read More
It is an undeniable fact that not everybody is keen... Read More
Many millions of dollars are being wasted on promoting and... Read More
Have you ever thought the secret behind the success of... Read More
I can't think of any business alive today that couldn't... Read More
How popular is online shopping? And is there room for... Read More
Your site is getting traffic, but conversion rates are horrible.... Read More
The "robots" meta tag, when used properly, will tell the... Read More
It's now easier than ever to take payments on the... Read More
Making money with your web site is the dream and... Read More
Globalize Your WebsiteThe Internet has unlocked a wide array of... Read More
This is a growing concern amongst many business owners. Does... Read More
"What's in it for me?" you ask. "Why should I... Read More
When marketing your website, it's important to know which of... Read More
Analyzing traffic to a site is a key factor in... Read More
So you want to take a look at a real... Read More
There are many different traffic analysis tools, ranging from simple... Read More
1) Data CaptureOne easy way to collect e-mail addresses and... Read More
When most people build a web site, they think one... Read More
Web Development |