The document discusses the need for SQL, which arose from the complexity of earlier data management models, leading to the development of relational database management systems. SQL, created in the 1970s, has become the standard language for managing and querying relational databases, with capabilities including data retrieval, insertion, updating, and deletion. It also compares SQL with MySQL, highlighting their differences and uses in database management.
Download as PPT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
5 views
SQL
The document discusses the need for SQL, which arose from the complexity of earlier data management models, leading to the development of relational database management systems. SQL, created in the 1970s, has become the standard language for managing and querying relational databases, with capabilities including data retrieval, insertion, updating, and deletion. It also compares SQL with MySQL, highlighting their differences and uses in database management.
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 27
Need Of SQL
• Prior to the development of SQL,
data was managed using hierarchical and network models. These models were complex and difficult to use, particularly for non-technical users. The need for a simpler and more efficient way to manage data led to the creation of relational database management systems (RDBMS) and SQL. • The basic concept behind SQL is to provide a simple, standard way to interact with relational databases. It allows users to create, modify, and query data in a way that is intuitive and easy to understand. SQL is based on relational algebra, a mathematical theory that defines a set of operations for manipulating relations, or tables. Designing of SQL • SQL (Structured Query Language), also pronounced as ‘sequel’, is a programming language designed for managing and querying relational databases. It was first developed in the early 1970s by Donald D. Chamberlin and Raymond F. Boyce at IBM as part of the System R project. • In 1974, IBM released the first version of System R, which included support for SQL. However, SQL did not become widely adopted until the 1980s, when it was adopted as the standard query language for RDBMS. • Over the years, SQL has continued to evolve and improve. New features have been added to support more complex queries, and new versions of the language have been released to address security concerns and improve performance. • Today, SQL is used by millions of developers and businesses around the world. It is the standard language for managing and querying data in relational databases, and it is supported by virtually all major database systems. sql and its capabilities • SQL stands for Structured Query Language • SQL lets you access and manipulate databases • SQL became a standard of the American National Standards Institute (ANSI) in 1986, and of the International Organization for Standardization (ISO) in 1987 • SQL can execute queries against a database • SQL can retrieve data from a database • SQL can insert records in a database • SQL can update records in a database • SQL can delete records from a database • SQL can create new databases • SQL can create new tables in a database • SQL can create stored procedures in a database • SQL can create views in a database • SQL can set permissions on tables, procedures, and views SQL V/S MYSQL SQL MYSQL • SQL is developed by Microsoft • MySQL was developed by MySQL Corporation. AB but is currently acquired and • SQL is a structured query owned by Oracle Corporation. language used for managing and • MySQL is a Relational database retrieving data from the database system that uses SQL to query data system. from the databases. • The syntax and format are fixed, • MySQL is software and not a declarative, and easy to programming language, hence it use. Start with the clause and does not have any commands or end with a semicolon. particular format. • SQL is in itself a programming There are, however, the latest language used for database updates and versions of MySQL for systems. enhanced performance. • MySQL supports all the basic programming languages like C, C+ +, Perl, PHP, Python, Ruby, and many others. Working on mysql workbench MYSQL QUERIES CREATING THE DATABASE Creating a table inside the database Inserting data in the table Viewing table Using count() in three different ways FILTERING DATA USING WHERE CLAUSE LIKE OPERATOR IN SQL Order by statement UPDATE STATEMENT IN SQL DELETE STATEMENT IN SQL Alter table statement in sql Drop statement in sql