Answer the question
In order to leave comments, you need to log in
How to add data from table A to table B postgreSQL?
I have 2 tables:
sensor_instances table
SELECT location FROM sensor_instances LEFT JOIN sensor_alerts ON sensor_instances.id = sensor_alerts.sensorid
Answer the question
In order to leave comments, you need to log in
SELECT sensor_alerts.*, sensor_instances.location
FROM sensor_instances
LEFT JOIN sensor_alerts ON sensor_instances.id = sensor_alerts.sensorid
first 20 linesLIMIT and OFFSET or FETCH .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question