multiply fields in a table

S

steve

I have a very specific question.

I have a table with numeric values in field 3 & 4. I
need to multiply these fields to create an additional
field in the same table.
 
G

Guest

-----Original Message-----
I have a very specific question.

I have a table with numeric values in field 3 & 4. I
need to multiply these fields to create an additional
field in the same table.
.
Storing a derived value into the table is generally
against the norm of relational database. You could get the
result when you retreat them by:
Select field3, field4, field3*field4 as multipliedResult
from ...
That has been said, you could use make-table query to get
the product into your table.
 
S

Steve

So my table, which is already propogated, is
called 'sides', and the 2 fields in 'sides' I want to
multiply are called 'x' and 'y', and need a table that
will give me product of x & y.

Is this code correct?

SELECT
sides.[x],
sides.[y],
sides.[x]*sides.[y] as multipliedResult
from sides;

What is the best recommendation, to create a new table,
through a select query? Or is there another option.

KISFS (keep it simple for stupid)

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top