Hard to explain problem here :)
I need to get a new column I have the amount of lines F.E. "RIT-17000263-T: 1" would have an extra column "Total Sequences": '9' "RIT-17000264-T: 1" would be "Total Sequences": '2'
Any help is welcome!:
SELECT DISTINCT
CONCAT(R.[Trip No_],'-', CONCAT('T: ', LEFT(R.[Partial trip Line No_],1))) AS 'TRIP',
R.[File] AS 'FILE',
R.[Sequence No_] AS 'SEQUENCE IN PTRIP'
FROM
[Route] AS R
WHERE
(R.[Trip No_] = 'RIT-17000263'
OR R.[Trip No_] = 'RIT-17000264')
GROUP BY
CONCAT(R.[Trip No_], '-', CONCAT('T: ', LEFT(R.[Partial trip Line No_],1))),
R.[File], R.[Sequence No_]

mysql,postgresql,sql-server,oracleordb2- or something else entirely.