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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:54:43+00:00 2026-06-11T15:54:43+00:00

I have this query in oracle that produces a count, by the UUID field,

  • 0

I have this query in oracle that produces a count, by the UUID field, with a substring of 1,42..this was because we append extra characters after the UUID to represent multiple actions from the same UUID. This query works fine, the problem is, the UUID field also has android Device IDs which are 17 characters long, not the 42 characters that a UUID has. How could I include these “UUIDs” that arent the standard 42 characters?

select substr(uuid,1,42), count(player_id)
From Play
Where Trunc(Create_Dtime) >= To_Date('2012-mar-01','yyyy-mon-dd')
Group By Substr(Uuid,1,42)
Having Count(*) > 5
Order By Count(Player_Id) Desc
  • 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-11T15:54:44+00:00Added an answer on June 11, 2026 at 3:54 pm

    If you can somehow differentiate Android rows from other ones

    select
        case when <android-condition> then Substr(Uuid,1,17)
             else Substr(uuid,1,42)
        end
      , count(player_id)
    From Play
    Where Trunc(Create_Dtime) >= To_Date('2012-mar-01','yyyy-mon-dd')
    Group By
        case when <android-condition> then Substr(Uuid,1,17)
             else Substr(uuid,1,42)
        end
    Having Count(*) > 5
    Order By Count(Player_Id) Desc
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this query that takes about 5 minutes to run in Oracle: select
I have this complicated SQL query for Oracle that I want to visualize in
Have this query: SELECT HOUR( DATE ) AS hr, COUNT( * ) AS cnt
i have this query: SELECT `completed`.`ID` AS `ID`,`completed`.`level` AS `level`,`completed`.`completed_in` AS `completed_in`, COUNT(1) AS
I have this query that returns the results by ordering it by focus.name ASC.
I have this error when running a large query on oracle. any advice? I'm
I have a hierarchical query in Oracle 10 SQL that used to work. However,
I have this below query that I execute using java PreparedStatement: String dml=insert into
I have a query that has ... WHERE PRT_STATUS='ONT' ... The prt_status field is
I have this query in Oracle 10g: DELETE FROM BMAN_TP1.CELLS_ITEM TABLE1 WHERE EXISTS (

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.