Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

SQL BASICS

Rating
-
Sold
-
Pages
3
Uploaded on
02-05-2023
Written in
2022/2023

In this notes, we cover the basics of using SQL to retrieve data stored in relational databases.

Institution
Course

Content preview

SQL BASICS

Basic SQL :
In this video, we cover the basics of using SQL to retrieve data
stored in relational databases. The first thing you need to know
is how to get all the data from one table. To do this in SQL, you
use the SELECT * statement. For example, SELECT * FROM
customers; will retrieve all the data from
the customers table.

Note that there are different data types in SQL, such as strings
and integers. You can also perform aggregation functions like
getting averages or maximum/minimum values.

Filtering Data with the WHERE Clause
If you want to filter the results by a specific condition, you can
use the WHERE clause. For example, SELECT * FROM
customers WHERE customer_name='Alfred\'s
Futterkist'; will retrieve all the columns for the customer
with the name 'Alfred's Futterkist'.

You can use the % sign as a wildcard to match patterns. For
example, SELECT * FROM customers WHERE customer_name
LIKE 'Alf%'; will match any customer whose name starts
with 'Alf'.

Pattern Matching and Aggregations in SQL
SQL offers a variety of operations, including pattern matching
and aggregations, to data scientists. Pattern matching is not
case sensitive and can be used with other types of data, but is
often used with dates. For example,
selecting start from orders where order date is between
"1996" and "1997" will return all of the data from 1997 but not
from 1996. Aggregations, such as avg , count , min ,
and max , are used to compute numerical values from data.

Written for

Institution
Course

Document information

Uploaded on
May 2, 2023
Number of pages
3
Written in
2022/2023
Type
Class notes
Professor(s)
Dr. j akilandeswari
Contains
All classes

Subjects

$8.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
akshayazone

Get to know the seller

Seller avatar
akshayazone Sona college of Technology
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 year
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions