
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Learn database concepts and structured query language with a code-first approach using PostgreSQL, covering database types, creating databases and tables, and performing create, read, update, delete, joins, and privilege management.
Explore the fundamentals of databases with PostgreSQL, from file-based systems to modern database management, including data redundancy, isolation, and the client–server workflow across front end and back end.
Compare relational and non-relational databases, focusing on tabular data, tables, and relationships, and show how SQL manages entities, attributes, and 1 to 1, 1 to many, and many to many.
Explore relational database management systems, comparing open-source options like SQLite and MySQL with closed-source IBM DB2 and Oracle, and learn features such as data storage, backups, retrieval, redundancy, and SQL.
Explore sql command types: ddl, dcl, and dml, with definitions of create, drop, alter, truncate, grant, revoke, and their use in managing tables and data.
Embark on PostgreSQL from beginner to intermediate, guided by an important note that highlights key considerations for learning and practicing database skills.
Download and install PostgreSQL from postgresql.org, select your operating system, run the installer, uncheck pkg admin folder, set a password, and keep port 5432 as configured.
Learn to start PostgreSQL from the command prompt by locating cmd, updating the PostgreSQL install path in PATH, then running psql -U POSTGRES and entering your password to access SQL.
Download Ubuntu from the Microsoft Store and install it, then create a username and password and complete the setup. Run updates with sudo apt update to finish installation.
Install the postgresql package on Linux via the terminal for Mac and Windows users. Run sudo apt-get install postgresql postgresql-contrib and approve the disk space prompt.
Create a database from scratch using the create command in PostgreSQL, part of data definition language. List databases with backslash l, and end SQL with a semicolon to confirm creation.
Connect to database, then create an employee table with id as serial primary key and first_name and last_name as varchar(50), and verify with backslash c and backslash d t commands.
Learn to create PostgreSQL users using the super user, with optional passwords, valid until dates, and the option to create a database.
Explore sql constraints, including primary key, foreign key, not null, unique, and check; learn how keys ensure unique, non-null identifiers and link tables through references.
Explore why data types matter in PostgreSQL for accuracy, storage, and speed, and review core types such as integers, floats, serial, text, date/time, and boolean.
practice test demonstrates creating a test database and two tables, employee and project, with serial primary keys, a not null name, a unique email, and a foreign key referencing employee.
Learn how to use the drop command in SQL to remove a table or a database, including removing the project table and the test database.
Connect to PostgreSQL using the super user Posterous and learn how to remove a user. Execute drop user with the target name and verify by listing users again.
Truncate a table to remove all its values while preserving the table structure, and contrast this with drop, which removes both data and the table.
Learn to use the alter command in PostgreSQL to modify a table's structure by adding, renaming, or dropping columns and constraints, including setting a primary key.
Learn how to grant and revoke privileges in PostgreSQL, assigning database and table rights to users. Apply both all privileges and specific permissions, including grant option.
Learn how to revoke privileges in PostgreSQL, both specific and all, on databases and tables, from a user like David, with practical command examples.
Create a user named John with password one, two, three and grant all privileges on database company. Grant John the truncate privilege on table office, then revoke it from John.
Learn how to insert data into a PostgreSQL table using the insert command, create an employee table with id, name, and salary, and use both column-listed and unnamed insert forms.
Use the delete command to remove a specific row or all rows from a table, using a where clause with a primary key such as employee ID.
Learn the differences between drop, truncate, and delete: remove a table or database, clear table data while preserving structure, or delete specific records, with rollback considerations.
Explore updating an existing table value with the update command, using set and where clauses to modify a specific employee's salary by id from 2000 to 1000.
Learn to use the select command to retrieve all data or specific columns from a table, and filter by a where clause to view employee names and salaries.
Practice test three demonstrates using data manipulation language commands—insert, update, select, and delete—on an employee table, including inserting id five, updating salary from 5000 to 6000, and deleting the record.
Learn to assign a temporary alias to a column using as, renaming salary to new salary in a select from the employee table.
Learn to perform arithmetic operations in PostgreSQL using addition, subtraction, multiplication, and division; compute new salaries by multiplying by two and alias the result as new_salary.
Master using comparison operators in PostgreSQL to filter data. Retrieve all columns from a table where salary is greater than 2000, illustrated with employees 2 and 3.
Learn how to use the order by clause in PostgreSQL to sort query results by a chosen attribute using select statement, ascending or descending, demonstrated with an employee ID example.
Learn to use aggregate functions in PostgreSQL on a salary attribute, including avg, sum, max, min, and count, with example results and a note on more functions.
Discover how to use the distinct clause with a select statement to suppress duplicate values when retrieving one or more attributes in PostgreSQL, illustrated with department names.
Learn how the PostgreSQL limit clause retrieves a specific number of rows from a table, exemplified by getting the first two rows from a department table.
Group rows by department names, apply aggregate functions to compute maximum salaries, and filter results with the having clause.
Explore how to combine data across multiple tables using joins, including inner, left outer, and right outer joins, to build intuition before coding.
Master inner join to link country and state tables by country_id and retrieve matching records, including country id, country name, and state name, as shown with Egypt and USA.
Learn how left outer join, right outer join, and full outer join work with country and state data linked by the country_id key.
Create a view as a virtual table to copy selected data from department, enabling safe computations and privilege management by granting access to specific columns like department name and salary.
Why should you enroll in this course?
This course is made to be concise and to the point, To up your skills and waste no time (No fillers, etc)
Perfectly covers the fundamentals of Databases and the basic topics of SQL up to the intermediate topics in SQL and PostgreSQL.
It's beginner user-friendly, Starting with those who have no clue about SQL to up their skill level from Beginner to Intermediate.
Comprehensive and easy-to-understand tech content.
It covers all business categories therefore, No matter what industry you're working in/want to work in, This course is for you.
On-Video and Off-Video practice tests, Coding Exercises, and Downloadable Resources to help you learn and practice simultaneously.
This course is all about coding, We will not use any software where you click on buttons to create a database, We will code only step-by-step
All your queries and questions will be answered by the instructor directly.
Finally, This course is updated regularly to match the latest PostgreSQL updates, Hence, You won't have to take another path.
What will you learn in this course?
Learn what's a database and what are database management systems available.
What are a Relational Database and A Non-Relational database?
What's SQL?
What are constraints and data types in SQL?
How to code SQL to create a database, Tables, and Users?
How to insert data into a database/table through coding SQL?
How to code SQL to update the structure of a database and tables?
How to remove a database, tables, and Users?
How to grant and revoke privileges from a User?
How to manipulate data in a database using SQL?
How to sort and group data in a database using SQL?
How to join more than one table together?
Practice SQL along the way through Quizzes, Practice Tests, and Coding Exercises.
What makes this course different from the other courses?
This course targets beginners and ups their skills to intermediate.
It validates your progress through on-video practice tests, Off-video practice tests, and Coding Exercises.
It offers auto-generated subtitles in more than 3 languages including (Arabic, Hindi, and Spanish)
Less than 8 hours avg response time (By the instructor)
Regularly updated downloadable resources.
What our students say about this course:
I started from nothing in SQL to a great level now because of this course, What truly made the difference was the easy to digest content, practice tests and coding exercises, totally recommended.
Exceptional, The coding exercises made the material easy to memorize and the overall experience is exceptional.
This course was short but very informative and rich with content and practices.
Why PostgreSQL and not MySQL?
PostgreSQL and MySQL are the two top open-source relational database management systems, Despite them being similar yet there are a number of differences, Some of them are:
PostgreSQL has more data types than MySQL, which is great for database optimization.
PostgreSQL performs better than MySQL in terms of the high volume of reads and writes applications.
PostgreSQL has multiple encrypted security-related connection options in comparison with a lower number to MySQL.
In conclusion, The ultimate decision relies on a personal choice despite the fact that PostgreSQL has more benefits.
Finally, By the end of this course, You will confidently be able to execute SQL codes to create and control a database, Insert, Delete, Update and Manipulate data in a database, Create, remove and control privileges of users in a database, and finally grouping, joining data from multiple tables and apply statistical operations on data.
Take the leap and enroll with us today. We can't wait to play a vital role in your journey to success.