SQL (Cont.)


SQL Naming Conventions
A naming convention is a set of unwritten rules that you should use if you want to increase the readability of the whole data model: Keep in Mind That...
SQL is not case sensitive.

Semicolon after SQL Statements?
Some database systems require a semicolon at the end of each SQL statement. Semicolon is the standard way to separate each SQL statement in database systems that allow more than one SQL statement to be executed in the same call to the server. The following demonstration may use MySQL database, which does not require to put a semicolon after each SQL statement, but some databases force you to use it.



Demonstration
Below is an SQL test area from W3Schools, which uses the well-known Northwind sample database. The tables here are for read only because of the problem of embedding the scripts. For a fully working example, check this by using Chrome.

SQL Statement:

Edit the SQL statement and click     to see the result, or  

Result:
The Database includes:
The Database includes:

TablenameRecord
Customers91
Categories8
Employees10
OrderDetails518
Orders196
Products77
Shippers3
Suppliers29





      According to unofficial sources,    
      a new simplified income-tax form contains only four lines:    
      1. What was your income for the year?    
      2. What were your expenses?    
      3. How much have you left?    
      4. Send it in.