prabha_friend
Prabhakaran Karuppaih
- Local time
- Today, 11:03
- Joined
- Mar 22, 2009
- Messages
- 784
SELECT [Detail Total Profit MTD].SR_NO, [Detail Total Profit MTD].ID_PARTY, [Detail Total Profit MTD].[Issuer Name], [Detail Total Profit MTD].[Issuer#], [Total Revenue]+[Total Expense] AS [Net Income], [Cancellation Fees]+[Issuance Fees]+[Cancellation Fees GDN]+[Issuance Fees GDN]+[Other Revenues*]+[Dividend Fees]+[Tax Reclaim Service]+[Depository Fees]+[OOP Recoveries]+[Broker Reclaims]+[MAX Revenues*]+[FX Fees]+[Pink Sheets]+[NII Revenues*] AS [Total Revenue], [Contrib# Expenses*]+[OOP Expenses*]+[Transfer Agency*]+[Other Expenses*] AS [Total Expense], [Total Revenue]+[Contrib# Expenses*] AS [Total Revenue-Contribution Expense], [Detail Total Profit MTD].[Cancellation Fees], [Detail Total Profit MTD].[Issuance Fees], [Detail Total Profit MTD].[Cancellation Fees GDN], [Detail Total Profit MTD].[Issuance Fees GDN], [Detail Total Profit MTD].[Other Revenues*], [Detail Total Profit MTD].[Dividend Fees], [Detail Total Profit MTD].[Tax Reclaim Service], [Detail Total Profit MTD].[Depository Fees], [Detail Total Profit MTD].[OOP Recoveries], [Detail Total Profit MTD].[Broker Reclaims], [Detail Total Profit MTD].[MAX Revenues*], [Detail Total Profit MTD].[FX Fees], [Detail Total Profit MTD].[Pink Sheets], [Detail Total Profit MTD].[NII Revenues*], [Detail Total Profit MTD].[Contrib# Expenses*], [Detail Total Profit MTD].[OOP Expenses*], [Detail Total Profit MTD].[Transfer Agency*], [Detail Total Profit MTD].[Other Expenses*], [Detail Total Profit MTD].Region, [Detail Total Profit MTD].Country, [Detail Total Profit MTD].BAWG
FROM [Detail Total Profit MTD]
ORDER BY 5 DESC;
is sorting properly...
but not:
ORDER BY [Total Revenue]+[Total Expense] DESC
not even:
ORDER BY [NET INCOME] DESC
Whats the difference?
FROM [Detail Total Profit MTD]
ORDER BY 5 DESC;
is sorting properly...
but not:
ORDER BY [Total Revenue]+[Total Expense] DESC
not even:
ORDER BY [NET INCOME] DESC
Whats the difference?