How to Use SQL

'SQL' is usually pronounced 'S-Q-L' (Structured Query Language)., There are various dialects of SQL but most widely used database engines today adhere to the SQL99 standard from ANSI, and many vendors have implemented extra features to extend that...

11 Steps 1 min read Medium

Step-by-Step Guide

  1. Step 1: 'SQL' is usually pronounced 'S-Q-L' (Structured Query Language).

    SQL was initially developed at IBM by Donald D.

    Chamberlin and Raymond F.

    Boyce in the early 1970s.

    This version was called SEQUEL (Structured English Query Language).
  2. Step 2: There are various dialects of SQL but most widely used database engines today adhere to the SQL99 standard from ANSI

    , This is what it usually is all about.

    For this we use the SELECT statement; it will query or retrieve data from an SQL database. ,, The select can be used to tease out particular columns and rows out of a table and even link data from multiple tables or, for that matter, databases together. , 'select * from tblMyCDList where CDid = 27' will retrieve the rows where the field CDid is equal to
    27.

    Or 'select * from tblAttribute where strCDName like 'Dark Side%' ' uses a wild card representing zero or more instances of any character and will hopefully show that my collection does have my favorite Pink Floyd album. ,,
  3. Step 3: and many vendors have implemented extra features to extend that standard (the Microsoft 'flavor' of SQL is called T-SQL or Transact-SQL

  4. Step 4: the Oracle version is PL/SQL).

  5. Step 5: Getting the Data Out!

  6. Step 6: A simple example would be something like: 'select * from tblMyCDList' which would get all columns (that's where the * comes in) and rows in the table 'tblMyCDList'.

  7. Step 7: Queries are usually much more complicated than this.

  8. Step 8: If we want to filter the rows returned by the select statement

  9. Step 9: a where clause is needed to qualify the record sets returned.

  10. Step 10: INSERT and UPDATE statements are used to add and change data in an SQL database (check the links below for some excellent tutorials that can take you further).

  11. Step 11: The DELETE statement is used to remove data from an SQL database.

Detailed Guide

SQL was initially developed at IBM by Donald D.

Chamberlin and Raymond F.

Boyce in the early 1970s.

This version was called SEQUEL (Structured English Query Language).

, This is what it usually is all about.

For this we use the SELECT statement; it will query or retrieve data from an SQL database. ,, The select can be used to tease out particular columns and rows out of a table and even link data from multiple tables or, for that matter, databases together. , 'select * from tblMyCDList where CDid = 27' will retrieve the rows where the field CDid is equal to
27.

Or 'select * from tblAttribute where strCDName like 'Dark Side%' ' uses a wild card representing zero or more instances of any character and will hopefully show that my collection does have my favorite Pink Floyd album. ,,

About the Author

D

Diana Russell

A passionate writer with expertise in home improvement topics. Loves sharing practical knowledge.

101 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: