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

  • Home
  • SEARCH
  • 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 6988431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:04:51+00:00 2026-05-27T19:04:51+00:00

I have a table finance (column : date,month,quarter,amount_usd,col1,col2,col3). Simply querying … select sum(amount_usd) from

  • 0

I have a table finance (column : date,month,quarter,amount_usd,col1,col2,col3).

Simply querying …

select sum(amount_usd) from finance
group by date

…takes 7 sec

select sum(amount_usd) from finance
group by month

…takes 6 sec

select sum(amount_usd) from finance
group by quarter

…takes 5 sec

So I have thought of Data Warehouse

I have created time dimention and hierarchy as

  • date as child of month
  • month as child of quarter

Now I am stuck…

What will be my fact table?
And how to query data from fact table?

This might be very basic question. But I am new to this.

Thanks

  • 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-27T19:04:51+00:00Added an answer on May 27, 2026 at 7:04 pm

    “so my simple querys is taking time and thought of having Data
    warehouse concept…”

    Seven seconds is not slow. At least, not “need a data warehouse” slow. A Data Warehouse is a strategic (usually enterprise level) environment, not a tuning technique.

    However, I agree that it might be irritating for an OLTP user waiting for a screen to refresh. What you need to do is tune the query. You say you have indexes: but if you are summing the whole FINANCE table then you probably don’t want to use indexes. If you have an Enterprise Edition licence and multiple CPUs with spare capacity then parallel query might be a better idea.

    If you run these finance queries many times a day you may derive some benefit from pre-aggregation but it seems unlikely that the reduction in elapsed time would justify the overhead of maintaining materialized views.

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

Sidebar

Related Questions

I have table with 3 columns A B C. I want to select *
i have table contain two column id and word . word column may contain
I have table data, select * from tbltaxamount ; id | taxname | taxinfoid
I have table with ajax paging, i can select any page and view data,
I have a table (in an Oracle database) just like below: department ---------- Finance
I have table named A with column B defined int not null Primary Key
I have table with data about tasks like Id, Name, Date, WorkerId, VehicleId (and
I have table Widgets and table Persons both of them contains Identity column (
I have table that has a column of type DateTime, I would like to
I have table inside a div tab. The table has 40 rows in it

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.