Skip to main content
The 2024 Developer Survey results are live! See the results
Erwin Brandstetter's user avatar
Erwin Brandstetter's user avatar
Erwin Brandstetter's user avatar
Erwin Brandstetter
  • Member for 12 years, 10 months
  • Last seen this week
  • Vienna, Austria
1800 votes

Select first row in each GROUP BY group?

1304 votes
Accepted

Insert text with single quotes in PostgreSQL

1078 votes
Accepted

PostgreSQL error: Fatal: role "username" does not exist

667 votes
Accepted

Create unique constraint with null columns

602 votes
Accepted

Select rows which are not present in other table

567 votes
Accepted

Fast way to discover the row count of a table in PostgreSQL

517 votes
Accepted

Best way to check for "empty or null value"

495 votes
Accepted

Are PostgreSQL column names case-sensitive?

480 votes

PostgreSQL create table if not exists

475 votes
Accepted

PostgreSQL: Give all permissions to a user on a PostgreSQL database

474 votes
Accepted

Check if value exists in Postgres array

459 votes
Accepted

PostgreSQL Crosstab Query

453 votes
Accepted

How to implement a many-to-many relationship in PostgreSQL?

441 votes

IN vs ANY operator in PostgreSQL

432 votes

How to use RETURNING with ON CONFLICT in PostgreSQL?

429 votes

How do I (or can I) SELECT DISTINCT on multiple columns?

421 votes
Accepted

How to check if a table exists in a given schema

414 votes
Accepted

Concatenate multiple result rows of one column into one, group by another column

400 votes
Accepted

Ignoring time zones for Postgres timestamps

395 votes
Accepted

PostgreSQL LIKE query performance variations

375 votes
Accepted

What is the difference between a LATERAL JOIN and a subquery in PostgreSQL?

368 votes
Accepted

Query a parameter (postgresql.conf setting) like "max_connections"

360 votes
Accepted

Query for array elements inside JSON type

358 votes
Accepted

Run a query with a LIMIT/OFFSET and also get the total number of rows

358 votes

How to concatenate columns in a Postgres SELECT?

352 votes
Accepted

Best way to select random rows PostgreSQL

317 votes
Accepted

Does PostgreSQL support "accent insensitive" collations?

301 votes

Postgres manually alter sequence

291 votes

Select first row in each GROUP BY group?

281 votes
Accepted

Sort NULL values to the end of a table

1
2 3 4 5
229