select m.RecID as id,m.DeviceNumber,m.DeviceDescr as Descr,m.MessageCode,m.CodeDescr,m.ValueType,m.StdValue,m.TopLimit,m.LowLimit,m.Ufld1,m.UM
	from DevMonitor m
	where m.Domain='{<UserFactoryNum>}' and m.CodeType='PrevProcess'