• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Simple SQL 2000 "OR" issue

KAMAZON

Golden Member
Hello, I am at the end of chapter 2 of SQL For Beginners and we are pretending that 2 states have merged into 1 megastate. I have to update our 2 tables that hold State info to reflect this change. Here is the query:


UPDATE MemberDetails
SET State = 'Mega State'
WHERE State = 'Stateside' or 'New State'


That does NOT work.



If I change it to read:

UPDATE MemberDetails
SET State = 'Mega State'
WHERE State = 'Stateside'

then also run:

SELECT STATE FROM MemberDetails

UPDATE MemberDetails
SET State = 'Mega State'
WHERE State = 'New State'


Everything works fine! Anyone have any suggs?
 
I've only really started to work with SQL over the past two months... its been a rough time for me, to say the least... Glad to help! 🙂
 
Back
Top