Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7899785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:47:56+00:00 2026-06-03T08:47:56+00:00

Below is my table structure and data… id receiver caller category playfilename 1 4564165

  • 0

Below is my table structure and data…

id   receiver   caller category   playfilename
1    4564165    42444    4        skdjfls.wav
2    4444444    42444    2        dfkjsanf.wav
3    4444444    42444    2        kldsfjas.wav
4    4845455    42444    3        dsklfjal.wav
5    4542122    42444    2        dfssadfs.wav
6    4535656    42444    2        dsfjklsaj.wav

Here, I want to count the number of rows which have same receiver and category column data. For example in above table return one extra select column with total count of 2 which have 4444444 receiver and category 2. similarly return other rows that match value on receiver and caller to another row with count column as something like below.

SELECT DISTINCT receiver, caller, category, playfilename, count from tbl_record .... ...

I have no ideas how can I do it. IS there any function in sql server to solve this problem or i have use something like stored procedure

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T08:47:57+00:00Added an answer on June 3, 2026 at 8:47 am

    How about this?

    SELECT
        receiver, caller, category, playfilename,
        COUNT(*) OVER (PARTITION BY receiver, category) AS CountPerReceivercategoryGroup
    from tbl_record
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Below is a subset of the kind of table structure and data i'm working
I have a mysql database with a table structure like below : Table Name
My table structure is below: CREATE TABLE [ACC].[Document]( [DocumentID] [int] IDENTITY(1,1) NOT NULL, [Date]
My table structure is below : MyTable (ID Int, AccID1 Int, AccID2 Int, AccID3
I have a table structure having a EMP_DATE column as below ID EMP_DATE ----
I have a table with below structure. I am not having control over changing
I have mysql database structure like below: CREATE TABLE test ( id int(11) NOT
I have two table masterTbl and detailTbl which structure is given below... --PRIMARY TABLE
Would like to get the following as a result from the table structure below
I have a table structure like below : categoryID bigint , primary key ,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.