Presentation is loading. Please wait.

Presentation is loading. Please wait.

SQL Introduction SQL stands for “Structured Query Language” and can be pronounced as “SQL” or “sequel – (Structured English.

Similar presentations


Presentation on theme: "SQL Introduction SQL stands for “Structured Query Language” and can be pronounced as “SQL” or “sequel – (Structured English."— Presentation transcript:

1 www.myassignmenthelp.net

2 SQL Introduction SQL stands for “Structured Query Language” and can be pronounced as “SQL” or “sequel – (Structured English Query Language)”. Defined, SQL is a query language used for accessing and modifying information in one or more data tables and rows of a database.

3 SQL Database Design IBM first developed SQL in 1970s. Also it is an ANSI/ISO standard. It has become a Standard Universal Language used by most of the relational database management systems (RDBMS). Some of the RDBMS systems are: Oracle, Microsoft SQL server, Sybase etc. Most of these have provided their own implementation extensions, thus enhancing their RDBMS system features and making it a powerful tool. These RDBMS systems, all use the popular SQL commands SELECT, UPDATE, DELETE, INSERT, WHERE in similar format.

4 SQL Database Table SQL database is constructed of a number of tables. In a business, SQL tables would be used to divide and simplify the different areas of the operation: Table for Customers, one for Vendors, Employees and so on.SQL database

5 SQL Database Table Columns Each SQL table is made up of a number of columns, referred to as fields and run along the top of the table. SQL columns or fields have their content (object/data/info) defined into character types; such as text, date, numeric, integer, length to name a few.

6 SQL Database Table Rows Each SQL table row, referred to a record, is located in the left column of the table. Sql record row will contain a string of data containing data matching up to each column field across the top. So, in a "Customer table" each "customer record" would consist of one row with data for the customer ID number, customer name, address, phone...email and so on.

7 SQL Commands: Few SQL Coding Statements? Few of the SQL commands used in SQL code programming are: SELECT StatementSELECT Statement, UPDATE Statement, INSERT INTO Statement,DELETE Statement, WHERE Clause, ORDER BY Clause, SQL GROUP BY Clause, Subquery Clauses, Joins, Views, GROUP Functions, Indexes etc.UPDATE StatementINSERT INTO StatementDELETE StatementWHERE ClauseORDER BY ClauseSQL GROUP BY ClauseSubquery ClausesJoinsViewsGROUP FunctionsIndexes

8 My SQL Database In a simple manner, SQL is a non- procedural, English-like language that processes data in groups of records rather than one record at a time. Few SQL functions of are: store data modify data retrieve data modify data delete data create tables and other database objects delete data

9 SQL Views A VIEW is a virtual table, through which a selective portion of the data from one or more tables can be seen. Views do not contain data of their own. They are used to restrict access to the database or to hide data complexity. A view is stored as a SELECT statement in the database. DML operations on a view like INSERT, UPDATE, DELETE affects the CREATE VIEW view_name AS SELECT column_list FROM table_name [WHERE condition]; data in the original table upon which the view is based.

10 SQL INSERT Statement The INSERT Statement is used to add new rows of data to a table. Syntax for SQL INSERT is: INSERT INTO TABLE_NAME [ (col1, col2, col3,...colN)] VALUES (value1, value2, value3,...valueN); col1, col2,...colN -- the names of the columns in the table into which you want to insert data.

11 SQL UPDATE Statement The UPDATE Statement is used to modify the existing rows in a table. The Syntax for SQL UPDATE Command is: UPDATE table_name SET column_name1 = value1, column_name2 = value2,... [WHERE condition] table_name - the table name which has to be updated. column_name1, column_name2.. - the columns that gets changed. value1, value2... - are the new values.

12 SQL Delete Statement The DELETE Statement is used to delete rows from a table. Syntax of a SQL DELETE Statement DELETE FROM table_name [WHERE condition]; table_name -- the table name which has to be updated.

13 QUERY www.myassignmenthelp.net


Download ppt "SQL Introduction SQL stands for “Structured Query Language” and can be pronounced as “SQL” or “sequel – (Structured English."

Similar presentations


Ads by Google