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 8831507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:19:29+00:00 2026-06-14T08:19:29+00:00

TIA for any help/advice/further reading. I’m trying to make SQLDev do a count of

  • 0

TIA for any help/advice/further reading.

I’m trying to make SQLDev do a count of how many packages customers have had and then only show the top 10 of those results.

So I have this….

    select  pickup_customer , count (pickup_customer)
from 
( select pickup_customer, count (pickup_customer)
    from manifest
   order by count (pickup_customer) desc ) 
 where ROWNUM <= 10
 group by pickup_customer
 order by count (pickup_customer) desc

With that I’m getting ‘Not a single group function’ and I can’t figure out where it’s gone wrong. Probably very simple fix, I just can’t see it right now!

EDIT: I have tried this code but am getting a ‘missing right parenthesis ‘ error now!

select  pickup_customer , count (pickup_customer)
from 
(select pickup_customer, count (pickup_customer) --sub-query which pre-orders the results for rownum to then limit.
    from manifest
   order by count (pickup_customer) desc 
   group by pickup_customer)
 where ROWNUM <= 10    -- limits the results to be only the top 10
  • 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-14T08:19:30+00:00Added an answer on June 14, 2026 at 8:19 am

    The following query should work.

    SELECT pickup_customer, COUNT (pickup_customer)
    FROM enrollment
    WHERE ROWNUM <= 10
    GROUP BY pickup_customer
    ORDER BY COUNT (pickup_customer) DESC
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new working with Storyboards, so I'd appreciate any help! I have a Settings
I have a data.frame with a date-column. These dates can occur many times, but
I'm trying to make a show/hide content feature work on my page: <div> <div
I'm trying to have it so that when a user selects white from a
EDIT: Thanks Akshat and Jefferey for your help and advice. I'm going to re-ask
I have some html spanning over EOF: $message = <<<EOF <p style=font-size: 9px; font-family:
I want all .jpg links to have a certain background image. so a link
I'm trying to get better at C++ (I know a little). I'm working on
How can I make my static-file root directories relative to my application root folder
I have been using CMake with C++ to build libraries and executables and would

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.