SELECT distinct CASE WHEN type = 'Y' THEN cardNo ELSE SUM(case when type = 'X' then Cardno END) OVER() end,typeFROM TableName
Mark This Response as Answer -- Chandu http://www.dotnetfunda.com/images/dnfmvp.gif
brahmam
Login to post response