Database Concepts (8th Edition)
Database Concepts (8th Edition)
8th Edition
ISBN: 9780134601533
Author: David M. Kroenke, David J. Auer, Scott L. Vandenberg, Robert C. Yoder
Publisher: PEARSON
bartleby

Concept explainers

Question
Book Icon
Chapter 3, Problem 3.31RQ
Program Plan Intro

SQL:

  • SQL stands for “Structured Query Language”.
  • The current version of SQL is “ANSI SQL – 92”.
  • It contains constructs which are used to define and process database. They are executed using DBMS-supplied command prompt.
  • 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.

Display values from table:

The contents from the table can be viewed by using “SELECT” statement which comes under Data Manipulation Language (DML). Syntax to view the contents using asterisk (*) is as follows:

SELECT * FROM table_Name;

Aggregate Functions:

SQL has some built-in functions and they are called as aggregate functions. SQL contains five built-in functions. They are:

  • SUM – This function is used to add values from the particular column.
    • Syntax: SELECT SUM(column_Name) FROM table_Name;
  • COUNT – This is used to count the number of rows for the particular column.
    • Syntax: SELECT COUNT(column_Name) FROM table_Name;
  • MAX – This function is used to get the maximum value from the column.
    • Syntax: SELECT MAX(column_Name) FROM table_Name;
  • MIN – This function is used to get the minimum value from the column.
    • Syntax: SELECT MIN(column_Name) FROM table_Name;
  • AVG – This function is used to get the average of all the values from the column.
    • Syntax: SELECT AVG(column_Name) FROM table_Name;

Blurred answer

Chapter 3 Solutions

Database Concepts (8th Edition)

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 Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781285196145
Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:Cengage Learning
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr