SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 SQL
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

angela_g
Starting Member

United Kingdom
17 Posts

Posted - 09/18/2013 :  09:57:41  Show Profile  Reply with Quote
Hi Can someone tell me where I am going wrong with this please?
UPDATE RE_EZPAY_AT_AGENCY_DAILY
SET RE_EZPAY_AT_AGENCY_DAILY.STATUS ='H'
SELECT RE_EZPAY_AT_AGENCY_DAILY.STATUS, RE_EZPAY_AT_AGENCY_DAILY.DEBT
FROM RE_EZPAY_AT_AGENCY_DAILY;
WHERE RE_EZPAY_AT_AGENCY_DAILY.DEBT >250
AND RE_EZPAY_AT_AGENCY_DAILY.STATUS ='O';

SwePeso
Patron Saint of Lost Yaks

Sweden
30106 Posts

Posted - 09/18/2013 :  10:02:28  Show Profile  Visit SwePeso's Homepage  Reply with Quote
UPDATE	RE_EZPAY_AT_AGENCY_DAILY
SET	STATUS = 'H';

SELECT	STATUS,
	DEBT
FROM	RE_EZPAY_AT_AGENCY_DAILY;  --< Remove ; here
WHERE	DEBT >250
	AND STATUS ='O';



Microsoft SQL Server MVP, MCT, MCSE, MCSA, MCP, MCITP, MCTS, MCDBA
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000