你好,
我已經編寫了一個插件來查詢一個 sql 表,然後使用下面的操作對一些列進行分組/移動。 它確實對列進行了分組,但也將它們留在了組發布查詢之外。 我如何不讓它們顯示在組外?
打開數據庫(
“DSN=BB 分析數據倉庫;描述=BB 分析數據倉庫;UID=;Trusted_Connection=Yes;APP=JMP;WSID=SFX-5GCN2M1;DATABASE=BBAnalytics”,
“從 dbo.NewCombinded 中選擇 *”,
“新聯合”
);
// 移動選定的列:NextEndTime
數據表(“NewCombinded”)<<移動選定的列(
{:NextEndTime},
之後(:下一個開始時間)
);
// 分組列
數據表(“NewCombinded”)<<組列(
“FermCount 等”,
{:FermCount, :Volume, :BeerwellCount, :BWVol, :YP_Vol, :Latitude, :Longitude,
:設計,:技術}
);
// 重命名列組:FermCount 等 → 植物元數據
數據表(“NewCombinded”)<<重命名列組(
“FermCount 等”, “植物元數據”
);
// 分組列
數據表(“NewCombinded”)<<組列(
“氯總量等”,
{:總氯,:Backset Solids,:Beerwell Drop pH,:Slurry %DS,:Flour Fines,
:SlurrypH, :BacksetRate, :Level, :Temperature, :"氯 (gal)"n,
:“Isostab(加侖)”n,:脂肪酶添加,:“PhibroXact 25/75 添加”n,
:“硫酸(加侖)”n,:“尿素(加侖)”n,:Lactoside247 Total,:Max Ferm Temp,
:Phibro 總計, :硫酸總計}
);
// 重命名列組:氯總量等 → 批次成分
數據表(“NewCombinded”)<<重命名列組(
“氯總量等”, “批次配料”
);
// 分組列
數據表(“NewCombinded”)<<組列(
“酵母死細胞等”,
{:酵母死細胞,:酵母活細胞,:酵母總細胞,
:“酵母 1 劑量(加侖)”n,:“酵母 2 劑量(加侖)”n,:“酵母氯(加侖)”n,
:酵母酶量,:“酵母尿素(加侖)”n,:酵母氯總量,
:Yeast Urea, :Yeast yTech Yeast Total, :Yeast Enzyme, :Yeast CIP Valve,
:酵母水平,:酵母溫度}
);
// 重命名列組:Yeast Dead Cells 等 → Yeast Ingredients and Setpoints
數據表(“NewCombinded”)<<重命名列組(
“酵母死細胞等”, “酵母成分和設定點”
);
// 重命名列組:批次成分 → 批次成分和設定值
數據表(“NewCombinded”)<<重命名列組(
“批次配料”、“批次配料和設定值”
);
// 移動選定的列:FermHrs
數據表(“NewCombinded”)<<移動選定的列(
{:FermHrs},
之後(:FermHrs)
);
// 移動所選列:Ferm Scrubber Water Ethanol
數據表(“NewCombinded”)<<移動選定的列(
{:Ferm Scrubber 水乙醇},
之後(:葡萄糖)
);
// 移動所選列:Ferm Scrubber Water Ethanol
數據表(“NewCombinded”)<<移動選定的列(
{:Ferm Scrubber 水乙醇},
之後(:下一個結束時間)
);
// 移動選中的列
數據表(“NewCombinded”)<<移動選定的列(
{:批次成分 #1,:批次成分 #2,:批次成分 #3,
:酶量,:酶量 2,:註釋,:批次成分#1 描述,
:批次成分#2 描述,:批次成分#3 描述,:酶類型,
:2 型酶,:首字母},
之後(:醋酸)
);
// 移動選中的列
數據表(“NewCombinded”)<<移動選定的列(
{:批次成分 #1,:批次成分 #2,:批次成分 #3,
:酶量,:酶量 2,:註釋,:批次成分#1 說明,
:批次成分#2 描述,:批次成分#3 描述,:酶類型,
:2 型酶,:首字母},
之後(:下一個結束時間)
);
// 移動選中的列
數據表(“NewCombinded”)<<移動選定的列(
{:"酵母死細胞 (Cells/mL)"n, :"酵母活細胞 (Cells/mL)"n},
之後(:Ferm Drop Min pH)
);
// 移動選中的列
數據表(“NewCombinded”)<<移動選定的列(
{:"酵母死細胞 (Cells/mL)"n, :"酵母活細胞 (Cells/mL)"n},
after( :Ferm Drop Final Density )
);
// 移動選中的列
數據表(“NewCombinded”)<<移動選定的列(
{:"酵母死細胞 (Cells/mL)"n, :"酵母活細胞 (Cells/mL)"n},
after( :Ferm Drop Enzyme Total )
);
// 移動選中的列
數據表(“NewCombinded”)<<移動選定的列(
{:"酵母死細胞 (Cells/mL)"n, :"酵母活細胞 (Cells/mL)"n},
after( :Ferm Drop Avg Temp )
);
// 移動選中的列
數據表(“NewCombinded”)<<移動選定的列(
{:"酵母死細胞 (Cells/mL)"n, :"酵母活細胞 (Cells/mL)"n},
之後(:NIR DDGS 儲存脂肪)
);
// 移動選中的列
數據表(“NewCombinded”)<<移動選定的列(
{:"酵母死細胞 (Cells/mL)"n, :"酵母活細胞 (Cells/mL)"n},
之後(:麥芽)
);
// 移動選中的列
數據表(“NewCombinded”)<<移動選定的列(
{:酵母批號,:酵母批號 #2,:酵母類型},
之後(:麥芽)
);
// 分組列
數據表(“NewCombinded”)<<組列(
“葡萄糖等”,
{:葡萄糖, :乙酸, :乳酸, :麥芽, :DDGS 黃曲霉毒素, :DDGS DON,
:NIR DDGS 儲存蛋白, :NIR DDGS 儲存脂肪, :NIR DDGS 儲存葡萄糖,
:NIR DDGS Storgage Mst, :Ferm Drop Acetic,
:"Ferm Drop Ethanol (Solids and Glyc Adj to Yield)"n, :Ferm Drop Avg Temp,
:Ferm Drop Batch Id, :"Ferm Drop Batch ID (NIR)"n, :Ferm Drop DP3,
:Ferm Drop DP4, :Ferm Drop DS, :Ferm Drop 酶總量, :Ferm Drop 乙醇,
:"Ferm Drop Ethanol (NIR)"n, :"Ferm Drop Ethanol (Solids Adj)"n,
:"Ferm Drop Ethanol (Solids and Glyc Adj)"n, :Ferm Drop Formic, :Ferm Drop Fruc,
:Ferm Drop Gluc,:“Ferm Drop Gluc(NIR)”n,:Ferm Drop Glyc,:Ferm Drop Lactic,
:Ferm Drop Malt, :Ferm Drop pH, :"Ferm Drop pH (NIR)"n, :Ferm Drop Starch,
:Ferm Drop Total Sugars, :Ferm Starch Delta, :Ferm Starch In, :Ferm Starch Out,
:加侖損失,:明顯不同的批次}
);
// 重命名列組:Glucose 等 → 刪除 Ferm 數據的結尾
數據表(“NewCombinded”)<<重命名列組(
“葡萄糖等”, “刪除 Ferm 數據”
);
// 移動選中的列
數據表(“NewCombinded”)<<移動選定的列(
{:FermCount, :Volume, :BeerwellCount, :BWVol, :YP_Vol, :Latitude, :Longitude,
:設計,:技術},
之後(:硫酸總量)
);
// 移動選中的列
數據表(“NewCombinded”)<<移動選定的列(
{:葡萄糖, :乙酸, :乳酸, :麥芽, :DDGS 黃曲霉毒素, :DDGS DON,
:NIR DDGS 儲存蛋白, :NIR DDGS 儲存脂肪, :NIR DDGS 儲存葡萄糖,
:NIR DDGS Storgage Mst, :Ferm Drop Acetic,
:"Ferm Drop Ethanol (Solids and Glyc Adj to Yield)"n, :Ferm Drop Avg Temp,
:Ferm Drop Batch Id, :"Ferm Drop Batch ID (NIR)"n, :Ferm Drop DP3,
:Ferm Drop DP4, :Ferm Drop DS, :Ferm Drop 酶總量, :Ferm Drop 乙醇,
:"Ferm Drop Ethanol (NIR)"n, :"Ferm Drop Ethanol (Solids Adj)"n,
:"Ferm Drop Ethanol (Solids and Glyc Adj)"n, :Ferm Drop Formic, :Ferm Drop Fruc,
:Ferm Drop Gluc,:“Ferm Drop Gluc(NIR)”n,:Ferm Drop Glyc,:Ferm Drop Lactic,
:Ferm Drop Malt, :Ferm Drop pH, :"Ferm Drop pH (NIR)"n, :Ferm Drop Starch,
:Ferm Drop Total Sugars, :Ferm Starch Delta, :Ferm Starch In, :Ferm Starch Out,
:加侖損失, :顯著不同的批次},
之後(:技術)
);
// 移動選中的列
數據表(“NewCombinded”)<<移動選定的列(
{:酵母批號,:酵母批號 #2,:酵母類型,
:"酵母死細胞 (細胞/mL)"n, :"酵母活細胞 (細胞/mL)"n,
:酵母死細胞,:酵母活細胞,:酵母總細胞,:“酵母 1 劑量(加侖)”n,
:“酵母 2 劑量(加侖)”n,:“酵母氯(加侖)”n,:酵母酶量,
:"Yeast Urea (gal)"n, :Yeast Chlorine Totalizer, :Yeast Urea,
:酵母 yTech 酵母總量,:酵母酶,:酵母 CIP 閥,:酵母水平,
:酵母溫度},
之後(:顯著不同的批次)
);
// 移動選中的列
數據表(“NewCombinded”)<<移動選定的列(
{:Ferm Drop 填充密度,:Ferm Drop 最終密度,:"Ferm Drop Hours (NIR)"n,
:Ferm Drop Hrs, :Ferm Drop Min pH},
after( :Ferm Drop Ferm Number )
);
// 移動選中的列
數據表(“NewCombinded”)<<移動選定的列(
{:Ferm Drop Ferm Number, :Ferm Drop Fill Density, :Ferm Drop Final Density,
:"Ferm Drop Hours (NIR)"n, :Ferm Drop Hrs, :Ferm Drop Min pH},
之後(:下一個結束時間)
);
// 移動選定列:Total Backset To Ferm
數據表(“NewCombinded”)<<移動選定的列(
{:Total backset to Ferm},
之後(:下一個結束時間)
);
// 移動選定的列:Ferm Drop W2M Ratio
數據表(“NewCombinded”)<<移動選定的列(
{:Ferm Drop W2M Ratio},
之後(:下一個結束時間)
);
// 移動選中的列
數據表(“NewCombinded”)<<移動選定的列(
{:Month1, :Year1, :DateFermBatchStart, :Recipe Batch #},
之後(:下一個開始時間)
);