समग्र क्वेरी का उपयोग करें: select g.ID, g.Name, g.Phone, count(*) over ( partition by g.name ) as Count from Guys g;