Click here to Skip to main content
15,887,596 members
Home / Discussions / Database
   

Database

 
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 
AnswerRe: Monitor connection pool - ODP.Net 10g Pin
Wendelius28-Jul-08 10:24
mentorWendelius28-Jul-08 10:24 
GeneralRe: Monitor connection pool - ODP.Net 10g Pin
Het210928-Jul-08 10:33
Het210928-Jul-08 10:33 
GeneralRe: Monitor connection pool - ODP.Net 10g Pin
Wendelius28-Jul-08 11:00
mentorWendelius28-Jul-08 11:00 
GeneralRe: Monitor connection pool - ODP.Net 10g Pin
Het210928-Jul-08 11:32
Het210928-Jul-08 11:32 
GeneralRe: Monitor connection pool - ODP.Net 10g Pin
Wendelius28-Jul-08 11:49
mentorWendelius28-Jul-08 11:49 
Questionquestion on size of relational DB Pin
Mohammad Daba'an28-Jul-08 9:02
Mohammad Daba'an28-Jul-08 9:02 
AnswerRe: question on size of relational DB Pin
Wendelius28-Jul-08 10:40
mentorWendelius28-Jul-08 10:40 
QuestionExecuteSql note responding Pin
krishnan.s28-Jul-08 2:59
krishnan.s28-Jul-08 2:59 
AnswerRe: ExecuteSql note responding Pin
Wendelius28-Jul-08 8:45
mentorWendelius28-Jul-08 8:45 
Questionupdate,delete,insert operations on the database table using ado.net in c# Pin
swapnamoturu28-Jul-08 2:02
swapnamoturu28-Jul-08 2:02 
AnswerRe: update,delete,insert operations on the database table using ado.net in c# Pin
Vimalsoft(Pty) Ltd28-Jul-08 6:25
professionalVimalsoft(Pty) Ltd28-Jul-08 6:25 
QuestionOracle NLS problem Pin
Muammar©27-Jul-08 23:35
Muammar©27-Jul-08 23:35 
AnswerRe: Oracle NLS problem (Solved!) Pin
Muammar©28-Jul-08 1:38
Muammar©28-Jul-08 1:38 
QuestionDeployment Related Issue Pin
sunil goyalG27-Jul-08 22:50
sunil goyalG27-Jul-08 22:50 

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.