r/learnSQL • • Aug 27 '26

Beginner learning PostgreSQL with a goal of becoming a backend engineer — looking for advice

Hi everyone,

I’m currently learning SQL and PostgreSQL with the long-term goal of becoming a backend engineer.

I’ve been practicing locally with PostgreSQL and pgAdmin, so I’m especially interested in hearing from developers who use PostgreSQL in production.

I’m still a beginner. So far I’ve been practicing things like creating tables, INSERT, SELECT, WHERE, DISTINCT, ORDER BY, and LIMIT. I’m also starting to learn Python and eventually want to connect Python/FastAPI with PostgreSQL.

One thing I’m trying to understand is how SQL and PostgreSQL are actually used by backend engineers in real jobs, compared with the way SQL is taught in books and courses.

For backend engineers who use PostgreSQL regularly:

  • What SQL/PostgreSQL skills do you use the most?
  • At what point should a beginner start combining Python with PostgreSQL?
  • What database concepts should I make sure I understand before getting deeper into backend development?
  • Are there any beginner projects you would recommend that resemble real backend work?

I’m not looking for shortcuts. I’m trying to build a solid foundation and understand what skills actually matter on the job.

Any advice from backend engineers, especially those working with PostgreSQL, would be greatly appreciated. Thanks!

7 Upvotes

7 comments sorted by

3

u/Creative_Sugar-33 Aug 28 '26

PostgreSQL + FastAPI is a very practical and in-demand stack.

In production backend work, you might actually end up using an ORM (like SQLAlchemy or SQLModel) rather than writing raw SQL all day. But a strong SQL foundation is still critical for designing schemas, writing complex joins/aggregations, understanding migrations, and debugging slow queries with indexing and EXPLAIN ANALYZE.

Consider checking out Dataslope's SQL courses and interview prep materials. They're free, interactive, and don't require you to sign in.

SQL Courses:

Interview Prep:

Disclaimer: I created Dataslope.

1

u/NoctrailBio_ Aug 28 '26

Thanks, I really appreciate this. Database design with PostgreSQL especially caught my attention because I want to learn how databases are actually built and used for backend applications, not just how to analyze data with SQL. I’m going to check out the courses you mentioned.

would you recommend getting comfortable with database design and SQL first before getting deeper into Python/FastAPI, or learning them alongside each other?

5

u/datadriven_io Aug 27 '26

Yes. It is totally the case when most of the knowledge is transferrable. Practice sql interview questions on datadriven. You can even start with SQLite if your main goal is to learn PostgreSQL.

1

u/CleanStory6565 Aug 29 '26

Can u share platform where we can practice this

1

u/datadriven_io Aug 30 '26

Datadriven.io/learn for sql learning, or datadriven.io/problems for sql practice

1

u/navicat-gu Oct 22 '26

Backend engineers rarely write textbook-style SELECT … WHERE all day. The SQL that shows up at work is closer to:

  • Joins, aggregates, window functions (ROW_NUMBER, LAG, running totals)
  • Indexes and reading EXPLAIN (ANALYZE, BUFFERS)
  • Transactions, isolation, and "why is this locked?"
  • Migrations (Alembic, Flyway, Sqitch) as the source of truth for schema
  • Constraints (PK/FK/UNIQUE/CHECK) and why they belong in the database, not only in Python

When to add Python/FastAPI: as soon as SELECT/INSERT feel comfortable — don't wait until you "finish SQL". A tiny FastAPI app that creates a user, stores it with asyncpg or SQLAlchemy, and reads it back teaches you connection pooling, parameterised queries and migrations faster than more isolated drills.

Concepts worth locking in before job apps: normalisation vs deliberate denormalisation, transactions, indexes (B-tree at minimum), NULL behaviour, and the difference between the database and the client (pgAdmin is only a client).

Project ideas that look like real backend work: a URL shortener; a small inventory API with stock movements; a blog with users/posts/comments and pagination; anything where you write migrations and seed data, not just one big schema.sql.

Disclosure: I'm RC, Director of Digital Strategy @ Navicat. For local practice alongside pgAdmin, Navicat Premium Lite is free to try (Navicat 18) and gives you a straightforward query editor and object designer against PostgreSQL. Visual explain and modelling are in the paid Premium editions if you want them later — they are not required while you are learning.