Use BLOG
GO
declare @Fields table
(
Name varchar (25),
County varchar (25),
Crop varchar (25)
);
Insert into @Fields
(Name, County, Crop)
values
('Droske Quarter', 'Pembina', 'Potatoes');
Insert into @Fields
(Name, County, Crop)
values
('Nash Quarter', 'Walsh', 'Wheat');
Insert into @Fields
(Name, County, Crop)
values
('Cambell Half Section', 'Pembina', 'Navy Beans');
Insert into @Fields
(Name, County, Crop)
values
('Home 90', 'Pembina', 'Sugar Beets')
Insert into @Fields
(Name, County, Crop)
values
('Lysengen Quarter', 'Pembina', 'Potatoes')
select *
from @Fields
Friday, January 21, 2011
Selecting with a table variable
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment