You need to find the first four values in the range from 0 to 8 in an 'ID' column.
Enter the following SQL query:
SELECT 'ID'->match("^[0-8]{4}") AS 'Year', 'Brand' FROM T1 |
The [0-9] expression is used to find any character between the brackets. |
Here you can find more info about JavaScript regular expressions. |
You can use FORMATWIKI function for the purposes of cell formatting. |