Structured Query Language – SQL – Basics

SQL, a Structured Query Language is now available with most RDBMS (Relational Database Management System) products as the database language. Which can be used both by end-users and system programmers.

Originally, SQL was called SEQUEL( for Structured English QUEry Language).

SQL is now standard language for commercial relational DBMS.

First reason, a query in relational algebra is written as a sequence of operations that, after execution, produce the required result. Hence, the user must specify how –that is, in what order – to execute the query operations.

On the other hand, the SQL provides a high-level declarative language interface, so the user only specifies what the result is to be, leaving the actual optimization and decision on how to execute the query to the DBMS.

Loader Loading...
EAD Logo Taking too long?

Reload Reload document
| Open Open in new tab

 

Characteristics of SQL

User Friendly. The SQL syntax is more user-friendly than other formal languages.

Comprehensive database language. SQL is a comprehensive database language (DDL, DML & DCL); it has statements for data definition, query, and update. Also have a facility for defining views on the database, for specifying security and authorization, for defining integrity constraints, and for specifying transaction controls.

Easy to learn. The language while being simple and easy to learn can cope with complex situations.

SQL Applications can be easily ported across other systems. Such porting could be required when the underlying DBMS (Data Base Management System) needs to be upgraded because of change in transaction volumes or when a system developed in one environment is to be used on another DBMS.

The results to be expected are well defined.

Allow end-users and systems personnel to deal with a number of database management systems where it is available.

Independent Implementation : As a language its implementation is independent. A query return the same result regardless of whether optimizing has been done with indexes or not.

Embedded DML. It also has a rules for embedding SQL statements into a general-purpose programming language such as Fortran, Cobol, C and Pascal.

Software Engineering

Programming with C

Computer Organisation

Published by

Gagan Deep

FOUNDER & DIRECTOR, ROZY COMPUTECH SERVICES, KUK, KURUKSHETRA (HARYANA), INDIA I am in the profession of teaching in Computer Science since 1996.  In 1996, established a professional setup “Rozy Computech Services” for providing Computer Education, computer hardware and software services. In this span of 21 years , in conjunction with Rozy’s, I also associated in Teaching with different Institutions like Assistant Professor in University College, Kurukshetra University, Kurukshetra, Guest Faculty in Directorate of Distance Education, Kurukshetra University, Visiting Faculty in University Institute of Engineering & Technology, Kurukshetra University and a Resource person in EDUSAT, Haryana. Besides, I am also serving as Guide and Mentor in various private educational institutions. Also written 7 books on computer science.

One thought on “Structured Query Language – SQL – Basics

  1. Hello there, just became aware of your blog through Google, and found that it’s truly informative.

    I am going to watch out for brussels. I will be grateful if
    you continue this in future. Lots of people will be benefited
    from your writing. Cheers!

Leave a Reply

Your email address will not be published. Required fields are marked *