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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:26:18+00:00 2026-05-26T16:26:18+00:00

I am using oracle 10g and wrote a query like this: SELECT presenttime, employeeid

  • 0

I am using oracle 10g and wrote a query like this:

SELECT presenttime,
       employeeid
  FROM mobilelocation
 WHERE presentdate = '31-10-2011'
 GROUP BY employeeid;

resulting an error message

ORA-00979: not a GROUP BY expression

But upon removing this group clause returining the result without any errors like this,

PRESENTTIME EMPLOYEEID
23:25   12304
23:48   12305

What is the problem with my group by clause and also suggest me how to use order by clause also

  • 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-05-26T16:26:19+00:00Added an answer on May 26, 2026 at 4:26 pm

    GROUP BY implies that you want to aggregate multiple rows from the table into a single row for every EmployeeID value. If that is your goal, you’d need to specify an aggregate function on the columns that you are not grouping by. If you want the earliest PresentTime value for each EmployeeID, for example, you’d do something like

    SELECT EmployeeID, MIN(PresentTime) earliestPresentTime
      FROM mobileLocation
     WHERE PresentDate = date '2011-10-31'
     GROUP BY EmployeeID
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Oracle 10g. Here is my query select * from Entries where
We are using utl_file in Oracle 10g to copy a blob from a table
I'm using Oracle 10g Express Edition 10.2 and I use it from a C#
I'm using Oracle 10g. Question: How can I write query to return just ID
Using Oracle 10g. The original Oracle designer for this project has moved on and
I have a c# client and I am using oracle 10g database. My query
I'll preface this question by stating that I'm using Oracle 10g Enterprise edition and
I'm using Oracle 10g and I'm trying to stack the conditions in a CASE
I am using Oracle 10g at the moment. I want to search through all
I'm using SQL*Plus 9.2 on Oracle 10g enterprise. I have created some scripts that

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.