1
我在TSQL中看起来像这样的大表中有一个XML列,我如何计算属性(LCPID)发生的次数?统计属性的出现次数?
感谢,
代码:
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<PingAutoRequest xmlns="http://Reply.LeadMarketPlace.Services.Ping.ServiceContracts/2007/10/ServiceContracts">
<AutomotiveLead>
<LCPId>766</LCPId>
<Zipcode>33544</Zipcode>
<Make>Ford</Make>
<Model>Escape</Model>
<LeadType>New</LeadType>
<Year>2013</Year>
<Trim>FWD S</Trim>
<ExteriorColor />
<InteriorColor />
<Transmission />
<TradeIn>false</TradeIn>
<LastFourPhoneDigits />
<LastName />
</AutomotiveLead>
</PingAutoRequest>
</soap:Body>
</soap:Envelope>