I have the database below its table name is marked,
please help me a code to create another table below
SELECT [ID] , sum([physics])
FROM [mark]
GROUP BY [ID]
Just add two more fields:
SELECT [ID] , sum([physics]), sum([math]), sum([sum])
FROM [mark]
GROUP BY [ID]
If you want to create a table use following script:
CREATE TABLE new_table AS
SELECT [ID] , sum([physics]), sum([math]), sum([sum])
FROM [mark]
GROUP BY [ID]