SQL Tutorial: Functions for Manipulating Data in PostgreSQL
Key Takeaways
Teaches functions for manipulating data in PostgreSQL using SQL
Full Transcript
welcome to Postgres sequel functions for manipulating data my name is Brian piccolo and I am a senior director of digital strategy I will be your instructor for this course you've learned some sequel fundamentals in your previous coursework now we are going to continue to expand your sequel knowledge by teaching you how to use built-in functions and operators to extend the capabilities of your Postgres sequel database you'll be using the secure database which is a well-known example database that models a fictional DVD rental store the database is highly normalized which allows for great example queries and provides a great representation of Postgres sequel data types and custom functions before we get started let's review the topics that will be covered in this course first in this chapter you'll learn about some common data types and their properties and characteristics next you'll dive into some built-in functions and operators and learn how to use them to manipulate date and time data you'll then explore some frequently used functions for parsing and manipulating text data types and finally you'll get an introduction into full text search using Postgres sequel extensions let's get started Postgres sequel has a robust set of native datatypes some of the most common include text data types like char var char and txt numeric data types like int and decimal date and time data types such as date time stamp and interval and finally arrays important to have an understanding of the properties and characteristics of the various data types anytime you are working with a relational database like Postgres sequel text data types like char and varchar' allow for a fixed or varying number of characters and string data think about categorical data like the title column from the film table text data types typically represent character and string data but can be an unlimited length for example the text from the description column in the film table will explore how to extract create sub strings and manipulate text datatypes later on in this course numeric data types like int and decimal allow you to store integers like payment ID and floating-point numbers with varying Precision's like amount from the payment it will learn more about Postgres sequel date and time and array datatypes later in this chapter when you are working with existing databases there will be times when you will need to determine the data types of columns that you'll be working with for example if we look at the results from a simple select query on the film table you might hypothesize that all the columns in this query have a text data type but would you be right let's take a closer look Postgres sequel stores information about all database objects in a system database called information schema by querying certain tables in this database you can determine information about the database including data types of columns the following query will return the column name and the data type for the columns we looked at in the previous slide when you execute this query you will get a result that looks like the following if we look closely at these results we see that the title and description columns are indeed text data types specifically varchar' and text but we see that special features is actually an array you'll learn more about arrays later in this chapter now it's your turn let's take a closer look at the customer table of our DVD rental
Original Description
Want to learn more? Take the full course at https://learn.datacamp.com/courses/fu... at your own pace. More than a video, you'll learn hands-on coding & quickly apply skills to your daily work.
---
Welcome to PostgreSQL Functions for Manipulating Data! My name is Brian Piccolo and I am a Sr. Director of Digital Strategy. I will be your instructor for this course.
You've learned some SQL fundamentals in your previous coursework. Now we are going to continue to expand your SQL knowledge by teaching you how to use built-in functions and operators to extend the capabilities of your PostgreSQL database.
You'll be using the Sakila Database which is a well known example database that models a fictional DVD rental store. The database is highly normalized which allows for great sample queries and provides a great representation of PostgreSQL data types and custom functions.
Before we get started let's review the topics that will be covered in this course.
First in this chapter, you'll learn about some common data types and their properties and characteristics.
Next you'll dive into some built-in functions and operators and learn how to use them to manipulate date and time data.
You'll then explore some frequently used functions for parsing and manipulating text data types.
And finally you'll get an introduction into full-text search using PostgreSQL extensions.
Let's get started.
PostgreSQL has a robust set of native data types. Some of the most common include:
Text data types like CHAR, VARCHAR and TEXT
Numeric data types like INT and DECIMAL
Date and time types such as DATE, TIME, TIMESTAMP and INTERVAL.
And finally ARRAYs.
It's important to have an understanding of the properties and characteristics of the various data types anytime you are working with a relational database like PostgreSQL.
Text data types like CHAR and VARCHAR allow for a fixed or varying number of characters and string data. Think about categorical data like the title column from the fi
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from DataCamp · DataCamp · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
SQL Server Tutorial: Date manipulation
DataCamp
R Tutorial: Intermediate Interactive Data Visualization with plotly in R
DataCamp
R Tutorial: Adding aesthetics to represent a variable
DataCamp
R Tutorial: Moving Beyond Simple Interactivity
DataCamp
Python Tutorial: Why use ML for marketing? Strategies and use cases
DataCamp
Python Tutorial: Preparation for modeling
DataCamp
Python Tutorial: Machine Learning modeling steps
DataCamp
R Tutorial: The prior model
DataCamp
R Tutorial: Data & the likelihood
DataCamp
R Tutorial: The posterior model
DataCamp
R Tutorial: An Introduction to plotly
DataCamp
R Tutorial: Plotting a single variable
DataCamp
R Tutorial: Bivariate graphics
DataCamp
Python Tutorial: Customer Segmentation in Python
DataCamp
Python Tutorial: Time cohorts
DataCamp
Python Tutorial: Calculate cohort metrics
DataCamp
Python Tutorial: Cohort analysis visualization
DataCamp
R Tutorial: Building Dashboards with flexdashboard
DataCamp
R Tutorial: Anatomy of a flexdashboard
DataCamp
R Tutorial: Layout basics
DataCamp
R Tutorial: Advanced layouts
DataCamp
Python Tutorial: Time Series Analysis in Python
DataCamp
Python Tutorial: Correlation of Two Time Series
DataCamp
Python Tutorial: Simple Linear Regressions
DataCamp
Python Tutorial: Autocorrelation
DataCamp
R Tutorial: The gapminder dataset
DataCamp
R Tutorial: The filter verb
DataCamp
R Tutorial: The arrange verb
DataCamp
R Tutorial: The mutate verb
DataCamp
R Tutorial: What is cluster analysis?
DataCamp
R Tutorial: Distance between two observations
DataCamp
R Tutorial: The importance of scale
DataCamp
R Tutorial: Measuring distance for categorical data
DataCamp
Python Tutorial: Plotting multiple graphs
DataCamp
Python Tutorial: Customizing axes
DataCamp
Python Tutorial: Legends, annotations, & styles
DataCamp
Python Tutorial: Introduction to iterators
DataCamp
Python Tutorial: Playing with iterators
DataCamp
Python Tutorial: Using iterators to load large files into memory
DataCamp
SQL Tutorial: Introduction to Relational Databases in SQL
DataCamp
SQL Tutorial: Tables: At the core of every database
DataCamp
SQL Tutorial: Update your database as the structure changes
DataCamp
Python Tutorial: Classification-Tree Learning
DataCamp
Python Tutorial: Decision-Tree for Classification
DataCamp
Python Tutorial: Decision-Tree for Regression
DataCamp
Python Tutorial: Census Subject Tables
DataCamp
Python Tutorial: Census Geography
DataCamp
Python Tutorial: Using the Census API
DataCamp
R Tutorial: A/B Testing in R
DataCamp
R Tutorial: Baseline Conversion Rates
DataCamp
R Tutorial: Designing an Experiment - Power Analysis
DataCamp
R Tutorial: Introduction to qualitative data
DataCamp
R Tutorial: Understanding your qualitative variables
DataCamp
R Tutorial: Making Better Plots
DataCamp
SQL Tutorial: OLTP and OLAP
DataCamp
SQL Tutorial: Storing data
DataCamp
SQL Tutorial: Database design
DataCamp
Python Tutorial: Introduction to spaCy
DataCamp
Python Tutorial: Statistical Models
DataCamp
Python Tutorial: Rule-based Matching
DataCamp
Related AI Lessons
⚡
⚡
⚡
⚡
X now offers an MCP server to make its platform easier for AI tools to use
TechCrunch AI
n8n Automation Repurpose Video Content: The 2025 Production Guide
Dev.to AI
You’re Still Paying $200/Month for AI Tools You Could Replace With a Free Local Setup Tonight
Medium · Data Science
Top 10 AI Tools Every College Student Should Know in 2026
Medium · AI
🎓
Tutor Explanation
DeepCamp AI