Results 1 to 4 of 4

Thread: SQL Help

  1. #1

    Default SQL Help


    Unsaon pag.gama ani?



    Item
    Quantity


    Product A
    30


    Product B
    10


    Product A
    15



    To



    Item
    Quantity


    Product A
    45


    Product B
    10






  2. #2

    Default Re: SQL Help

    select Item, Sum(Quantity) AS Quantity from table_name group by 1 order by 1

  3. #3

    Default Re: SQL Help

    row groupings, groups sorting and using function SUM rana bro.

  4. #4
    Junior Member
    Join Date
    May 2007
    Gender
    Male
    Posts
    322

    Default Re: SQL Help

    For more details, search google for Group by or look for the help on SQL Server Books Online usually it is included when you install MS SQL, go to Index tab and type Group by. It has a well documented details on how to use Group by.

  5.    Advertisement

Similar Threads

 
  1. HELP VB6 and SQL how to's
    By The_Undertaker in forum Programming
    Replies: 15
    Last Post: 08-30-2008, 09:55 AM
  2. Need help regarding sql query
    By DeathFox in forum Programming
    Replies: 12
    Last Post: 07-22-2008, 06:41 PM
  3. SQL Server LOG FILE HELP!!!
    By duching11 in forum Software & Games (Old)
    Replies: 0
    Last Post: 06-10-2008, 02:57 PM
  4. Plz help me make an SQL Statement for this
    By DeathFox in forum Programming
    Replies: 3
    Last Post: 11-24-2007, 02:01 PM
  5. simple update using SQL. need help
    By romano2717 in forum Programming
    Replies: 1
    Last Post: 10-07-2007, 08:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top