skip to Main Content

Postgresql – postgres table functions

Hi I have some questions regarding table functions in PostgreSQL From https://www.postgresql.org/docs/16/queries-table-expressions.html#QUERIES-TABLEFUNCTIONS CREATE TABLE foo (fooid int, foosubid int, fooname text); CREATE FUNCTION getfoo(int) RETURNS SETOF foo AS $$ SELECT * FROM foo WHERE fooid = $1; $$ LANGUAGE SQL;…

VIEW QUESTION

Mysql – Merge two sql roes into one

ID StartTime StartLocation EndTime EndLocation 1 2023-10-15 10:00:00 A 2023-10-15 12:10:00 B 1 2023-10-15 13:00:00 B 2023-10-15 18:00:00 A I want to merge these two rows into one so I get the first StartLocation and the last EndLocation. It should…

VIEW QUESTION
Back To Top
Search