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
    ----------------------------------------------------

Комментарии • 31

  • @urvesh0607
    @urvesh0607 5 лет назад +1

    This is so helpful for beginners. Thank you so much GC REDDY. Love from USA

  • @coolvideos9773
    @coolvideos9773 6 лет назад +2

    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

    • @gcreddy
      @gcreddy  6 лет назад +1

      Welcome and I Wish You A Bright Future...

  • @sudeepkumar1525
    @sudeepkumar1525 4 года назад

    G C Reddy Garu , Your way of presention is so Good and we can easily understand by your teaching.

  • @chandus7307
    @chandus7307 6 лет назад

    Thank you sir.that is very helpfull and Very good work done by you :)

  • @davidprasad65
    @davidprasad65 6 лет назад +1

    Well done Sir, your lectures is doing a great job for me .
    Thank you !

  • @absbristol
    @absbristol 7 лет назад

    Well done Sir, your lectures is doing a great job for me x

  • @damayantimohanty9590
    @damayantimohanty9590 7 лет назад

    so nice

  • @konduruvijaya4963
    @konduruvijaya4963 6 лет назад

    very nice sir

  • @mrleonardgonzalez
    @mrleonardgonzalez 6 лет назад

    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.

  • @aditharun7354
    @aditharun7354 5 лет назад

    Thank you Sir!

  • @kirangiri8394
    @kirangiri8394 6 лет назад

    Sir if you have pdf file of tutorial then pls give me..

    • @gcreddy
      @gcreddy  6 лет назад +1

      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)

  • @vanshikagupta1758
    @vanshikagupta1758 7 лет назад

    are these complete classes for SQL ?

    • @gcreddy
      @gcreddy  7 лет назад +2

      No, Some more videos are there, I will add them in future.

    • @MrRcherukuri09
      @MrRcherukuri09 7 лет назад

      what is phone number to reach you sir?
      or email

  • @gcreddy
    @gcreddy  8 лет назад +5

    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
    ----------------------------------------------

  • @damayantimohanty9590
    @damayantimohanty9590 7 лет назад

    very very nice