Hw Filtering is possible in sql