Table:
CREATE TABLE venue (id INTEGER DEFAULT NEXTVAL('venue_id_seq'), building_code building_code, floorNo int, roomNo int, width int, length int);
The function:
CREATE or REPLACE FUNCTION roomCode(_id int ) RETURNS text AS
$$
SELECT building_code + floorNo + roomNo FROM venue as v WHERE _id = v.id;
$$ LANGUAGE SQL;
How can I Concatenate certain attributes together?