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.
One of my most salient memories from when I sold... Read More
How do you decide on the content, products and or... Read More
Developing a website with content that entices visitors to return... Read More
Many executives and investors are skeptical that software products can... Read More
One of the biggest mistakes that most online retailers make... Read More
The process of Web application development is critical to the... Read More
One of the things that many people overlook when building... Read More
With the New Year upon us yet again, it's time... Read More
The Internet is a remarkable publishing medium. With just a... Read More
Everywhere you look these days, people are telling you that... Read More
Does My Web Site Require A Web Database?If your web... Read More
After having decided to start a business, the next thing... Read More
Many websites I come across don't have a single link... Read More
If you ever want to create a state directory, article... Read More
What is SQL? SQL stands for Structured Query Language and... Read More
"I have a small business with just a couple of... Read More
There are many elements that are key to successful web... Read More
You want to give your site's visitors a way to... Read More
"If you build it, they will come"; is an age... Read More
Before you start building your site, ask yourself "WHY?". Why... Read More
I still remember it very clear ... It was almost... Read More
You've put up a website to promote a product or... Read More
Everyday thousands of new businesses make the leap and take... Read More
2 Golden Rules for an Engaging Website35% of visitors fail... Read More
"'Page Not Found' on this Server. Check the URL and... Read More
I'm a freelance programmer and somehow I managed to get... Read More
"How do I improve web site sales figures?" The CEO... Read More
When you take a look at the most visited sites... Read More
We've all seen those messages on some websites warning not... Read More
People like to get immediate responses to requests. Autoresponders are... Read More
Below, I have listed 8 simple steps that you can... Read More
Project Safekids provides webmasters a valuable tool which could save... Read More
Getting a Targeted Visitor to a website is a waste... Read More
The popular search engine Google indexes over 8 billion websites.... Read More
Selecting the Perfect Domain NameThe first issue I have with... Read More
Research reveals three important facts:1) The Internet is one of... Read More
Recently I was reviewing the keyword specific conversion rate data... Read More
Everyone wants one.Everyone wishes they knew how to make one.SOME... Read More
"'Page Not Found' on this Server. Check the URL and... Read More
If you ever want to create a state directory, article... Read More
When you purchase a new item from a Yahoo! Store,... Read More
With search engines putting a damper on direct reciprocal links,... Read More
Affiliate programs are a great way to earn an income... Read More
Launching a new small business website is often a long... Read More
Now that you have got your domain name registered, your... Read More
There's been widespread speculation about the new legislation being introduced... Read More
Every small business owner knows that they need a website,... Read More
Creating and maintaining an effective presence on the Web has... Read More
"I am a writer, not a business-person. I don't want... Read More
It never ceases to amaze me how many people set-up... Read More
I've heard several prominent web marketers mention in their classes... Read More
Through the explosive growth of the Web, companies have realized... Read More
The Disability Discrimination Act says that websites must be made... Read More
When building a relationship, listening is more important than talking.A... Read More
Internet Marketing is not a miracle marketing strategy ? competition... Read More
2 Golden Rules for an Engaging Website35% of visitors fail... Read More
You've decided to create a website to market your products... Read More
Your content is what gets you in search engines, speaks... Read More
Setting up a website is the very first step of... Read More
Before you jump into spending coutnless hours on designing and... Read More
The first step in setting up an online business...Starting an... Read More
If you haven't made the sales and built your clients... Read More
Most web sites are more like stage sets than real... Read More
If you are looking for creating your online presence you... Read More
You hear a great deal about the Internet these days... Read More
Starting an internet business can be confusing to non-veterans. The... Read More
Web Development |