With AND, both comparisons must be true for the same row. A failed deployment can occur in several environments.
SELECT id FROM deployments
WHERE environment = 'staging' AND status = 'running';Use AND to find failed deployments in production. Show id and service.