I would like to get the "like substring" of select statement.
MyTable:
Container ItemName
101 QQQ A12 DDD
101 QQTT A12 R33
102 QQQ A3 AB3
103 QQ BB BB11
The select statement work fine to get the rows (records) I need (without the "like substring")
SELECT Container, <like substring>
FROM MyTable
Where (ItemName like '%A[0-9] %') OR (ItemName like '%A[0-9][0-9] %')
GROUP BY Container, <like substring>
As a result I hope to get:
Container "like substring"
101 A12
102 A3
The real question is how to get(display) the substring found by the like logical operator
How should I do it?
Thanks Yossi