The problem is i need to perform this query about 85 times because the value '1001' is different for each entry. What is the right way of typing this SQL query to accomplish the above without having ...