Skip to main content

What is SQL?

Structured Query Language

SQL stands for Structured Query Language. SQL language is used to create, transform and retrieve information from RDBMS (Relational Database Management Systems). SQL is pronounced SEQUEL. SQL was developed during the early 70’s at IBM.

Most Relational Database Management Systems like MS SQL Server, Microsoft Access, Oracle, MySQL, DB2, Sybase, PostgreSQL and Informix use SQL as a database querying language.

Even though SQL is defined by both ISO and ANSI there are many SQL implementation, which do not fully comply with those definitions. Some of these SQL implementations are proprietary. Examples of these SQL dialects are MS SQL Server specific version of the SQL called T-SQL and Oracle version of SQL called PL/SQL.

SQL is a declarative programming language designed for creating and querying relational database management systems. SQL is relatively simple language, but it’s also very powerful.

SQL can insert data into database tables. SQL can modify data in existing database tables. SQL can delete data from SQL database tables. Finally SQL can modify the database structure itself – create/modify/delete tables and other database objects.

SQL uses set of commands to manipulate the data in relational databases. For example SQL INSERT is used to insert data in database tables. SQL SELECT command is used to retrieve data from one or more database tables. SQL UPDATE is used to modify existing database records.

DDL

Data Definition Language which deals with database schema's and descriptions, of how the data should reside in the database.
  • CREATE - To create a database and its objects like (table, index, views, store procedure, function, and triggers)
  • ALTER - Alters the structure of the existing database.
  • DROP - Delete objects from the database.
  • TRUNCATE - Remove all records from a table, including all spaces allocated for the records are removed.
  • COMMENT - Add comments to the data dictionary.
  • RENAME - Rename an object.


DML

Data Manipulation Language which deals with data manipulation and includes most common SQL statements such SELECT, INSERT, UPDATE, DELETE, etc., and it is used to store, modify, retrieve, delete and update data in a database.
  • SELECT - Retrieve data from a database.
  • INSERT - Insert data into a table.
  • UPDATE - Updates existing data within a table.
  • DELETE - Delete all records from a database table.
  • MERGE - UPSERT operation (insert or update).
  • CALL - call a PL/SQL or Java subprogram.
  • EXPLAIN PLAN - Interpretation of the data access path.
  • LOCK TABLE - Concurrency Control.

DCL

Data Control Language which includes commands such as GRANT and mostly concerned with rights, permissions and other controls of the database system.

  • GRANT - Allow users access privileges to the database.
  • REVOKE - Withdraw users access privileges given by using the GRANT command.

TCL

Transaction Control Language which deals with a transaction within a database.
  • COMMIT - Commits a Transaction.
  • ROLLBACK - Rollback a transaction in case of any error occurs.
  • SAVEPOINT - To rollback the transaction making points within groups.
  • SET TRANSACTION - Specify characteristics of the transaction.

Popular posts from this blog

Download SQL Server Management Studio (SSMS)

Summary:  In this post, you will learn &  able to download  SSMS. About  SQL Server Management Studio ( SSMS ):  SSMS is Free!! SQL Server Management Studio (SSMS) is an integrated environment for managing any SQL infrastructure, from SQL Server to Azure SQL Database. SSMS provides tools to configure, monitor, and administer instances of SQL Server and databases. Use SSMS to deploy, monitor, and upgrade the data-tier components used by your applications, and build queries and scripts. Use SSMS to query, design and manage your databases and data warehouses, wherever they are - on your local computer, or in the cloud.   SSMS -  Prerequisites for Installation: SSMS supports the following 64-bit platforms when used with the latest available service pack: Supported Operating Systems: Windows 10 (64-bit) version 1607 (10.0.14393) or later Windows 8.1 (64-bit) Windows Server 2019 (64-bit) Windows Server 2016 (64-bit) Windows Server 2012 R2 (64-bit) Window...

What is SQL Server?

SQL Server SQL Server is a relational database management system (RDBMS) developed by Microsoft. SQL Server supports a wide variety of transaction processing, business intelligence and analytics applications in corporate IT environments. SQL Server supports ANSI SQL, which is the standard SQL (Structured Query Language) language. However, SQL Server comes with its own implementation of the SQL language, T-SQL. Why SQL Server? Microsoft SQL Server is a comprehensive database server and information platform offering a complete set of enterprise-ready technologies and tools that help people derive the most value from information at the lowest total-cost-of-ownership. Enjoy high levels of performance, availability, and security; employ more productive management and development tools; and deliver pervasive insight with self-service business intelligence (BI). A complete and integrated platform, Microsoft SQL Server brings it all together to get more value out of existing IT skills and asse...

SQL Server Tools - Microsoft Recommended Tools

Graphic User Interface (GUI-based Tools) SQL Server Management Studio (SSMS) SSMS SSMS is Free!!  SQL Server Management Studio (SSMS) is an integrated environment for managing any SQL infrastructure, from SQL Server to Azure SQL Database. SSMS provides tools to configure, monitor, and administer instances of SQL Server and databases. Use SSMS to deploy, monitor, and upgrade the data-tier components used by your applications, and build queries and scripts. Use SSMS to query, design and manage your databases and data warehouses, wherever they are - on your local computer, or in the cloud. SSMS -  Prerequisites for Installation: SSMS supports the following 64-bit platforms when used with the latest available service pack: Supported Operating Systems: Windows 10 (64-bit) version 1607 (10.0.14393) or later Windows 8.1 (64-bit) Windows Server 2019 (64-bit) Windows Server 2016 (64-bit) Windows Server 2012 R2 (64-bit) Windows Server 2012 (64-bit) Windows Server 2008 R2 (64-bit) Suppor...