Skip to main content
-11 votes
0 answers
114 views

13.6 million rows being scanned for COUNT(DISTINCT quiz_analytic_id). This is the real issue. COUNT(DISTINCT ...) is expensive because MySQL cannot use index statistics to shortcut it
saqlain khadim's user avatar
-2 votes
0 answers
66 views

I am trying to count how many orders each customer has. I noticed that COUNT(*) and COUNT(o.order_id) return different results and I don’t fully understand why. Here is a simplified example: CREATE ...
Imtiaz Ghous's user avatar
0 votes
0 answers
62 views

I have a dataset with dates and hours and a count of the number of events within each hour. I want a measure to take the minimum value of the count within each hour. So the min count by hour column ...
mikejm's user avatar
  • 1
-4 votes
3 answers
180 views

I'm searching for duplicate values per column and need a count of them and data from some additional columns. Table sample BillNr Name email 1000 Shakira [email protected] 1001 Shakira [email protected] ...
Kaptah's user avatar
  • 9,887
-2 votes
3 answers
136 views

I have a list my_list = [3,8,11,8,3,2,1,2,3,3,2] # my list max(my_list, key=my_list.count) # most frequent number appeared on the list But i want to make a list according to the most frequent ...
Kan's user avatar
  • 25
1 vote
4 answers
248 views

I have a table that has values for each week in each column. I want to count the number of consistent values starting from the first week until it changes. I've tried searching for answers but I ...
Marvin Matic's user avatar
0 votes
1 answer
69 views

I have a COUNT(*) query that is really fast in several DB's, but is really slow on MySQL AURORA: I can't seem to figure out why. First I thought it was because it went the MEMORY went over the 4MB, ...
user3634184's user avatar
2 votes
2 answers
118 views

I need to count the number of students who were registered in a given course over an academic year. The following SELECT query returns a column of course numbers and a column of the academic year. ...
Ross's user avatar
  • 81
3 votes
3 answers
185 views

My stored procedure has this structure: if Count 1>0 then count 2 with (condition 1,) if Count 2>0 then count 3 with (condition 1,2) if Count 3>0 then count 4 with(condition ...
Annapurna's user avatar
  • 121
0 votes
0 answers
68 views

In databases such as PostgreSQL, doing exact counts like select count (*) from table where condition perform a full table scan. PostgreSQL will need to scan either the entire table or the entirety of ...
user22476690's user avatar
2 votes
3 answers
141 views

My current project/issue is we have a list of permit types. With these types they are needing to be grouped by an overall category. Once grouped out the end goal is to count how many within specified ...
Josh.STCH's user avatar
0 votes
2 answers
130 views

I have a number represented as a large binary string (length can be up to 1 million bits). The number is recursively split as follows: At each step, divide the number x into two parts: floor(x/2) and ...
md emon6767's user avatar
1 vote
1 answer
130 views

I am trying to get a cell in excel to display a total count of emails in a given subfolder from a specific outlook account (which is a shared mailbox). Two questions: How to specify which Outlook ...
Cheryl Sandrow's user avatar
0 votes
0 answers
28 views

I can manually see the number of conversations in each label in the settings screen. I want to pull this data monthly and automatically add the count in a Gsheet so I can see the trend over time. Can ...
Michelle Goodman's user avatar
0 votes
0 answers
71 views

I´ve got a large dataframe that I´ve got to aggregate and then show counts by geo, the lines should be unique by product, sex and education… already use dplyr to group by and then count but only get ...
Luisa's user avatar
  • 25

15 30 50 per page
1
2 3 4 5
1449