I have a table AgentDetail
, and I need to create a query which returns only records which contain left most 5 numeric digits.
The table has 3 columns
AgentId, AgentName, AgentTextCode
where in the AgentTextCode
column, there could be 5 digits or any text value (sometime 2 bytes chars). So output records should be only those which have a value which starts with 5 numeric digits (decimal value not possible).
Sample data & output: