...
Code Block |
---|
select ipar.IPAddressRangeId, ipar.Name, ipart.Name as TargetSetType, StartIPAddress, EndIPAddress, jobs.convertBinaryToIP(aip.Start) as ActiveIPRangesStart, jobs.convertBinaryToIP(aip.Finish) as ActiveIPRangesFinish, aip.LocationID, ProjectID, case jobs.convertBinaryToIP(aip.Finish) when EndIPAddress then 'Fully Expanded' else 'In Progress' end as [State] from [jobs].[t_ActiveIPRanges] aip with (nolock) inner join config.t_IPAddressRange ipar with (nolock) on aip.IPAddressRangeID = ipar.IPAddressRangeID inner join config.t_IPAddressRangeType ipart with (nolock) on iparipart.IPAddressRangeTypeID = ipar.IPAddressRangeTypeID |
...