diff --git a/assets/blog/2024/05/image1.jpg b/assets/blog/2024/05/image1.jpg new file mode 100644 index 000000000..1a4b71114 Binary files /dev/null and b/assets/blog/2024/05/image1.jpg differ diff --git a/assets/blog/2024/05/image2.jpg b/assets/blog/2024/05/image2.jpg new file mode 100644 index 000000000..ed97f1177 Binary files /dev/null and b/assets/blog/2024/05/image2.jpg differ diff --git a/assets/blog/2024/05/image3.jpg b/assets/blog/2024/05/image3.jpg new file mode 100644 index 000000000..97f39c086 Binary files /dev/null and b/assets/blog/2024/05/image3.jpg differ diff --git a/assets/blog/2024/05/image4.jpg b/assets/blog/2024/05/image4.jpg new file mode 100644 index 000000000..e22ce693e Binary files /dev/null and b/assets/blog/2024/05/image4.jpg differ diff --git a/assets/blog/2024/05/image5.jpg b/assets/blog/2024/05/image5.jpg new file mode 100644 index 000000000..655052596 Binary files /dev/null and b/assets/blog/2024/05/image5.jpg differ diff --git a/content/blog/2024/2024-05-20-learn-postgresql-and-sql-quickly-and-free.md b/content/blog/2024/2024-05-20-learn-postgresql-and-sql-quickly-and-free.md new file mode 100644 index 000000000..8bd5b32af --- /dev/null +++ b/content/blog/2024/2024-05-20-learn-postgresql-and-sql-quickly-and-free.md @@ -0,0 +1,52 @@ +--- +title: "Learn PostgreSQL and SQL Quickly and Free" +date: "2024-05-20T00:00:00+00:00" +tags: ['Percona', 'opensource', 'PostgreSQL', 'Postgres',] +description: "Want to learn PostgreSQL? What if you could learn PostgreSQL without having to install the database, load data, find sample data, and it was free?" +authors: + - david_stokes +images: + - blog/2024/05/Roundup-May-15.jpg +--- + +Learn PostgreSQL and SQL Quickly and Free + +Want to learn PostgreSQL? What if you could learn PostgreSQL without having to install the database, load data, find sample data, and it was free? PGExamples.com is what you are looking for. + +First, let me state that I have no connection to the website or its author. I discovered PgExercises.com by accident and was impressed by its quality and completeness. I am so impressed that I am exploring a video series on it. + +## Learn SQL. Learn PostgreSQL. + +[PGexercises.com](PGexercises.com) is based on increasingly complex exercises based on a provided dataset. As you progress, the questions get trickier. You do not have to download and load the available data into a server to do the exercises. + +There are seven groups of exercises - Basic, Joins and Subqueries, Modifying Data, Aggregates, Date, String, and Recursive. The author recommends Learning SQL by Alan Beaulieu as a reference text. Any essential book, Structured Query Language, will serve you well. + +![Learn SQL. Learn PostgreSQL.](blog/2024/05/image2.jpg) + +## First Exercise + +The first exercise asks you to retrieve all the data from a specific table. + +![Learn SQL. First Exercise 1](blog/2024/05/image4.jpg) + +At the top of the screen is an entity relationship map of the tables in the database. The table requested in the exercise is named cd.facilities. + +If you use the hint button (next to the Your Answer line) you will see the following: + +![Learn SQL. First Exercise 2](blog/2024/05/image3.jpg) + +This should be enough of a clue to allow you, with the aid of your SQL reference, to find the answer. Enter your query and click on the Eun Query button. + +![Learn SQL. First Exercise 3](blog/2024/05/image1.jpg) + +The green check means that the answer is correct. But what if you did not get it correct. Scroll down and select the Answers and Discussion button. + +![Learn SQL. First Exercise 4](blog/2024/05/image5.jpg) + +Not only do you see the answer to the question, but there is a detailed analysis of the answer. + +## Video Series? + +I am so impressed wth these exercises that the Percona Community Team is in discussion of creating a series of videos on them. Not only that, on of my colleagues who is learning PostgreSQL is volunteering to work through the exercises so that the series will feel like a study group. And I will comment on the query, possible alternatives when they exist, and help you work through the 'rough spots'. + +If you want to work along, please do. Let us know where you struggle or the places we are redundant. Out goal is to provide a first class learning experience to help people learn SQL and PostgreSQL. \ No newline at end of file