I have this query that selects some fields based on some conditions:
SELECT [Qty].[plant_no] ,[Qty].[ord_no] ,[Qty].[form_no] ,[Qty].[form_var]