CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2002
    Posts
    4

    2 problems with SQL statments

    Last edited by DanyDin; May 19th, 2002 at 11:35 AM.

  2. #2
    Join Date
    Feb 2001
    Location
    teh INTARWEB
    Posts
    542

    Red face

    homework problems?

  3. #3
    Join Date
    Nov 2000
    Location
    Sofia, Bulgaria
    Posts
    56

    Arrow

    the simpliest way for point 1:

    select count(*), 'Group 1' from article where sell_pr between 0 and 100
    union
    select count(*), 'Group 2' from article where sell_pr between 101 and 200
    union
    select count(*), 'Group 3' from article where sell_pr between 201 and 300;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured