How to use Partition Analytical Function in SQL
SELECT JobNo,BankName , NoofLeaves,NoofBooks ,bcode,ROW_NUMBER() over (partition by bcode order by bcode) as Rank
FROM ChequeDetails
WHERE JobNo='161008LN1' and BankName='008'
FROM ChequeDetails
WHERE JobNo='161008LN1' and BankName='008'
Comments
Post a Comment