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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:27:15+00:00 2026-06-11T00:27:15+00:00

I have a query that spits out a result: Select Sum(Count(P.Create_Dtime)), From Player P

  • 0

I have a query that spits out a result:

Select Sum(Count(P.Create_Dtime)),
From Player P
Where
Trunc(P.Create_Dtime) >= To_Date('2012-mar-01','yyyy-mon-dd')
And Trunc(P.Create_Dtime) < To_Date('2015-sep-9','yyyy-mon-dd')
Group By Trunc(P.Create_Dtime)
Order By Trunc(P.create_Dtime) Asc

Result = 317827

Now,when I change this query to add another table to the from group (i will be adding constraints based on this table later on)…the result spits out a new answer with a sum much larger than the original. For example, the original answer was 317827, and now when I add in the table below, the answer comes out to 6356540, exactly 20x the original answer. There are 20 rows of data in the “Feature_group_xref” table, and the create_dtime column is also in that table. Why are these values multiplying? I assumed that because i have identified each column (with “P”) that it shouldn’t be a problem. Any suggestions? If you see below the only thing I added was a new table name:

Select Sum(Count(P.Create_Dtime))
From Player P, Feature_group_xref X
Where
Trunc(P.Create_Dtime) >= To_Date('2012-mar-01','yyyy-mon-dd')
And Trunc(P.Create_Dtime) < To_Date('2015-sep-9','yyyy-mon-dd')
Group By Trunc(P.Create_Dtime)
Order By Trunc(P.create_Dtime) Asc

Result = 6356540 (There are 20 rows in table “Feature_Group_Xref” and one column is create_dtime. This result is exactly 20x the result in the first query.

**UPDATE – I have this query which gives me the sum of active players within the last 7 days for users created after march 1 2012…

Select
sysdate,sum(Count(p.init_dtime))
From Player p
Where
Trunc(p.Init_Dtime) > Trunc(Sysdate) - 7 
And
Trunc(P.Create_Dtime) >= To_Date('2012-mar-01','yyyy-mon-dd')
And Trunc(P.Create_Dtime) < To_Date('2015-sep-9','yyyy-mon-dd')
Group By Trunc(P.Init_Dtime)
Order By Trunc(p.Init_Dtime) Asc

I want to take this query and break it down so that the only (init_dtime) values that show up are the ones where group_id = 1,10,20,30, and 40 (Group ids are 1-100). Group ID can be found in the player_source table, and the column “player_id” is located in both the player and player_source table if that helps.

  • 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-11T00:27:16+00:00Added an answer on June 11, 2026 at 12:27 am

    If two tables in a join query (From Player P, Feature_group_xref X in your case) have no join condition then RDBMS returns their Cartesian Product. That means that each row of one table combines with each row of another. For example if one table has 3 rows and another table has 3 rows then if you join those two tables without join condition you will get 9 rows.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple query that spits out new_users by day... Select trunc(create_dtime),Count(Player_Id) as
I have a query that looks like this SELECT * from myTable WHERE Date
I have a query that successfully grabs the unique products from my products table
I have a query that basically combines tables of actions and selects from them
I have have this query that i want to execute. SELECT warehouse.expiry_date, pharmacy.expiry_date, drugs.active_substance,
I have a query that creates a result set like this: Rank Name 1
I have a query that is pulling users who liked a specific object from
I have a SQL query that will result in one string. Rather than bind
I have a mysql query which spits out the following: Array ( [0] =>
I am using in C# MYsql .I have query that works if I run

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.