Is SQL a standard anymore?

Daily Newsletters

Sign up to ZDNet UK's daily newsletter.

ANALYSIS
With the advance of proprietary features comes a decline in quality and loss of data portability -- two things that benefit only one half of the vendor-client relationship. This article looks at why ANSI SQL standard support has declined and discusses the validity of the standard itself. Why have a standard?
Technology standards are important for several reasons -- number one being that consumers are assured that a product does what it is supposed to do before they buy it. Wouldn't it be great if you could partner with a company and be assured that your data management systems would play nicely? Or how about having the luxury of choosing an RDMS because it is stable, fast, and uses system resources efficiently, rather than because it supports views and transactions and the competition's doesn't? There are also several benefits to having a standard -- for one, third-party vendors are able to create tools and utilities that apply to an entire market rather than to a specific platform. Similarly, individuals can become certified in a standard, increasing the size of your available resource pool. Product certification can help ensure quality functionality, as opposed to the pseudo-implementation of standards requirements by compliant, but not certified, solutions. A certified compliancy program would offer these benefits. Unfortunately there is no governing body for SQL. Take me to your leader
For over 10 years, the National Institute of Standards and Technology (NIST), managed by the Department of Commerce, offered RDMS conformance testing. Six years ago, NIST stopped enforcing the ANSI/SQL standard, rendering it ineffective and largely ignored due to a lack of accountability for compliance. To this day, most manufacturers claim compliance with the SQL-92 standard, named for its release in 1992. However, the current standard is actually SQL-99. Abandonment by NIST was followed by the release of a standards specification that was: (1) too broad in its scope and (2) only achievable by the top vendors in the RDMS industry due to the scope's financial implications. These two factors strongly contributed to deviation from the standard, leading customers further and further down the proprietary road, into a data management silo -- the very thing the ANSI standard was designed to prevent. This begs the question, what is left to call a standard? Conformity breeds mediocrity
Various database manufacturers have taken allowances with the ANSI/SQL standard to different degrees in order to give their product a competitive advantage and meet customer demand. However, these products are still able to claim ANSI/SQL compliance. Essentially, to maintain compliance, a product must meet three conditions:
  1. The manufacturer must create a flag that can be set, which issues a warning when a noncompliant query statement or functionality is used.
  2. The manufacturer must refer to functions that violate the ANSI/SQL standard as "extensions" and register these features with the aforementioned flag.
  3. The database must support what is referred to as "Entry Level SQL92," which consists of the following features: Tables, Columns, Data types, key indexing, schema manipulation, row and table constraints, views, basic relational operations, and programming language bindings.
As an example, I've outlined some supposedly acceptable deviations below, from Oracle's variation on SQL: PL/SQL. PL/SQL flagged extensions:
  • Array interface including the FOR clause
  • SQLCA, ORACA, and SQLDA data structures
  • Dynamic SQL including the DESCRIBE statement
  • Embedded PL/SQL blocks
  • Automatic datatype conversion
  • DATE, COMP-3, NUMBER, RAW, LONG RAW, VARRAW, ROWID, and VARCHAR datatypes
  • ORACLE OPTION statement for specifying runtime options
  • EXEC IAF and EXEC TOOLS statements in user exits
  • CONNECT statement
  • TYPE and VAR datatype equivalencing statements
  • AT db_name clause
  • DECLARE...DATABASE, ...STATEMENT, and ...TABLE statements
  • SQLWARNING condition in WHENEVER statement
  • DO and STOP actions in WHENEVER statement
  • COMMENT and FORCE TRANSACTION clauses in COMMIT statement
  • FORCE TRANSACTION and TO SAVEPOINT clauses in ROLLBACK statement
  • RELEASE parameter in COMMIT and ROLLBACK statements
  • Optional colon-prefixing of WHENEVER...DO labels and of host variables in the INTO clause
I'd hoped to include a similar list for MS SQL Server's query language, Transact-SQL. Not surprisingly, however, I was unable to find any documentation regarding specific compliance with ANSI/SQL. If you would like to know whether the function you are using in this database is consistent with the standard, you can use the 'set fipsflagger' option to display warning messages. The point of this example is to show that, while database manufacturers claim to be within the parameters of the ANSI standard for RDMSs, there is no way to swap out one database for another without integration considerations, even on an application programming level. The standard is meaningless. There's no enforcement agency, and therefore no true compliancy. "ANSI/SQL compliant" has become a buzzword that is only useful in a sales pitch. It has no real bearing on database usage or application development. The ANSI SQL recommendation
Since the dissolution of NIST's data management standards program in 1996, no certification or other mechanism exists to verify whether database manufacturers are in compliance with the ANSI SQL standard. Public demand and the honor system are all that remain to protect the best interests of paying clients, and manufacturers have opted to supply better features rather than consistency, as if there were no standard at all. Either some sort of standard enforcement system needs to be put in place, or the myth of the SQL standard should be demoted to the level of recommendation before sloppy compliance becomes the de facto standard.
Have your say instantly in the Tech Update forum. Find out what's where in the new Tech Update with our Guided Tour. Let the editors know what you think in the Mailroom.

Talkback

Good article, still relevant 2 years after it was written.

