Re: access sql question

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Duane Hookom (duanehookom_at_NoSpamHotmail.com)
Date: 09/01/04


Date: Wed, 1 Sep 2004 08:34:06 -0500

How about providing a couple samples of existing records with table and
field names and then how you would expect them to be appended to a new
table?

-- 
Duane Hookom
MS Access MVP
--
"esta" <esta@discussions.microsoft.com> wrote in message
news:C71C5130-39B2-4166-8669-1AAD5C66B0D8@microsoft.com...
> could someone give me assistance with this query?
> I need to select records from a table where FIELD A in REC 1 is equivalent
> to FIELD b in REC2.   If fields match I need to combine (sum) numeric
fields
> in these records and create one "total" record and insert that record into
a
> new table.   I am new to SQL and am having difficulty.   I know the GROUP
bY
> statement will combine like fields, but the fields that I am comparing are
> not the same fields.  ANy ideas?  Thanks!


Relevant Pages

  • RE: Calculated fields in main form based on criteria in sub form
    ... I've changed the SQL by droping the WHERE statement and setting GroupBy to ... NE Sum Query (uses information from the subform, ... other queries differ in what Quadrant equals) ...
    (microsoft.public.access.forms)
  • Re: Bad Performance on Semiadditive Measures
    ... Is there some fix regarding this problem in SQL 2005 SP1? ... usually LastNonEmpty and AverageOfChildren would be somewhat ... slower than Sum, but faster than equivalent hand-crafted MDX. ...
    (microsoft.public.sqlserver.olap)
  • Re: While I am on a roll
    ... The problem is with the calculated expression PercentVar which doesn't ... By putting ISNULL (or the Standard SQL function COALESCE) outside of the SUM ... in a SQL database IMNSHO. ...
    (microsoft.public.sqlserver.programming)
  • Re: Which method would be faster?
    ... you maintain lets say latest SID in separate table? ... corresponding SUM. ... a timestamp column; these are automatically updated with a monotonically ... why I think Change Tracking in SQL 2008 would be a better option. ...
    (microsoft.public.sqlserver.programming)
  • updating
    ... I'm trying to build a shopping cart app using a db the part I'm stuck ... I've got it set up to check whether the size and colour fields match ... the same colours and size so, only update the quantity field, if they ... //create sql insert ...
    (microsoft.public.inetserver.asp.general)