Concat function is not working – invalid number of arguments
SELECT CONCAT(Name,”(“,SUBSTR(Occupation,1,1),”)”) FROM OCCUPATIONS; First, the double quotes ” are used to enclose identifiers. use single quote ‘ to wrap a string. Second, CONCAT accepts two params. You could nest bunch of concats, but it’s easier and cleaner to use concatenation operation ||: SELECT Name || ‘(‘ || SUBSTR(Occupation,1,1) || ‘)’ FROM OCCUPATIONS;