Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
CREATE OR REPLACE VIEW VEW_OTC1
(col1,col2) as
select 1 as col1,VARCHAR_255_17
from otc_env_main where to_date(VARCHAR_10_7,'mm-dd-yyyy')-to_date(VARCHAR_255_10,'mm-dd-yyyy') >60
union
select 0 as col1,VARCHAR_255_17
from otc_env_main where to_date(VARCHAR_10_7,'mm-dd-yyyy')-to_date(VARCHAR_255_10,'mm-dd-yyyy') <60
CREATE OR REPLACE VIEW VEW_OTC2
(col3,col4)as
select 1 as col2,VARCHAR_255_17
from otc_env_main where to_date(VARCHAR_10_1,'mm-dd-yyyy')-to_date(VARCHAR_255_11,'mm-dd-yyyy') >60
union
select 0 as col2,VARCHAR_255_17
from otc_env_main where to_date(VARCHAR_10_1,'mm-dd-yyyy')-to_date(VARCHAR_255_11,'mm-dd-yyyy') <60
CREATE OR REPLACE VIEW VEW_OTCn
(col1,col3,col2)
AS select col1,col3,col4 from VEW_OTC1, VEW_OTC2,...
where col2=col4 and ...
CREATE OR REPLACE VIEW VEW_OTCm
(col1,col3,col2,sum,per)
AS select col1,col3,col2,(col1+col3),(col1+col3...)*100/16 from VEW_OTCn