我需要轉動下表命名tblGameRoleName -
Game Role Name
VolleyBall Coach Sujatha
VolleyBall Player Rajendran
VolleyBall Player Juno
VolleyBall Player Indira
VolleyBall Player Ganesh
VolleyBall Player Vasa
我有兩個表;潛在客戶,領土和推薦人。 鉛的列: ID, Name, TerritoryId 引薦具有: ID, LeadId, Name 領土有: ID and Name 的引線總是涉及領土和引線可任選地涉及一種引薦。 定期插入潛在顧客和推薦人記錄(推薦人不太常見)。我想輸出在GridView的報告看起來像這樣:
Territory | Lead Count | Ref1 Lead Count