from (select * from JOB_CHEMELEMENT ? union select * from J#STL_CHEMELEMENT ?) b ? order by HEATNO desc,ASSAYTYPECODE DESC
]]>
'ZY' $
union
select *
from J#STL_CHEMELEMENT where ASSAYTYPECODE <> 'ZY' $
) b $ order by a.optdate desc,b.ASSAYTYPECODE desc
]]>
'ZY' $
union
select *
from J#STL_CHEMELEMENT where ASSAYTYPECODE <> 'ZY' $
) b $ order by b.HEATNO desc, b.ASSAYTYPECODE desc
]]>
'H'
order by length(ASSAYTYPECODE), ASSAYTYPECODE
]]>
= to_date(?, 'yyyy-MM-dd HH24:Mi:ss')
AND MAKETIME <= to_date(?, 'yyyy-MM-dd HH24:Mi:ss') $
AND CAST_ID = decode(?,null,CAST_ID,?)
union
select *
from J#ppc_Steel_cast
where 1 = 1
AND MAKETIME >= to_date(?, 'yyyy-MM-dd HH24:Mi:ss')
AND MAKETIME <= to_date(?, 'yyyy-MM-dd HH24:Mi:ss') $
AND CAST_ID = decode(?,null,CAST_ID,?)
)
]]>
0 then
trim(to_char(round(CaO / (SiO2), 3), '9990.000'))
else
''
end JIANDU
from JOB_CHEMELEMENT t
where substr(t.checkno, length(t.checkno) - 1, 2) = '-4'
and (substr(heatno, 3, 1) = '1' or substr(heatno, 3, 1) = '2')
and to_char(ASSAYDATE, 'yyyy-MM-dd') between ? and
?
and STATIONCODE like ?
union
select t.*,
case
when nvl(SiO2, 0) <> 0 then
trim(to_char(round(CaO / (SiO2), 3), '9990.000'))
else
''
end JIANDU
from J#JOB_CHEMELEMENT t
where substr(t.checkno, length(t.checkno) - 1, 2) = '-4'
and (substr(heatno, 3, 1) = '1' or substr(heatno, 3, 1) = '2')
and to_char(ASSAYDATE, 'yyyy-MM-dd') between ? and
?
and STATIONCODE like ?) A
order by A.ASSAYDATE
]]>