Home > Ask the Data Management Experts > DBMS and data warehousing Questions & Answers > The difference between data definition language (DDL) and data manipulation language (DML)
Ask The Data Management Expert: Questions & Answers
EMAIL THIS

The difference between data definition language (DDL) and data manipulation language (DML)

Mark Whitehorn EXPERT RESPONSE FROM: Mark Whitehorn

Pose a Question
Other Data Management Categories
Meet all Data Management Experts
Become an Expert for this site


Tips, expert advice and sample chapters
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


>
QUESTION POSED ON: 28 April 2008
What's the difference between data definition language (DDL) and data manipulation language (DML)?

>
EXPERT RESPONSE
To answer our reader's question more thoroughly, Mark Whitehorn quotes a section of his book, Inside Relational Databases, in the following expert response.

"SQL stands for Structured Query Language, which is pronounced either as S Q L (as the three letters) or as Sequel. It appears that the former pronunciation is more common in the UK and the latter in the US -- but as the two are interchangeable, it shouldn't be a cause of anxiety.

SQL is a language that splits neatly into two parts. There is the data definition language (DDL) section and the data manipulation language (DML) section."

The DDL section is used for creating database objects, such as tables. In practice, people often use a GUI for creating tables and so on, so it is less common to hand-write DDL statements than it used to be. However an example looks like this:

CREATE TABLE Foo
(MajorPartNum LONG NOT NULL, MinorPartNum LONG NOT NULL,
Quantity LONG NOT NULL,
CONSTRAINT MajorMinor PRIMARY KEY
(MajorPartNum, MinorPartNum) );

The DML section is used to manipulate the data such as querying it. While is also common to use a query builder to create queries, people do still hand-craft DML statements, such as queries. An example might look like this:

SELECT Item, Amount, SaleNo
FROM SALES
WHERE Item = 'Sofa'
ORDER BY SaleNo;

  • Do you have questions about data definition language (DDL) and data manipulation language (DML)? Ask our expert!


  • Sound Off! -   Be the first to post a message to Sound Off!


    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


    RELATED CONTENT
    DBMS and data warehousing
    Data warehousing, data mining and data querying: Terms and definitions
    What is an operational data store vs. a data warehouse?
    Can a dimension table be a fact table for another data mart?
    Top three database management system (DBMS) trends
    Can I have two data warehouses?
    Database administrator job roles: Organizing the DBAs
    Data modeling for data warehouse projects
    Data warehouse testing
    Data warehouse development: Four strategic steps
    Logical database design

    Database management systems (DBMS)
    Can a dimension table be a fact table for another data mart?
    Top three database management system (DBMS) trends
    DB2 looks to enterprise information management to fend off Microsoft
    Database administrator job roles: Organizing the DBAs
    Data migration planning: Key things to remember
    Logical database design
    Data migration evolves from scripts to software
    The latest database management system (DBMS) trends
    Centralized database systems vs. data silos for master data storage
    Gartner data warehouse DBMS Magic Quadrant 2007: New tools, old mantras

    RELATED GLOSSARY TERMS
    Terms from Whatis.com − the technology online dictionary
    data classification  (SearchDataManagement.com)
    OLAP  (SearchDataManagement.com)

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary



    Search and Browse the Expert Answer Center
    Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
    Browse our Expert Advice

    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




    All Rights Reserved, Copyright 2005 - 2008, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts