CREATE OR REPLACE FUNCTION customerGetByLargestSpend()
RETURNS TABLE(
customerID INTEGER,
firstName VARCHAR(20),
Surname VARCHAR(40),
totalBookings BIGINT,
totalSpend Numeric
)
ERROR: syntax error at end of input
LINE 8: )
^
SQL state: 42601
Character: 213
Not sure why this is happening.Any help would be very appreciated. thanks
begin/end.