Estoy trabajando en unir dos tablas JMP.
Todos los datos se están uniendo correctamente, excepto una fila. He comprobado para asegurarme de que se copien de la misma manera y tengan las mismas características, y utilicé los indicadores de coincidencia para confirmar qué tabla está causando el error. Aunque he determinado cuál es el problema de la tabla, todavía no estoy seguro de por qué.
Tabla 1:
New SQL Query(
QueryName( "1. Curd xfer with time offsets" ),
CustomSQL(
"SET NOCOUNT ON
DECLARE @StartDate DateTime
DECLARE @EndDate DateTime
SET @StartDate = '20170115 00:00:00.000'
SET @EndDate = '20170122 00:00:00.000'
SET NOCOUNT OFF
SELECT * FROM (
SELECT History.TagName, DateTime, Value, vValue, StartDateTime
FROM History
WHERE History.TagName IN ('DAL.CP5.CHEESE.CVSTATUS.CURD_XFER_VAT')
AND wwRetrievalMode = 'Cyclic'
AND wwResolution = 30000
AND wwVersion = 'Latest'
AND DateTime >= @StartDate
AND DateTime <= @EndDate) temp WHERE temp.StartDateTime >= @StartDate"
)
) << Run;
While (try(dt1<<GET name=""></GET>
Tabla de datos 2:
New SQL Query(
QueryName( "3. Tags with Values" ),
CustomSQL(
"SET NOCOUNT ON
DECLARE @StartDate DateTime
DECLARE @EndDate DateTime
SET @StartDate = '20170115 00:00:00.000'
SET @EndDate = '20170122 00:00:00.000'
SET NOCOUNT OFF
SELECT * FROM (
SELECT History.TagName, DateTime, Value, vValue, StartDateTime
FROM History
WHERE History.TagName IN
('DAL.CP5.CHEESE.CCB01.LT_01684_RAW', 'DAL.CP5.CHEESE.CCB01.LT_01685_RAW', 'DAL.CP5.CHEESE.CCB01.LT_01686_RAW', 'DAL.CP5.CHEESE.CCB01.LT_01687_RAW', 'DAL.CP5.CHEESE.CCB01.LT_01688_RAW', 'DAL.CP5.CHEESE.CCB01.TIC_01510_PV', 'DAL.CP5.CHEESE.CCB01.FIC_01410_PV', 'DAL.CP5.CHEESE.CVSTATUS.CURD_XFER_VAT', 'DAL.CP5.CHEESE.CCB01.LT_01662_RAW','DAL.CP5.CHEESE.CCB01.TE_01590', 'DAL.CP5.CHEESE.CVSTATUS.CURD_XFER_RECIPE', 'DAL.CP5.CHEESE.CCB01.LT_01652_RAW', 'DAL.CP5.CHEESE.CCB01.LT_01662_RAW', 'DAL.CP5.CHEESE.CCB01.LT_01686_RAW', 'DAL.CP5.CHEESE.CCB01.CTK02010.MCCB_02310A_RAW', 'DAL.CP5.CHEESE.CCB01.CTK02020.MCCB_02320A_RAW', 'DAL.CP5.CHEESE.CCB01.CTK02030.MCCB_02330A_RAW', 'DAL.CP5.CHEESE.CCB01.CTK02040.MCCB_02340A_RAW', 'DAL.CP5.CHEESE.CCB01.CTK02050.MCCB_02350A_RAW', 'DAL.CP5.CHEESE.CCT01.CURD_LT', 'DAL.CP5.CHEESE.CCB01.PRGM_BELT_STOP_CTR1_ACC', 'DAL.CP5.CHEESE.CCB01.PRGM_BELT_STOP_ACC', 'DAL.CP5.CHEESE.CCB01.LT_01672_RAW')
AND wwRetrievalMode = 'Cyclic'
AND wwResolution = 30000
AND wwVersion = 'Latest'
AND DateTime >= @StartDate
AND DateTime <= @EndDate) temp WHERE temp.StartDateTime >= @StartDate"
)
) << Run;
While (try(dt3<<GET name=""></GET>
Los datos que no se están transfiriendo son para DAL.CP5.CHEESE.CCB01.LT_01672_RAW.
¿Alguien puede ayudar?
¡Gracias!
Hola,
Mirando sus scripts rápidamente veo que tiene una columna definida dos veces ( DAL.CP5.CHEESE.CCB01.LT_01672_RAW)
JMP agregará un sufijo numérico al nombre repetido de la columna. En su caso, "DAL.CP5.CHEESE.CCB01.LT_01672_RAW 2"
Por lo tanto, lo más probable es que su tabla de datos apilados no produzca la salida que espera.
Si pudiera proporcionar ejemplos de cada una de las tres tablas de datos, podemos ayudar a reducir el problema aún más.
--An
pila probablemente no produce lo que estás esperando
Observe que crea la misma columna dos veces