SQL Tutorial: Creating PostgreSQL Databases
Key Takeaways
Creates a PostgreSQL database using SQL commands and explores database administration fundamentals
Full Transcript
welcome to creating postgres sql databases this is a fundamental topic for anyone who is an administrator or user of postgres sql during this course we'll explore the required commands for creating databases and their underlying components fundamental data types in postgres sql database normalization and the management of database access this course will jump start your journey to becoming an expert postgres sql administrator postgresql is an object relational database system this focus on objects is fundamental to the organization of this software the components of the software some of which we will be discussing in this course are considered objects the highest level object is a database postgresql provides a simple command for creating a new empty database to be populated with data the command is quite straightforward the words create and database are followed by the name of a database and a semicolon to end the command it is worth noting that the words create database do not need to be capitalized as sql is not a case sensitive language uppercasing all letters improves readability db underscore name represents the name of the database that we are creating by default database names cannot be longer than 31 characters and must start with a letter or underscore like these examples show however database names cannot start with numbers like this when might you be interested in creating a new database you can think of a database as a collection of data that is connected by relationships which exist between the entities represented by the data for example if you're a sports fanatic and are interested in doing some analysis on college basketball stats you might create a database to store the data to be analyzed in a database named ncaa underscore bb this database might contain data for players games and colleges or maybe as an owner of a car dealership you want to keep track of the inventory on your lot former prospective customers and salespeople on your team in a database named auto underscore depot perhaps you were starting a company to produce podcasts you might want to organize your podcast by characteristics such as host topic delivery platform and subscribers this database can be called pod as you can see there are many possible reasons for wanting to create and maintain a database before moving on to discussion of setting up other objects in postgres sql databases let's practice using the create database command
Original Description
Want to learn more? Take the full course at https://learn.datacamp.com/courses/creating-postgresql-databases at your own pace. More than a video, you'll learn hands-on coding & quickly apply skills to your daily work.
---
Welcome to Creating PostgreSQL Databases. This is a fundamental topic for anyone who is an administrator or user of PostgreSQL.
During this course, we will explore the required commands for creating databases and their underlying components, fundamental data types in PostgreSQL, database normalization, and the management of database access. This course will jump start your journey to becoming an expert PostgreSQL administrator.
PostgreSQL is a an object-relational database system. This focus on objects is fundamental to the organization of this software.
The components of the software, some of which we will be discussing in this course, are considered objects.
The highest level object is the database. PostgreSQL provides a simple command for creating a new, empty database to be populated with data.
The command is quite straightforward. The words CREATE and DATABASE are followed by the name of a database and a semicolon to end the command. It is worth noting that the words "CREATE DATABASE" do not need to be capitalized as SQL is not a case-sensitive language. Uppercasing all letters improves readability. "d-b underscore name" represents the name of the database that we are creating.
By default database names cannot be longer than 31 characters and must start with a letter or underscore like these examples show.
However, database names cannot start with numbers, like this. When might you be interested in creating a new database?
You can think of a database as a collection of data that is connected by relationships which exist between the entities represented by the data. For example, if you are a sports fanatic and are interested in doing some analysis on college basketball stats, you might create a database to store data to be analyzed in
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
More on: SQL Analytics
View skill →Related Reads
📰
📰
📰
📰
Nigeria Machinery: A Low-Resource Industrial Dataset with a Domain-Grounded Reasoning Layer
ArXiv cs.AI
The Block Universe #3: Why Spacetime Must Be Static
Medium · Data Science
Python 3D Cone Chart and Line Chart Combination Plot
Medium · Data Science
Automating Your First Trading Signal in a Few Lines of Python [Code Included]
Medium · Data Science
🎓
Tutor Explanation
DeepCamp AI