hi freindsi have problem.i have 3 tables student,studentcategory,award.i want to find students that have special category and insert their id in award table.CREATE TABLE [dbo].[student]( [id] [int] NOT NULL, [name] [nchar](10) NOT NULL, [studentcategoryid] [int] NOT NULL) ON [PRIMARY]insert into student values(1,'st1',1)(2,'st2',1)(3,'st3',1)
student category tableCREATE TABLE [dbo].[studentcategory]( [id] [int] NOT NULL, [name] [nchar](10) NOT NULL) ON [PRIMARY]insert into studentcategory values(1,'art')(2,'accounting')
award tableCREATE TABLE [dbo].[award]( [id] [int] NOT NULL, [studentid] [nchar](10) NULL) ON [PRIMARY]
i want insert in award table for students that their studentcategoryid are "1"please help me.thanks