You execute the following code: You need to select the task that has an IsFinished value of true from the Project that has an Id value of 1. Which code segment should you use?
You execute the following code: You need to select the task that has an IsFinished value of true from the Project that has an Id value of 1. Which code segment should you use?
Apologise if you do what I just said and add some false data it will also take everything from the task attribute . so finally no right answer here but the nearest is B
None answer is correct.
Answer B will return “true” value not the task element.
query(‘//Task[idFinished=”true”]’)
A and C are wrong
For variable @ should be use so B is wrong
D is correct
The D is not correct because there is @ which selects attribute.
IsFinished is element.
the xml code first is crappy and wrong ..
here is the answer it s case sensitive . need to be careful
Select details.query(‘//task [isfinished= “true”]’) from projects where projects.id = 1
Apologise if you do what I just said and add some false data it will also take everything from the task attribute . so finally no right answer here but the nearest is B
?