SELECT DISTINCT
dbo.QMS.QMSCode, dbo.QMS.QMSSerial, dbo.DefectReport.done AS DefectDone, dbo.[Order].done AS OrderDone, dbo.QMS.model, dbo.QMS.controlType, dbo.QMS.connectionType, dbo.QMS.generateType,
dbo.QMS.isCamera, dbo.QMS.centralMonitorRowCount, dbo.QMS.TV_LCD, dbo.QMS.callNumber, dbo.QMS.monitorNumber, dbo.QMS.centralMonitorNumber, dbo.QMS.description, dbo.QMS.lastUsedBranchCode,
dbo.QMS.lastUsedCompanyCode, dbo.QMS.warrantyStartDate, dbo.QMS.warrantyEndDate, dbo.QMS.warrantyType, dbo.QMS.lastCheckDate, dbo.QM…