Skip to Content
SQL Primer: An Accelerated Introduction to SQL Basics
book

SQL Primer: An Accelerated Introduction to SQL Basics

by Rahul Batra
June 2018
Beginner
199 pages
3h 5m
English
Apress
Content preview from SQL Primer: An Accelerated Introduction to SQL Basics
©  Rahul Batra 2018
Rahul BatraSQL Primerhttps://doi.org/10.1007/978-1-4842-3576-8_5

5. Writing Basic Queries

Rahul Batra1 
(1)
Gurgaon, Haryana, India
 

A query is an SQL statement that is used to extract a subset of data from your database and presents it in a readable format. As we have seen previously, the SELECT command is used to run queries in SQL. You can further add clauses to your query to get a filtered, more meaningful result. The level of flexibility afforded by SQL is one of the reasons it has succeeded as a query language. While there is an entire gamut of add-ons to SELECT, in this chapter we will focus on only two – ORDER BY and WHERE.

Database administration tasks for a well thought-out schema are few and far between, but retrieving ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Getting Started with SQL

Getting Started with SQL

Thomas Nield
Effective SQL: 61 Specific Ways to Write Better SQL, First Edition

Effective SQL: 61 Specific Ways to Write Better SQL, First Edition

John L. Viescas, Douglas J. Steele, Ben G. Clothier

Publisher Resources

ISBN: 9781484235768Purchase LinkPublisher Website