A Guide to SQL
A Guide to SQL
9th Edition
ISBN: 9781111527273
Author: Philip J. Pratt
Publisher: Course Technology Ptr
bartleby

Concept explainers

Question
Book Icon
Chapter 6, Problem 1RQ
Program Plan Intro

SQL:

  • SQL stands for “Structured Query Language”.
  • The current version of SQL is “ANSI SQL – 92”.
  • SQL is not a programming language. It is text-based and it is also called as data sublanguage.
    • In order to get SQL as a complete programming language, it should be included in scripting languages like Java, C#, and so on.
  • It contains constructs which are used to define and process database. They are executed using DBMS-supplied command prompt.
  • Some of the DBMS products provide GUI tools in order to perform tasks are as follows:
    • SQL Server
    • Oracle Database
    • MySQL

Data Definition Language (DDL):

  • It is used for creating tables and other structures. They perform operations like, creating tables, modifying database, and removing database.

Expert Solution & Answer
Check Mark

Explanation of Solution

Table Creation:

Creating table comes under Data Definition Language (DDL).

  • The “CREATE” command is employed for establishing databases on our platform by constructing tables in an already existing database.

The Syntax for creating table is as follows:

CREATE TABLE TABLE_NAME (

  Column1 datatype,

  Column2 datatype,

  …

);

Example:

Creating table “EMP_1”:

 CREATE TABLE EMP_1 ( EMP_NUM CHAR(3) , EMP_LNAME VARCHAR(15) , EMP_FNAME VARCHAR(15) , EMP_INITIAL CHAR(1), EMP_HIREDATE DATE, JOB_CODE CHAR(3));

Explanation:

 The above query is used to create a table structure named “EMP_1” . The attribute “EMP_NUM”, “JOB_CODE”, “EMP_LNAME” and “EMP_FNAME” are declared.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
Which clause is used to change a column in a table?   a. SET     b. MODIFY     c. ALTER     d. UPDATE
Which command is used to modify the record of the table?
Which statement about subqueries is true? a. A subquery filters the same way an inner join does. b. More than one column can be listed in the select statement in the subquery c. Columns from a table in a subquery can be referenced in the main select statement d. A subquery filters the same way an outer join does
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
  • Text book image
    Oracle 12c: SQL
    Computer Science
    ISBN:9781305251038
    Author:Joan Casteel
    Publisher:Cengage Learning
    Text book image
    A Guide to SQL
    Computer Science
    ISBN:9781111527273
    Author:Philip J. Pratt
    Publisher:Course Technology Ptr
Text book image
Oracle 12c: SQL
Computer Science
ISBN:9781305251038
Author:Joan Casteel
Publisher:Cengage Learning
Text book image
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr