I have some useful SQL code to share.
Since there is no MID function in SQL I had to use SUBSTRING, however it only works with a String, so here is a statement that will cast it for you
SUBSTRING(CAST(<column> AS CHAR(10)), <start>, <end>)
This CASE statement was useful to conditionally apply values to a column based on another columns data
USE <db_name>
GO
UPDATE <table_name>
SET <columnA> =
CASE
WHEN <columnB> = whatever THEN ‘FOO’
WHEN <columnB> = somethingelse THEN ‘BAR’
ELSE ‘Unknown’
END
GO
HTH