We help IT Professionals succeed at work.

PROBLEM QUERY

298 Views
Last Modified: 2013-11-16
HAVE A PROBLEM WITH THIS QUERY

UPDATE CONSOLIDADO_CORRIDAS SET SUMADEINBOX  =  
(
SELECT Sum(Corridas.VOLESPE) AS SumaDeVOLESPE
FROM Corridas
WHERE (((Corridas.[CUENTA SIX])='PUBLIDISA'))
GROUP BY Corridas.[CUENTA SIX]);

HAVE AN ERROR "THE OPERATION MUST USE AN UPDATABLE QUERY"

IT'S RARE
Comment
Watch Question

If that is the SQL you are using, you are missing an end bracket
CERTIFIED EXPERT
Top Expert 2011

Commented:
more like

UPDATE CONSOLIDADO_CORRIDAS
   SET SUMADEINBOX  =  
        (SELECT Sum(VOLESPE)
           FROM Corridas
          WHERE [CUENTA SIX]='PUBLIDISA'
         )
 WHERE [CUENTA SIX]='PUBLIDISA'

probably...

you presumably need to (co-)relate the two queries/tables together...

Author

Commented:
I PROBE THE FIRST OPTION ADDING AND END BRAKET BUT THE SYSTEM TELL ME I HAVE AN EXTRA BRAKET....


I PROBE ALSO SECOND OPTION AND SYSTEM TELL ME "THE OPERATION NEEED AN UPDATABLE QUERY"

STILL NOT CORRECT THANKS
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.