Re: Srvey query help needed

From: Gerald Stanley (gcstanley_at_dsl.pipex.com)
Date: 03/31/04


Date: Wed, 31 Mar 2004 03:44:44 -0800

If you were to change the design of this table to hold only
one resolution number and result on a row, then the query
you are after would be very simple e.g.

SELECT [resolution number], [resolution result], count(1)
FROM Proxy GROUP BY [resolution number], [resolution result]

Hope This Helps
Gerald Stanley MCSD
>-----Original Message-----
>I have a table called Proxy which looks like this:
>
>Resolution2 Resolution3 Resolution4a
> Resolution4b Resolution4c Resolution4d
>FOR FOR AGAINST FOR FOR FOR
>NONE NONE NONE NONE NONE NONE
>FOR FOR FOR FOR FOR FOR
>FOR FOR FOR AGAINST FOR AGAINST
>
>I need to build a query that will show me total FOR,
>AGAINST etc. under Resolution2. 3, 4a etc.
>
>I can build a query for each Resolution which counts up
>the total but I'm lost when combining the whole lot
>together so that I can develope a form to show the results
>
>.
>



Relevant Pages

  • Re: DNS is slow
    ... This is the wrong query because it will first query for ... DNS cache on the client before the second query? ... Do you want to say that "name resolution via Internet Explorer is ... Wireshark is the way to go. ...
    (microsoft.public.windows.server.dns)
  • simple SQL query problem...
    ... I could do with a little help on a sql query. ... browser and resolution they are using. ... can't seem to get it to work with the distinct keyword or group by. ...
    (microsoft.public.sqlserver.programming)
  • Re: Simple program cwitching thru all video-modes craps-out ...
    ... is no standard graphics-bios command for that. ... Use VESA mode query commands to determine modes and capabilities ... change when I select another resolution ...
    (comp.lang.asm.x86)
  • Re: Problem with Ranking
    ... Director of Text Mining and Database Strategy ... RelevantNOISE.Com - Dedicated to mining blogs for business intelligence. ... I have a problem with the ranking in my query.. ... 00004 in Resolution Description ...
    (microsoft.public.inetserver.indexserver)
  • Re: simple SQL query problem...
    ... > SELECT TOP 100 PERCENT resolution, COUNT(DISTINCT ipaddress) AS ... >> I could do with a little help on a sql query. ... >> Chris Dangerfield ...
    (microsoft.public.sqlserver.programming)