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

  • Home
  • SEARCH
  • 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

I have a mysql database with a table structure like below : Table Name
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 a table structure like below : categoryID bigint , primary key ,
I have a table T (structure below) which initially contains all-NULL values in an
i'm using curl to retrieve a page which has a table structure as below.
Below is my Table Structure Table 1 id name Table 2 id table1_id I
Assume that I have a table structure like seen below location|name ------------- NY|john London|neil
Using the table structure below how would I create a bcp bulk insert that
I have a table structure like the one shown below: <table id=result> <tr> <td

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.