MySQL Forums
Forum List  »  MySQL Query Browser

Re: Sql Query Needed
Posted by: Bergson Lima berg
Date: September 25, 2015 12:52AM

CREATE TABLE `test` (
`id` int(11) DEFAULT NULL,
`a` varchar(45) DEFAULT NULL,
`b` varchar(45) DEFAULT NULL,
`c` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

SELECT id,a,b,sum(c) FROM test.test
group by id;

Options: ReplyQuote


Subject
Written By
Posted
September 08, 2015 03:22AM
Re: Sql Query Needed
September 25, 2015 12:52AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.