try some basic conversions on transact sql code