B
B
Black back2020-08-27 16:34:44
PostgreSQL
Black back, 2020-08-27 16:34:44

What is the correct way to do a subquery?

ERROR: ERROR: subquery in expression returned more than one row
Limit 1 not needed

select (select name from citi where zip_code = t.ship ) from town t

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EchoStan, 2020-09-13
@EchoStan

(LEFT) JOIN
If you want to return more than one row, return them as an array of JSONs, for example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question