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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:26:43+00:00 2026-06-05T02:26:43+00:00

The following result is created from a SELECT statement I’ve created: total date currency

  • 0

The following result is created from a SELECT statement I’ve created:

total           date        currency    provider    conversion_to_usd
170.0168890000  2012-01-01  AUD         Telluride    1.06694
177.5532500000  2012-01-01  CAD         Telluride    1.00030
33.1864000000   2012-01-01  NZD         Telluride    0.82966
687.4900000000  2012-01-01  USD         Telluride    1.00000

How would I sum up the rows sales here, for example 170.016*1.066 + 177.55*1.00…

SELECT SUM(...) FROM <SELECT STATEMENT ABOVE> ?
  • 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-05T02:26:45+00:00Added an answer on June 5, 2026 at 2:26 am

    You can give the SELECT statement an alias.

    This will then allow you to refer to the columns total and conversion_to_usd, to use their values on the SUM, thus, performing the required calculations:

    SELECT SUM(t.total*t.conversion_to_usd) FROM (SELECT STATEMENT ABOVE) t
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

what would be the result of following query? select StudentName from Students where StudentName
On Oracle 9i, why does the following produce the result 'abc' select 'abc '
Say that I have some SELECT statement: SELECT id, name FROM people ORDER BY
Why doesn't the following work? SELECT name FROM (SELECT name FROM agentinformation) I guess
The sql statement is like this: select posts.id, posts.title from posts inner join (select
The following code is a simple select statement that should use the array_sum function
Is it possible to set the result from a prepared statement into a variable?
Based on this article from Ayende i have created the following index definition public
I am trying to reach the following result here I know how to configure
I would like to iterate. @some_value outputs the following result: { Meta => {

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.