sql server 2005 focus opposite array columns
i am operative set information looks something following.
studentname | assignmentname | grade
---------------------------------------
studenta | assignment 1 | 100
studenta | assignment 2 | 80
studenta | sum | 180
studentb | assignment 1 | 100
studentb | assignment 2 | 80
studentb | assignment 3 | 100
studentb | sum | 280
the name array assignments dynamic, i need law simlilar following.
student | assignment 1 | assignment 2 | assignment 3 | total
--------------------------------------------------------------------
student | 100 | 80 | zero | 180
student b | 100 | 80 | 100 | 280
now ideally i arrange buttress formed "due date" included/associated any assignment. sum should during finish illusory (it distributed private query possible.)
i know 3 assignments controlling focus simply controlling columns, perplexing enterprising heed i haven't found good fortitude yet. i am perplexing sql server 2005
edit
ideally i exercise but controlling enterprising sql, opposing policy. isn't possible...then operative instance enterprising sql work.
Comments
Post a Comment