sql - Microsoft Access 2003 - creating a separate field that totals 5 other fields from the table -


This is what I have done in the SQL code ... ........

 Select [code] DISTINCTROW [OEE / A Query]. [SumEfLabor Hours]] [sumOfLabor Hours of Yoga], Yoga ([OEE / A Query]. [SumOfGood Pieces]) [SumOfGood Yoga of Sum], Yoga ([OEE / [Quote] [SumOfSumOfMachine Hours], Sum ([OE / A Query]. [Total part time earned] [Quantity] ]) [SumOfTotal Parts Hours earned], Yoga ([OEE / A Query]. [Expected Stand PCS] [OEE / A Query] by [OEE / A Query] Group [Standard PCS Expected]. Press ;  

I How do I add D to another field which uses 5 different fields?

Here I think it may look like this but I'm not sure .. SUM (straight), SM (straight) , From SM (Shine), SM (standardization), SM (Sasten), SAM (sorting), [shift report table];

It really depends on what you are asking. I am not sure whether your second query is just another example, or if this is the real To add a separate data source in your first question.

If you want to add another column to your first query, by column, which is already present in your query, yes, just add them together, as CK is called.

> Select the amount (column 1 + column 2) as sum_c1_c2

When the total work is done I have an old habit of handling tap values, to ensure that For that I'm getting the result, I think I should get it, for example as sum_c1_c2

for example

  choose the amount (nz Column1,0) + nz (column2,0)) Now if you are asking how New column from a different data source, you can either join other data sources, or, if return only one value, you can use inline selection  

Also, about specific One word of warning in - I do not know if you want to use that in your query. You are doing a group, so for [press] only unique values ​​will be selected with the columns collected according to your SUM () function. It is certain that if order (for example) a product has been ordered such as

  choose DISTINCTROW to order products for products from order in order to join the order. Productive = products. Manufacturer  

will return only 1 row, so there is no chance for any aggregation in the above case.

But you may want to clarify your need a bit more. CK may have already responded, or, we may need to include a separate data source (such as your second query).


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -