Skip to content
  • Home
  • About
Search
Close

Problems on Information and Computer Technology

Masalah ICT dan solusinya…ada disini!

Day: April 2, 2015

MySQL SUM() function dengan GROUP BY

April 2, 2015 ictproblemsLeave a comment

MySQL SUM() function retrieves the sum value of an expression which has undergone a grouping operation by GROUP BY clause.

SELECT cate_id,SUM(total_cost)
FROM purchase
GROUP BY cate_id;

example-aggregate-functions-and-grouping-sum-with-group-by

Source: http://www.w3resource.com/mysql/aggregate-functions-and-grouping/aggregate-functions-and-grouping-sum-with-group-by.php

Categories

RSS OTO.DETIK.com

  • An error has occurred; the feed is probably down. Try again later.

RSS

  • RSS - Posts

Meta Tags

  • Create account
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com

Posts Calender

April 2015
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
27282930  
« Mar   May »
Create a free website or blog at WordPress.com.
Back to top
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • Problems on Information and Computer Technology
    • Already have a WordPress.com account? Log in now.
    • Problems on Information and Computer Technology
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...
 

    Design a site like this with WordPress.com
    Get started