Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Another simple question, this time a constraint.

Status
Not open for further replies.

kamazon

MIS
May 21, 2007
13
US
Using the CBT Nuggets SQL 2000 training video, we created a constraint to limit the "State" field in a "Orders" Database to be limited to only PA, NY, and NY. Looking at the constraint through Enterprise Manager, I see this listed:

([State] = 'PA' or ([State] = 'NJ' or [State] = 'NY'))

Could anyone please tell me why there is a 2nd set of parenthesis after the first "or"? Thanks!

 
obfuscation? misdirection? skullduggery? scalliwaggery?

as you have guessed, they aren't needed



r937.com | rudy.ca
 
Phew, thanks. I was getting pretty confused. ^.^
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top