Sql - Structured Query Language
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
651
On Slideshare
651
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
17
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. DDL DMLOutline History What is SQL Statement
  • 2. SQL Structured Query LanguageSpecial-purpose programming language forworking with sets of facts and therelationships between them. DML SQL DDL
  • 3. History SQL Develop by IBM 1970s Donald D. Chamberlin and Raymond F. BoyceInitial version SEQUEL (Structured English Query Language)
  • 4. DDL Data Definition Language CREATE an object (a table) in the database TRUNCATE deletes all data from a tableALTER modifies the structure of an existing object DROP delete an object
  • 5. Data Manipulation Language DML INSERT Adds rows to an existing table UPDATE Modifies a set of existing table rows DELETE Removes existing rows from a table
  • 6. INSERT
  • 7. UPDATE
  • 8. DELETE
  • 9. Select Statement Tables Data What tables contain the data How data from different sources is related CriteriaWhich fields or calculations will produce the data Criteria that data must match to be included Whether and how to sort the results Data Retrieval
  • 10. SelectStatement BasicSELECT <field>FROM <table>WHERE <criterion>; Example SELECT name, address FROM student WHERE stuID=123;