D
D
Hi:
In the SQL below, can you please tell me ho can I avoid to be promted to
enter:[Further Gross up - 7 Sisters]?
Thanks,
Dan
****
SELECT DISTINCT HE.CTA_NIFO, HE.NIFO_Name, "" AS [Line-4],
IIf([he_details].[nifo_func_ccy]<>"USD","Non-USD","USD-Group") AS [CCY GROUP
(value= USD, Non-USD)], HE_Details.NIFO_Func_Ccy,
HE_Details.[OH-Priority-Inv], HE_Details.[OH-Priority-RE],
HE_Details.[Inv-Beg], HE_Details.[RE-Beg], HE_Details.[Grossup-Inv-Beg], 0 AS
[Further Gross up - 7 Sisters], HE_Details.[Grossup-RE-Beg],
[Inv-Beg]+[grossup-inv-beg]+[Further Gross up - 7 Sisters] AS [Inv-Beg after
Gross Up], [RE-Beg]+[grossup-re-beg] AS [R/E-Beg after Gross Up],
[Inv-Beg]+[grossup-inv-beg]+[Further Gross up - 7
Sisters]+[RE-Beg]+[grossup-re-beg] AS [Total Hedged Item after Gross Up],
HE_Details.[Total-Hedges-before-Reduction],
HE_Details.[7sisters-Hedge-Reduction], HE_Details.[OH-Red-Inv],
HE_Details.[OH-Red-RE], HE_Details.[Total-Grossed-up-Hedge-Pos-Beg],
HE_Details.[Total-Month-Movement-Inv], HE_Details.[Total-Month-Movement-RE],
HE_Details.[Total-Month-Movement-Hedge], HE_Details.[Total-Expo-for-HE],
HE_Details.[Total-Hedge-for-HE], HE_Details.[Hedge-over-Expo-%],
HE.Expo_CTA_after_Tax, HE.Prorated_Expo_CTA_after_Tax,
HE.Hedge_CTA_after_Tax, HE.OH_Reduct_CTA_after_Tax INTO [He+He Details]
FROM HE INNER JOIN HE_Details ON (HE.CTA_NIFO = HE_Details.CTA_NIFO) AND
(HE.NIFO_Func_Ccy = HE_Details.NIFO_Func_Ccy)
GROUP BY HE.CTA_NIFO, HE.NIFO_Name, "",
IIf([he_details].[nifo_func_ccy]<>"USD","Non-USD","USD-Group"),
HE_Details.NIFO_Func_Ccy, HE_Details.[OH-Priority-Inv],
HE_Details.[OH-Priority-RE], HE_Details.[Inv-Beg], HE_Details.[RE-Beg],
HE_Details.[Grossup-Inv-Beg], 0, HE_Details.[Grossup-RE-Beg],
[Inv-Beg]+[grossup-inv-beg]+[Further Gross up - 7 Sisters],
[RE-Beg]+[grossup-re-beg], [Inv-Beg]+[grossup-inv-beg]+[Further Gross up - 7
Sisters]+[RE-Beg]+[grossup-re-beg],
HE_Details.[Total-Hedges-before-Reduction],
HE_Details.[7sisters-Hedge-Reduction], HE_Details.[OH-Red-Inv],
HE_Details.[OH-Red-RE], HE_Details.[Total-Grossed-up-Hedge-Pos-Beg],
HE_Details.[Total-Month-Movement-Inv], HE_Details.[Total-Month-Movement-RE],
HE_Details.[Total-Month-Movement-Hedge], HE_Details.[Total-Expo-for-HE],
HE_Details.[Total-Hedge-for-HE], HE_Details.[Hedge-over-Expo-%],
HE.Expo_CTA_after_Tax, HE.Prorated_Expo_CTA_after_Tax,
HE.Hedge_CTA_after_Tax, HE.OH_Reduct_CTA_after_Tax
ORDER BY IIf([he_details].[nifo_func_ccy]<>"USD","Non-USD","USD-Group");
In the SQL below, can you please tell me ho can I avoid to be promted to
enter:[Further Gross up - 7 Sisters]?
Thanks,
Dan
****
SELECT DISTINCT HE.CTA_NIFO, HE.NIFO_Name, "" AS [Line-4],
IIf([he_details].[nifo_func_ccy]<>"USD","Non-USD","USD-Group") AS [CCY GROUP
(value= USD, Non-USD)], HE_Details.NIFO_Func_Ccy,
HE_Details.[OH-Priority-Inv], HE_Details.[OH-Priority-RE],
HE_Details.[Inv-Beg], HE_Details.[RE-Beg], HE_Details.[Grossup-Inv-Beg], 0 AS
[Further Gross up - 7 Sisters], HE_Details.[Grossup-RE-Beg],
[Inv-Beg]+[grossup-inv-beg]+[Further Gross up - 7 Sisters] AS [Inv-Beg after
Gross Up], [RE-Beg]+[grossup-re-beg] AS [R/E-Beg after Gross Up],
[Inv-Beg]+[grossup-inv-beg]+[Further Gross up - 7
Sisters]+[RE-Beg]+[grossup-re-beg] AS [Total Hedged Item after Gross Up],
HE_Details.[Total-Hedges-before-Reduction],
HE_Details.[7sisters-Hedge-Reduction], HE_Details.[OH-Red-Inv],
HE_Details.[OH-Red-RE], HE_Details.[Total-Grossed-up-Hedge-Pos-Beg],
HE_Details.[Total-Month-Movement-Inv], HE_Details.[Total-Month-Movement-RE],
HE_Details.[Total-Month-Movement-Hedge], HE_Details.[Total-Expo-for-HE],
HE_Details.[Total-Hedge-for-HE], HE_Details.[Hedge-over-Expo-%],
HE.Expo_CTA_after_Tax, HE.Prorated_Expo_CTA_after_Tax,
HE.Hedge_CTA_after_Tax, HE.OH_Reduct_CTA_after_Tax INTO [He+He Details]
FROM HE INNER JOIN HE_Details ON (HE.CTA_NIFO = HE_Details.CTA_NIFO) AND
(HE.NIFO_Func_Ccy = HE_Details.NIFO_Func_Ccy)
GROUP BY HE.CTA_NIFO, HE.NIFO_Name, "",
IIf([he_details].[nifo_func_ccy]<>"USD","Non-USD","USD-Group"),
HE_Details.NIFO_Func_Ccy, HE_Details.[OH-Priority-Inv],
HE_Details.[OH-Priority-RE], HE_Details.[Inv-Beg], HE_Details.[RE-Beg],
HE_Details.[Grossup-Inv-Beg], 0, HE_Details.[Grossup-RE-Beg],
[Inv-Beg]+[grossup-inv-beg]+[Further Gross up - 7 Sisters],
[RE-Beg]+[grossup-re-beg], [Inv-Beg]+[grossup-inv-beg]+[Further Gross up - 7
Sisters]+[RE-Beg]+[grossup-re-beg],
HE_Details.[Total-Hedges-before-Reduction],
HE_Details.[7sisters-Hedge-Reduction], HE_Details.[OH-Red-Inv],
HE_Details.[OH-Red-RE], HE_Details.[Total-Grossed-up-Hedge-Pos-Beg],
HE_Details.[Total-Month-Movement-Inv], HE_Details.[Total-Month-Movement-RE],
HE_Details.[Total-Month-Movement-Hedge], HE_Details.[Total-Expo-for-HE],
HE_Details.[Total-Hedge-for-HE], HE_Details.[Hedge-over-Expo-%],
HE.Expo_CTA_after_Tax, HE.Prorated_Expo_CTA_after_Tax,
HE.Hedge_CTA_after_Tax, HE.OH_Reduct_CTA_after_Tax
ORDER BY IIf([he_details].[nifo_func_ccy]<>"USD","Non-USD","USD-Group");