yes......sort of. It gave the the values but the tables don't really have a relationship.
I want to get this all on one query and without using a #temp table.
Here's what I have so far but it's not accurate because not all the VM's are returned....
SELECT *
FROM VPXV_VMS v
JOIN dbo.VPXV_VM_FIELDS f
ON v.VMID = f.VMID
WHERE [DESCRIPTION] NOT LIKE '%Template%'
AND FIELDID = 142
ORDER BY NAME ASC
If anyone has a working query please post.