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.
|
|
|
|
|
|
|
|
|
|
|


The definition of the phrase "Content Management" depends on what... Read More
More and more businesses are recognizing the importance of content... Read More
August 8 2005, Macromedia announced a release of Studio 8.... Read More
There are many different traffic analysis tools, ranging from simple... Read More
Conceptualize, Build and Publish a Web site - What's required... Read More
People often come to me in a state of crisis... Read More
Selecting the Perfect Domain NameThe first issue I have with... Read More
Although designing a great web site is an important part... Read More
Every online entrepreneur I talk to is asking the same... Read More
No matter the size of your business, having a web... Read More
Cost Effective Advertising. Online selling. Increased geopgraphic range. Wider... Read More
There are many elements that are key to successful web... Read More
Getting a Targeted Visitor to a website is a waste... Read More
Internet has opened a whole new world for web developers... Read More
Functions and Subroutines in ASP If you read... Read More
Through the explosive growth of the Web, companies have realized... Read More
Your web site will be your window to the world.... Read More
A PHP Redirect automatically transfers a web user from one... Read More
When I started my company in 2002, I knew I... Read More
The evolution of web development parallels the model of technology... Read More
While it may seem like a "quick and easy" task,... Read More
80% of your Web site is Maintenance!Once your Web site... Read More
Running an effective website is a continuous process. I have... Read More
"I don't sell anything online, I don't advertise online, in... Read More
In the time that I have been using the Internet,... Read More
This article was prompted by some customer support work I... Read More
Understanding and using web analytics.In recent years, website marketers were... Read More
Here's something you may never have thought of before:If I... Read More
Writing for the web is totally different to writing for... Read More
QUESTION: Should I build and maintain my business Web... Read More
Even with the steady growth of the World Wide Web,... Read More
Keywords in Search Engine Optimizing and Search Engine Marketing are... Read More
While studying online for IT investment opportunities, I found that... Read More


I'm a freelance programmer and somehow I managed to get... Read More
A website lets you put your products in front of... Read More
When I started my company in 2002, I knew I... Read More
After planning the design and content of your website, it's... Read More
You work hard to build traffic to your web page.... Read More
In the late 1990's three San Francisco based web developers... Read More
The Internet is a remarkable publishing medium. With just a... Read More
Some left shoes are in isle 5, while the right... Read More
"I have a small business with just a couple of... Read More
Many small companies choose not to invest in a professionally... Read More
What is CSS?CSS is a simple file which controls the... Read More
Internet has opened a whole new world for web developers... Read More
A common dilemma most small and medium businesses face when... Read More
RIVERSIDE, CA August 4, 2004 ?- "Historically, small business owners... Read More
While it may seem like a "quick and easy" task,... Read More
Designing and creating your own website does not have to... Read More
Internet Marketing is not a miracle marketing strategy ? competition... Read More
How do you decide on the content, products and or... Read More
You don't believe in astrology but you check your horoscope... Read More
Although there are significant differences among the various types of... Read More
If your company own one or more stores, you might... Read More
There are many elements that are key to successful web... Read More
Web accessibility has so many benefits that I really do... Read More
I had a client say something to me the other... Read More
What you should do and know if you are an... Read More
An Introduction to Server Side IncludesBeginner? That's OK!While much has... Read More
You have seen those web pages where they have the... Read More
When most people build a web site, they think one... Read More
Everyone wants one.Everyone wishes they knew how to make one.SOME... Read More
When web content gets discussed on webmaster bulletin boards, the... Read More
People like to get immediate responses to requests. Autoresponders are... Read More
One of the most useful features offered by some web... Read More
While creating a Web site may seem like... Read More
Web Development |