Click here to Skip to main content
15,908,015 members
Home / Discussions / Database
   

Database

 
QuestionDataSet.xsd with relational tables Pin
Brendan Vogt29-Jul-08 3:33
Brendan Vogt29-Jul-08 3:33 
AnswerRe: DataSet.xsd with relational tables Pin
Vimalsoft(Pty) Ltd29-Jul-08 23:11
professionalVimalsoft(Pty) Ltd29-Jul-08 23:11 
AnswerRe: DataSet.xsd with relational tables Pin
Wendelius30-Jul-08 8:59
mentorWendelius30-Jul-08 8:59 
GeneralRe: DataSet.xsd with relational tables Pin
Brendan Vogt31-Jul-08 0:07
Brendan Vogt31-Jul-08 0:07 
GeneralRe: DataSet.xsd with relational tables Pin
Wendelius31-Jul-08 7:07
mentorWendelius31-Jul-08 7:07 
Questionquestion about autoincrement "identity" Pin
kimo code28-Jul-08 22:45
kimo code28-Jul-08 22:45 
AnswerRe: question about autoincrement "identity" Pin
Ashfield28-Jul-08 23:04
Ashfield28-Jul-08 23:04 
GeneralRe: question about autoincrement "identity" Pin
kimo code29-Jul-08 0:17
kimo code29-Jul-08 0:17 
GeneralRe: question about autoincrement "identity" [modified] Pin
Blue_Boy29-Jul-08 2:08
Blue_Boy29-Jul-08 2:08 
GeneralRe: question about autoincrement "identity" Pin
kimo code29-Jul-08 20:08
kimo code29-Jul-08 20:08 
GeneralRe: question about autoincrement "identity" Pin
Blue_Boy29-Jul-08 22:58
Blue_Boy29-Jul-08 22:58 
Questioncross tab query Pin
prithaa28-Jul-08 21:50
prithaa28-Jul-08 21:50 
AnswerRe: cross tab query Pin
prithaa28-Jul-08 21:53
prithaa28-Jul-08 21:53 
AnswerRe: cross tab query Pin
Ashfield28-Jul-08 23:05
Ashfield28-Jul-08 23:05 
GeneralRe: cross tab query Pin
prithaa30-Jul-08 5:25
prithaa30-Jul-08 5:25 
GeneralRe: cross tab query Pin
Ashfield30-Jul-08 22:04
Ashfield30-Jul-08 22:04 
Questionproblem with crosstab query Pin
prithaa28-Jul-08 21:34
prithaa28-Jul-08 21:34 
Questionlower and upper limit problem Pin
wajans28-Jul-08 11:32
wajans28-Jul-08 11:32 
AnswerRe: lower and upper limit problem Pin
Blue_Boy28-Jul-08 12:15
Blue_Boy28-Jul-08 12:15 
AnswerRe: lower and upper limit problem Pin
Blue_Boy28-Jul-08 12:35
Blue_Boy28-Jul-08 12:35 
AnswerRe: lower and upper limit problem Pin
PIEBALDconsult30-Jul-08 21:46
mvePIEBALDconsult30-Jul-08 21:46 
QuestionHelp understanding FLWOR modify statement Pin
David Mujica28-Jul-08 10:03
David Mujica28-Jul-08 10:03 
Here is what my XML document looks like.

<DATAMATRIX>
<FSDATAMATRIX>
<DM_OBJECT_TYPE>ITEM0</DM_OBJECT_TYPE>
<FIELD1>BELGIUM</FIELD1>
<FIELD2>BEVERAGES, NON-ALCOHOLIC</FIELD2>
<FIELD4>NO</FIELD4>
<FIELD5>YES</FIELD5>
</FSDATAMATRIX>
<FSDATAMATRIX>
<DM_OBJECT_TYPE>ITEM0</DM_OBJECT_TYPE>
<FIELD1>BRAZIL</FIELD1>
<FIELD2>CHEESE</FIELD2>
<FIELD4>NO</FIELD4>
<FIELD5>YES</FIELD5>
</FSDATAMATRIX>
</DATAMATRIX>

Using the following code snipet, I got the XMLDOC variable to update, but it will only update the field that previously had a value of "BELGIUM" to the value in my variable, @XMAXPPM.

SET @XMLDOC.modify('
replace value of (/DATAMATRIX/FSDATAMATRIX/FIELD1[.="BELGIUM"]/text())[1]
with sql:variable("@XMAXPPM")
')

How do I write a modify statement that will update FIELD2 to a value only when FIELD1 is "BELGIUM" ?

Thanks,
David
AnswerRe: Help understanding FLWOR modify statement Pin
leoinfo28-Jul-08 16:15
leoinfo28-Jul-08 16:15 
GeneralWorked ! Pin
David Mujica29-Jul-08 9:50
David Mujica29-Jul-08 9:50 
QuestionMonitor connection pool - ODP.Net 10g Pin
Het210928-Jul-08 9:39
Het210928-Jul-08 9:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.