Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2004
    Posts
    2

    Unanswered: Grouping Select Statements with where clause

    Hello

    What I need to do is be able to group the results of my select statements in different columns. And end having the result work like this.


    campaign Col1 Col2

    <<Data>> <<Select counT(*) where field= value>> <<Select counT(*) where field= value>>

  2. #2
    Join Date
    Jun 2003
    Location
    Ohio
    Posts
    12,592
    Provided Answers: 1
    No you don't. You just think you do. What you really want to do is create a CROSSTAB query. Look it up in Books Online.
    If it's not practically useful, then it's practically useless.

    blindman
    www.chess.com: "sqlblindman"
    www.LobsterShot.blogspot.com

Posting Permissions

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