Plc Programming Create Function In Sql