1. Gyanastra
  2. Database Systems
  3. SQL Basics
  4. SQL as a Structured Query Language and RDBMS Portability
Free lesson, no account needed 4 min read 8 practice questions after it
Asked in past papers1 time
  • UGC NET2016

Database Systems · SQL Basics

SQL as a Structured Query Language and RDBMS Portability

Overview

SQL (Structured Query Language) is an English-like language for querying databases, and every Relational Database Management System (RDBMS) understands it.
This universal support makes SQL skills and applications portable across vendors, which is a major reason the relational model remains dominant.

Key concepts

  • SQL (Structured Query Language): a structured, English-like language used to query a database; also called a simple English query language ("QU" = query language).
  • RDBMS support: all Relational Database Management Systems are now able to understand SQL.
  • Portability of skills: because every RDBMS understands SQL, you do not need to worry about which type or brand of RDBMS you use; knowing SQL lets you move between vendors.
  • Vendor independence: a practical business advantage — if a vendor gives poor support or charges too much, the platform can be moved to another RDBMS without retraining employees.
  • Lock-in (network effect): increasing usage leads to more facilities and more standardization, which benefits everyone on the platform and "locks" people onto the relational database.
  • Barrier to new models: if a new database model is invented and claimed to be better, people will not move to it because they would lose the many options they already have.
  • Android analogy: a new mobile phone (hardware + software) may be better than Android, but people may not adopt it because more app developers and more apps are available on Android.
    RDBMS compares to Android and the RDBMS ecosystem to the App Store.
  • Evolution of SQL: SQL was initially proposed just to query the database; it has developed so much that you can do everything you could possibly imagine with it.

How it works

  1. Train employees in SQL.
  2. Choose any RDBMS software from any vendor you are comfortable with.
  3. Later, if that vendor gives poor support or charges too much, easily move the platform to another RDBMS without retraining employees.

The popularity of the relational model comes from the model itself plus several factors: increasing usage (more facilities, more standardization, continuous benefit to everyone), the wide variety of RDBMS software available, and SQL becoming more and more powerful.
Every RDBMS supports SQL and running an RDBMS means using the relational database, forming a complete loop in which development keeps going on over and over.

Worked examples

Switching vendors without retraining:

  • Employees are trained in SQL.
  • The organization picks an RDBMS from a vendor it is comfortable with.
  • If that vendor's support becomes poor or its charges too high, the organization moves to another RDBMS.
  • No retraining is needed, because every RDBMS understands SQL.

Android analogy:

  • A new phone (hardware + software) may be better than Android.
  • People may still not adopt it, because Android has more app developers and more apps.
  • Likewise, people stay with the relational model because of the many RDBMS products and facilities already available.

Revision summary

  • SQL = Structured Query Language; it is English-like (a simple English query language).
  • All RDBMSs understand SQL, so skills and applications are portable across vendors.
  • Vendor independence avoids lock-in on support cost and quality — no employee retraining is needed to switch.
  • Relational popularity = the model + wide variety of RDBMS software + increasingly powerful SQL + standardization + network effect ("lock-in").
  • Lock-in means a better new model may still fail, because users would lose the options they already have.
  • SQL began as a pure query language and has evolved to do virtually everything.
  • Every RDBMS supports SQL and running an RDBMS means using the relational database — a self-reinforcing loop.

Previous-year exam insights

  • SQL is a non-procedural (declarative) language: the user specifies what result is wanted, not how to compute it; the DBMS query optimizer chooses the execution plan.
  • SQL has standardized sub-languages: DDL (CREATE, ALTER, DROP, TRUNCATE), DML (SELECT, INSERT, UPDATE, DELETE), DCL (GRANT, REVOKE) and TCL (COMMIT, ROLLBACK, SAVEPOINT).
  • SQL is standardized by ANSI/ISO, but each vendor adds proprietary extensions (dialects), so real portability is only partial: core SQL is portable, vendor-specific syntax and data types are not.
  • SQL is case-insensitive for keywords and unquoted identifiers, but string literals are case-sensitive; SQL statements are terminated with a semicolon in most interfaces.
  • SQL operates on sets (relations) and returns relations, so it can be nested and composed; it is not a Turing-complete general-purpose language, though vendors add procedural extensions (PL/SQL, T-SQL).
  • SQL was originally developed at IBM (SEQUEL, for System R) and standardized in 1986/1987 (SQL-86/SQL-87), later SQL-92, SQL:1999, SQL:2003, etc.; it is based on the relational model of Codd.
Pages 1–2 of 2