I have this content in my XML Sql column as you can see :
<LabelRequestInputParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Count>100</Count>
<ConfirmedCountByMunicipality xsi:nil="true" />
<ConfirmedCountByProvincialGovernment xsi:nil="true" />
<ConfirmedCountBySymfaExpert xsi:nil="true" />
<TypeOfLabelDelivery>Post</TypeOfLabelDelivery>
<TypeOfLabel>Public</TypeOfLabel>
<NextState>Municipality</NextState>
</LabelRequestInputParameters>
I want to select all node with count=100
declare @a nvarchar(max)
set @a='100'
select InputParameter.value(N'(/LabelRequestInputParameters/Count[@Count=(sql:variable("@a"))])[1]', 'Bigint') from Requests
But when i run this query all value is null :