via Facebook 8 December, 2004 09:42
Reply

Post your comment

In order to post a comment you need to be registered and logged in.

You can also log in with Facebook. Log in or create your ZDNet UK account below

  • Login

Will not be displayed with your comment

By signing up for this service, you indicate that you agree to our Terms and Conditions and have read and understood our Privacy Policy. Questions about membership? Find the answers in the Community FAQ

Get ZDNet UK's daily newsletter

Enter your email address to sign up

ZDNet UK Live

UnderINK

I agree with the previous commenter wholeheartedly. I couldn't say it better myself. This is very 'Big Brother'. And while I agree with protecting...

28 minutes ago by UnderINK on European e-identity plan to be unveiled this month
Simon Bisson and Mary Branscombe

Nice to see that Turing's idea of a general purpose computer doing once-hardware-powered tasks in software is now universal ;-) Mary

6 hours ago by Simon Bisson and Mary Branscombe on Software with everything
Jason Burchell

seriously now. I've only bothered to read a small bit of the comments. do me and the rest of the world a favour. stop saying it does not work or...

10 hours ago by Jason Burchell via Facebook on Music industry negotiating over 24-bit downloads
Philip Charles Cohen

Read about it and weep, John Donahoe ... In addition to Visa’s V.me, there is now MasterCard’s PayPass digital wallet soon to arrive; another...

14 hours ago by Philip Charles Cohen via Facebook on PayPal takes phone-based payments to the high street
apexwm

Leslie Satenstein : Where have you ever seen Mozilla even mention this? Firefox is the most popular browser in the GNU/Linux OS, so I don't see...

15 hours ago by apexwm on Firefox rapid release improves Fedora Linux
songmaster

SHleG: Do you remember building a clockwork scorpion kit (I'm pretty sure I have a photo of it somewhere) — I think it was called something like...

16 hours ago by songmaster on Software with everything
Chris Wortman

Good I love Yahoo! Their search engine is getting better than Google as of late. I find more of what I want on the first page, and usually within...

17 hours ago by Chris Wortman via Facebook on Linux Mint 13 ramps up for KDE release
PatrickG

openhgs has made the point for Windows 8 multiple monitors without realising it! With Windows 7 you have to switch the mouse and so your focus...

19 hours ago by PatrickG on Windows 8 could speed multi-monitor uptake
Leslie Satenstein

Mozilla has threatened to stop supporting Linux. I guess that UBUNTU is going with another browser. I indicated that if Mozilla stops supporting...

20 hours ago by Leslie Satenstein via Facebook on Firefox rapid release improves Fedora Linux
Andy Bolstridge

Much as I abhor Microsoft's licensing practices, this is almost certainly down to purchasing IT equipment via 3rd party consultants - you get the...

20 hours ago by Andy Bolstridge via Facebook on 6 million wasted licences and £1,200 PCs: welcome to government IT
Jack Schofield

@openhgs Windows users have had multiple desktops since Linus started writing Linux. They just haven't shipped as standard because not enough...

2 days ago by Jack Schofield on Windows 8 could speed multi-monitor uptake
Jack Schofield

@Phil at Cloud4 What, Microsoft gets £1,200 per PC and £1,622 per server? Gosh, I'm amazed....

2 days ago by Jack Schofield on 6 million wasted licences and £1,200 PCs: welcome to government IT
craigsc

You guys have no idea what is going on at Autonomy. Autonomy could have been a much more profitable organization. The sales operations at Autonomy...

2 days ago by craigsc on HP cuts 27,000 staff as Autonomy chief Lynch leaves
Moley

How does this impact on dual or multi booting? Seems to me to more or less prohibit this, from Windows 8 anyway. Will Grub 2 recognise Windows 8,...

2 days ago by Moley on Windows 8 start-up speed forces USB boot workaround
apexwm

I don't understand why there cannot be a slight pause during the boot process so the user can press a key. Many operating systems do this, even if...

2 days ago by apexwm on Windows 8 start-up speed forces USB boot workaround
Gavin Goodman

You can now buy the Xi3 modular computer in the UK at http://www.ocdistribution.com . This can be bought with the Tand3m software, pricing and...

2 days ago by Gavin Goodman on CES 2012: Xi3 microSERV3R
Phil at Cloud4

I agree: Mike Lynch can clearly build a business and manage strategy. I suspect the exit of Mike is more likely the end of a planned handover...

2 days ago by Phil at Cloud4 on HP cuts 27,000 staff as Autonomy chief Lynch leaves
Phil at Cloud4

This is unbeleivable government wastage with only one winner... Microsoft 1 - Tax payer Nil!

2 days ago by Phil at Cloud4 on 6 million wasted licences and £1,200 PCs: welcome to government IT
Mispam

So what do you do when you can't boot into windows? Why can't I just hold Shift while I power up instead of having to boot into windows and click a...

2 days ago by Mispam on Windows 8 start-up speed forces USB boot workaround
apexwm

I've also seen that Mac OS X for Intel machines is supposed to run in VirtualBox, which would also be a nice solution. I've never tried it though.

2 days ago by apexwm on xTreme Triple Booting: Linux, Mac & Windows