SQL Tutorial 2: Overview of SQL
HTML-код
- Опубликовано: 5 авг 2016
- www.gcreddy.com/2021/08/sql-o...
Overview of SQL, Structured Query Language Syntax, SQL Data Types, SQL Operators, SQL Built in Functions, SQL Queries and Sub Queries. Data Definition Language, Data Manipulation Language and Data Control Language Commands.
Overview of Structured Query Language
• SQL (Structured Query Language) is a standard language for accessing databases.
• All Relational Database Management Systems like MS Access, MS SQL Server, Oracle, Sybase, MySQL, DB2
use SQL as standard database language.
i. Environment Setup
We can practice SQL Commands in any Database Management System, Install any Database Engine and
practice.
ii. SQL Syntax
• A database contains one or more tables. Each table is identified by a name, Tables contain records (rows.
with data.
• Most of the actions we need to perform on a database are done with SQL statements.
• SQL keywords are Not case sensitive: select is the same as SELECT
• All the SQL statements start with any of the keywords like SELECT, INSERT, UPDATE, DELETE etc...
and all the statements end with a semicolon (;., it is the standard way to separate SQL Statements.
iii. SQL Data Types
• A data type defines what kind of value a column can contain, we have to use data types while creating
database tables, choose a particular data type for a table column based on our requirement.
Example:
Character Data Types
Numeric Data Types
Date and Time Data Types Etc...
• Data Types vary from One Database Management System to another
iv. Operators
Operators are used to perform Arithmetic, Comparison and Logical Operations.
Categories of Operators in SQL
1. Arithmetic Operators
2. Comparison Operators
3. Logical Operators
v SQL Functions
SQL has many built-in functions for performing processing on data.
Categories of Built-in Functions in SQL
1. Aggregate Functions
2. String Functions
3. Date Functions Etc...
vi. Data Definition Language
The Data Definition Language (DDL) is used to create and destroy databases and database objects.
Important Operations
• Create Database
• Use Database (Specify the Database you wish to work with within your DBMS)
• Alter Database
• Drop Table, Drop Database
vii. Data Manipulation Language
The Data Manipulation Language (DML. is used to insert, retrieve and modify database information)
Important Operations
• Insert Records to an existing Table
• Retrieve the specific information from an operational database.
• Modify information contained within a Table.
• Delete information contained within a Table.
viii. Data Control Language
The Data Control Language (DCL) allows database administrators to configure security access to
relational databases.
Important Operations
• Provide access on the Database objects to the Users
• Remove User access rights to the Database Objects
• Deny Permissions to Users.
ix. SQL SELECT Statement
The SELECT statement is used to select data from a database.
• General Selection
• Conditional Selection Etc...
(We use clauses, Operators and keywords...)
x. SQL Joins
The SQL Joins clause is used to combine records from two or more tables in a database.
Different SQL Joins:
1. Inner Join
2. Left Join
3. Right Join
4. Full Join
----------------------------------------------------
This is so helpful for beginners. Thank you so much GC REDDY. Love from USA
Welcome
Sir you are full of knowledge. I am learning Selenium and SQL from your videos. Well explained. Excellent work and Keep it up Sir . Best wishes and prayers from Pakistan
Welcome and I Wish You A Bright Future...
G C Reddy Garu , Your way of presention is so Good and we can easily understand by your teaching.
Thank you,
Thank you sir.that is very helpfull and Very good work done by you :)
Well done Sir, your lectures is doing a great job for me .
Thank you !
Welcome
Well done Sir, your lectures is doing a great job for me x
Welcome
so nice
very nice sir
Thank you Reddy Sir, thank you for teaching the basics, your lessons are really simple and easy to understand. Keep up the good work. God bless.
Welcome...
Thank you Sir!
Welcome
Sir if you have pdf file of tutorial then pls give me..
I don't have the pdf file for this tutorial, you can get the notes from this Video Page (I posted the tutorial notes as comment)
are these complete classes for SQL ?
No, Some more videos are there, I will add them in future.
what is phone number to reach you sir?
or email
Class Notes:
SQL Tutorial 2: Overview of SQL
-----------------------------------
> SQL (Structured Query Language) is a standard language for accessing databases.
> All Relational Database Management Systems (RDBMS) like MS SQL Server, Oracle, MySQL, Sybase, DB2, MS Access use SQL as standard database language.
-----------------------------------------------------
i) Environment Setup:
We can practice SQL Commands in any Database Management System (Oracle/MySQL/MS SQL Server etc...), install Database Engine and practice.
-----------------------------------------------------
ii) SQL Syntax
> A Database contains one or more tables, each table is identified by a name, Tables contain
Records (Rows) with data.
> Most of the actions we need to perform on a Database are done with SQL Statements.
> SQL Keywords are not case sensitive.
Ex: select is the same as SELECT
> All SQL Statements start with any of the keywords like SELECT, UPDATE, DELETE, INSERT etc...
All Statements end with a semicolon (;), it is the standard way to separate SQL Statements
---------------------------------------------------------------
iii) SQL Data Types
> A Data type defines what kind value a column can contain, we have to use data types while creating database tables, choose a particular data type for a table column based on your requirement.
Example:
Character Data Types
Numeric Data Types
Date and Time Data Types Etc...
Note: Data Types vary from One Database Management system to another.
-----------------------------------------------------------------------------
iv) SQL Operators
Operators are used to perform Arithmetic, Comparison and Logical Operations
Categories of Operators in SQL:
1) Arithmetic Operators
2) Comparison Operators
3) Logical Operators
-----------------------------------------------
v) SQL Functions
SQL has many built in functions for performing processing on data.
Categories of Built-in Functions
1) Aggregate Functions
2) String Functions
3) Date Functions Etc...
-----------------------------------------------------
Subsets of SQL
Data Definition Language
Data Manipulation Language
Data Control Language
----------------------------------------
vi) Data Definition Language
The Database Definition Language (DDL) is used to create and destroy databases and database objects.
Important Operations
> Create Database
> Use Database (Specify the Database you wish to work with within your Database management System)
> Alter Database
> Drop Table, drop Database
--------------------------------------
vii) Data Manipulation Language
The Data Manipulation Language (DML) is used to insert, retrieve and modify database information.
Important Operations:
> Insert Records to an existing Table
> Retrieve the specific information from an operational database
> Modify information contained within a Table
> Delete Information contained within a Table
----------------------------------------------------------
viii) Data Control Language
The Data Control Language (DCL) allows database administrators to configure security access to relational databases.
Important Operations
> Provide access on the Database objects to the Users
> Remove User access rights to the Database objects
> Deny permissions to Users
--------------------------------------
ix) SQL SELECT Statement
The Select statement is used to select data from a database
> General Selection
> Conditional Selection etc...
(We use clauses, Operators and keywords etc...)
x) SQL Joins
The SQL Joins clause is used to combine records from two or more tables in a database,
Types of Joins
1) Inner Join
2) Left Join
3) Right Join
4) Full Join
----------------------------------------------
Sir, please upload tutorial 3 for SQL & oblige. Thanks
We are waiting for more of yours SQL tutorial. Please upload it ASAP. :)
G C Redd
is this sql is used for tableau?
very very nice