HI!
My tblenrolk12 has the following fields. LastName, FirstName, MI, SubjectName, FG1, etc...
In my tblegradek12 I have LastName, FirstName, MI, Music, Arts, PE, Health, etc...
These 4 (Music, Arts, PE, Health) were actually a SubjectName field records in tblenrolk12. I created it like
Now, I want to compute for the grade of the four subjects by getting 25% of each and have it as MAPEH grade.
I tried this code but its not working at all
My tblenrolk12 has the following fields. LastName, FirstName, MI, SubjectName, FG1, etc...
In my tblegradek12 I have LastName, FirstName, MI, Music, Arts, PE, Health, etc...
These 4 (Music, Arts, PE, Health) were actually a SubjectName field records in tblenrolk12. I created it like
VB.NET:
CREATE TABLE [dbo].[tblGradeK12](
[IDNo] [nvarchar](10) NOT NULL,
[LastName] [nvarchar](50) NULL,
[FirstName] [nvarchar](50) NULL,
[MI] [nvarchar](3) NULL,
[Music] [numeric](5, 0) NULL,
[Arts] [numeric](5, 0) NULL,
[PE] [numeric](5, 0) NULL,
[Health] [numeric](5, 0) NULL
Now, I want to compute for the grade of the four subjects by getting 25% of each and have it as MAPEH grade.
I tried this code but its not working at all
VB.NET:
UPDATE tblgradeK12
SET [MAPEH] =((MUSIC * .25) + (ARTS * .25) + (PE * .25) + (HEALTH * .25))