Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft SQL Server > Re: SQL 2005 XM...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 10968 of 11421
Post > Topic >>

Re: SQL 2005 XML Searching

by "Plamen Ratchev" <Plamen@[EMAIL PROTECTED] > Apr 16, 2008 at 10:28 AM

Here is one way:

SELECT keycol, datacol
FROM Foo
WHERE datacol.exist('/details/attribute[@[EMAIL PROTECTED]
 = "2"]') = 1
    AND datacol.exist('/details/attribute[substring(@[EMAIL PROTECTED]
 1, 1) = "y"]')
= 
1;

HTH,

Plamen Ratchev
http://www.SQLStudio.com
 




 2 Posts in Topic:
SQL 2005 XML Searching
"zzzxtreme@[EMAIL PR  2008-04-15 22:11:38 
Re: SQL 2005 XML Searching
"Plamen Ratchev"  2008-04-16 10:28:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 22:31:19 CDT 2008.