Items not returned from a list

0

Please login or register to vote for this query.

(click on this box to dismiss)

Economics

Q&A for those who study, teach, research and apply economics and econometrics

CREATE TABLE #Test
(
  [Item] INT
)

INSERT INTO #Test ( [Item] ) VALUES (1)
INSERT INTO #Test ( [Item] ) VALUES (2)
INSERT INTO #Test ( [Item] ) VALUES (3)
INSERT INTO #Test ( [Item] ) VALUES (4)
INSERT INTO #Test ( [Item] ) VALUES (5)
INSERT INTO #Test ( [Item] ) VALUES (6)

SELECT
  *
FROM
  #Test
WHERE
[Item] IN (4, 5, 6, 7, 8)

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results