I have a query that returns records if found values in the IN clause. The matched records my vary from 0 to 1 and so thus the result of the query. But I want make the count as 5, even if rest rows are filled with NULL. Is there any way I can achieve this? As, for the given query
SELECT categoryID, categoryName
FROM category
WHERE categoryID
IN ( 52, 58, 60 , 62 , 64)
I have values for the first 3 ids only and thus the result gives me 3 rows only. But I want the count of result to be 5 and the rest non-satisfying rows filled with null values to make the count. The current result:
CategoryID CategoryName
52 ABC
58 XYZ
60 DEF
The required result
CategoryID CategoryName
52 ABC
58 XYZ
60 DEF
NULL NULL
NULL NULL