Course
Functions for Manipulating Data in PostgreSQL
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.Loved by learners at thousands of companies
Training 2 or more people?
Try DataCamp for BusinessCourse Description
Feels like what you want to learn?
Start Course for FreeWhat you'll learn
- Assess when full-text search functions and extensions (to_tsvector, fuzzystrmatch, pg_trgm) provide advantages over pattern matching with LIKE
- Differentiate the results produced by arithmetic and interval operations on DATE versus TIMESTAMP columns
- Evaluate situations that warrant creating or enabling user-defined types, functions, and extensions to extend PostgreSQL capabilities.
- Identify the properties and suitable applications of PostgreSQL data types such as TEXT, NUMERIC, DATE/TIME, and ARRAY
- use built-in string functions—including CONCAT, UPPER/LOWER, SUBSTRING, POSITION, TRIM, LPAD, and RPAD—that reformat, parse, or pad text
Prerequisites
Data Manipulation in SQLOverview of Common Data Types
Working with DATE/TIME Functions and Operators
Parsing and Manipulating Text
Full-text Search and PostgresSQL Extensions
Complete
Earn Statement of Accomplishment
Add this credential to your LinkedIn profile, resume, or CVShare it on social media and in your performance reviewEnroll Now
FAQs
What types of data manipulation does this course cover?
You will learn to manipulate string, numeric, and date/time data using PostgreSQL built-in functions, and work with array data types and full text search capabilities.
Which PostgreSQL functions will I use most in this course?
The course covers date/time functions like EXTRACT and DATE_TRUNC, string functions like SUBSTRING, TRIM, and REVERSE, and full text search functions to_tsvector and to_tsquery, among others.
What dataset is used for the exercises?
All exercises use the Sakila DVD rental database, a normalized schema with films, actors, rentals, and payment records that provides realistic string, numeric, and date/time data to practice on.
What is full text search and why does this course teach it?
Full text search lets you find keywords throughout a document more flexibly than a simple LIKE query. Chapter 4 introduces to_tsvector and to_tsquery, then extends that with the fuzzystrmatch and pg_trgm extensions for similarity matching.
What can I do with PostgreSQL extensions after completing this course?
You will be able to create user-defined data types and functions, and use pg_trgm trigram indexes and fuzzystrmatch to build more powerful and forgiving search queries in your databases.
Join over 19 million learners and start Functions for Manipulating Data in PostgreSQL today!
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.Grow your data skills with DataCamp for Mobile
Make progress on the go with our mobile courses and daily 5-minute coding challenges.