MyLab IT with Pearson eText -- Access Card -- for GO! 2016 with Technology in Action
MyLab IT with Pearson eText -- Access Card -- for GO! 2016 with Technology in Action
15th Edition
ISBN: 9780134827018
Author: Alan Evans, Kendall Martin, Mary Anne Poatsy
Publisher: PEARSON
bartleby

Videos

Question
Book Icon
Chapter 11, Problem 1CTQ
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 Manipulation Language (DML):

  • This is used for manipulation like, querying, inserting, updating, and deleting data.

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,

  …

);

Insert values:

Inserting values comes under Data Manipulation Language (DML).

  • The INSERT command in SQL is employed to add records to an existing table.

Syntax for inserting values into the table is as follows:

INSERT INTO TABLE_NAME VALUES('DATA 1', 'DATA 2');

Example:

Inserting values into the table “EMP_1”:

INSERT INTO EMP_1 VALUES ('101', 'News', 'John', 'G', ' 2000-11-08', '502');

Explanation:

  • The values are inserted in the table using insert command. The values are inserted as per the order given in the table creation. The values of “EMP_NUM”, “EMP_LNAME”, “EMP_FNAME”, “EMP_INITIAL”, “EMP_HIREDATE”, and “JOB_CODE” are inserted into the table.

“SELECT” statement:

It is used to retrieve information from the table or database. The syntax for the “SELECT” statement is given below:

Syntax:

SELECT * FROM table_Name;

Blurred answer
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.
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
How to Design DB Tables for any Application? (The Basics); Author: Studytonight;https://www.youtube.com/watch?v=XUdNVaSikqY;License: Standard YouTube License, CC-BY
Create a Table (Introduction to Oracle SQL); Author: Database Star;https://www.youtube.com/watch?v=BiV1IrzB1sY;License: Standard Youtube License