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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:49:50+00:00 2026-05-29T10:49:50+00:00

Example: Table: Unit ID NAME VALUE 1 Kilo 1000 2 Mega 1000000 3 Giga

  • 0

Example:

Table: Unit
ID NAME  VALUE
1  Kilo  1000
2  Mega  1000000
3  Giga  1000000000

Table: Storage
ID Title    Drive_value Drive_unit_ID Cache_value Cache_unit_ID 
1  Seagate  100         3             400         1 
2  Scansoft 250         3             80          2 

Relations:

Storage.Cache_unit_ID references Unit.ID
Storage.Drive_unit_ID references Unit.ID 

Desired Goal:
To do a select * from Storage, display new columns ‘AS’ Drive and ‘AS’ Cache and display this by multiplying appropriate Unit.VALUE

 Title     Drive          Cache  
 Seagate   100000000000   400000          
 Scansoft  250000000000   80000000000          
  • 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-29T10:49:51+00:00Added an answer on May 29, 2026 at 10:49 am

    You can join the same table any number of times as long as you alias the joined tables:

    SELECT s.Title, u1.VALUE * s.Drive_value AS Drive, u2.VALUE * s.Cache_value AS Cache
    FROM Storage s
    INNER JOIN Unit u1 ON u1.ID = s.Drive_unit_ID
    INNER JOIN Unit u2 ON u2.ID = s.Cache_unit_ID
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For example my table is here>> CREATE TABLE tProject( name nvarchar(1000), Goal ntext, Activities
Do you prefix each field in a table with abbreviated table name? Example: Table:
I have two tables, for example: Table A Table B ======= ======= Name |
Example i have this table table transaction id int (PK) unit varchar(10) journal_number journal
Example: Table: box boxID color 01 red 02 blue 03 green Table: boxHas boxID
Consider this example table (assuming SQL Server 2005): create table product_bill_of_materials ( parent_product_id int
I have a SQL table like so: Update: I'm changing the example table as
In my database I have tables that define types for example Table: Publication Types
How can I concatenate two char columns within a perform screen? example: table sample
I have a table similar to this: CREATE TABLE example ( id integer primary

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.