A CTE way of doing it
-- Create a variable as table
DECLARE @Fruit TABLE (
ID INT,
Name varchar(25)
)
-- Populate the table with sample data
INSERT INTO @Fruit(ID, Name)
VALUES
(101,'Apple')
,(102,'Banana')
,(103,'Orange')
,(104,'Melon')
,(105,'Grape')
-- Lets us create two...