C
carl
I use this query...
TRANSFORM Sum(Nz([PC Vol]/2,0)+Nz([BD Vol]/2,0)+Nz([MM Vol]/2,0)) AS
Expr1
SELECT Sum([PC Vol]/2)+Sum([BD Vol]/2)+Sum([MM Vol]/2) AS OCC_Vol
FROM OCC_Data
WHERE (((OCC_Data.date)=[EnterDateyyyymmdd]) And ((OCC_Data.Product)
In ('OSTK','OIND')) And ((OCC_Data.underlying) In
('MA','BRKB','MJN','CIT','GDX','TBT','ACAS','MNX','TSO','FAS','TLT','RF','EEM','EWZ','XHB','EFA','XLV','FSLR','APWR','XL','KMP','PBR','DRYS','XLP','BX','DAL','GMCR','UAL','LDK','AKS','XLB','ENER','WLT','CSX','CLF','HK','EWY','NYX','FAZ','XOP','IOC','ATVI','FIS','AFL','TSL','KRE','FXE','HIG')))
GROUP BY ""
PIVOT OCC_Data.exchange In ("B","A","P","Z","C","W","I","Q","X");
This section of the query...
((OCC_Data.underlying) In
('MA','BRKB','MJN','CIT','GDX','TBT','ACAS','MNX','TSO','FAS','TLT','RF','EEM','EWZ','XHB','EFA','XLV','FSLR','APWR','XL','KMP','PBR','DRYS','XLP','BX','DAL','GMCR','UAL','LDK','AKS','XLB','ENER','WLT','CSX','CLF','HK','EWY','NYX','FAZ','XOP','IOC','ATVI','FIS','AFL','TSL','KRE','FXE','HIG')))
Is used in several other queries.
Is there a way that I can set up one source "table" with these
symbols, and if I update that 'table' with add/deletes of the symbols
that all my queries will update accordingly ?
Thank you in advance.
TRANSFORM Sum(Nz([PC Vol]/2,0)+Nz([BD Vol]/2,0)+Nz([MM Vol]/2,0)) AS
Expr1
SELECT Sum([PC Vol]/2)+Sum([BD Vol]/2)+Sum([MM Vol]/2) AS OCC_Vol
FROM OCC_Data
WHERE (((OCC_Data.date)=[EnterDateyyyymmdd]) And ((OCC_Data.Product)
In ('OSTK','OIND')) And ((OCC_Data.underlying) In
('MA','BRKB','MJN','CIT','GDX','TBT','ACAS','MNX','TSO','FAS','TLT','RF','EEM','EWZ','XHB','EFA','XLV','FSLR','APWR','XL','KMP','PBR','DRYS','XLP','BX','DAL','GMCR','UAL','LDK','AKS','XLB','ENER','WLT','CSX','CLF','HK','EWY','NYX','FAZ','XOP','IOC','ATVI','FIS','AFL','TSL','KRE','FXE','HIG')))
GROUP BY ""
PIVOT OCC_Data.exchange In ("B","A","P","Z","C","W","I","Q","X");
This section of the query...
((OCC_Data.underlying) In
('MA','BRKB','MJN','CIT','GDX','TBT','ACAS','MNX','TSO','FAS','TLT','RF','EEM','EWZ','XHB','EFA','XLV','FSLR','APWR','XL','KMP','PBR','DRYS','XLP','BX','DAL','GMCR','UAL','LDK','AKS','XLB','ENER','WLT','CSX','CLF','HK','EWY','NYX','FAZ','XOP','IOC','ATVI','FIS','AFL','TSL','KRE','FXE','HIG')))
Is used in several other queries.
Is there a way that I can set up one source "table" with these
symbols, and if I update that 'table' with add/deletes of the symbols
that all my queries will update accordingly ?
Thank you in advance.