Convert IBM Cognos SQL which contains a filter to Microsoft SQL Server Query
问题 I'm trying to convert IBM Cognos SQL which contains a filter to Microsoft SQL Server Query. I tried to apply the filter in the Microsoft SQL Server Query, but it didn't work. Here the IBM Cognos Query: IBM Cognos SQL select rank() over ( at client__iacode.ia_code order by XCOUNT(client_document.client_document_id for client__iacode.ia_code ) desc nulls last) as Rank_IA, client__iacode.ia_code as IA_Code, client__iacode.ia_short_descr as IA_Short_Descr, XCOUNT(client_document.client_document