I have a little tricky question in Oracle. Right now I have a SQL string which looks like
SELECT my_code FROM TABLE WHERE my_code IS NOT NULL
The codes could look like "40070101". I want both to select my_code, but also the number of 'green numbers' in each 'red number'. So if there exists...