RE: Query help !



Hello Ronny,

Pls clarify the %age against the
- total records count in table or
- Total records counts in SYS.Client_Version0
As you are using 2 columns in your select query

For first case solution is already provided.
But for secound case , find the query

SELECT SYS.Client_Version0,
SYS.Client_Type0, ((count(*) * 100)/( SELECT count(*) FROM v_R_System as
Sub_SYS WHERE SYS.Client0=1 and Sub_SYS.Client_Version0 =
SYS.Client_Version0)) as 'Percentage'
FROM v_R_System as SYS
WHERE SYS.Client0=1
group by SYS.Client_Version0, SYS.Client_Type0
order by SYS.Client_Version0, SYS.Client_Type0

(Untested)



"Ronny de Jong" wrote:

> Dear all,
>
> I'd like to display the result of this query in percentage:
>
> SELECT SYS.Client_Version0, SYS.Client_Type0, count(*) as 'Count'
> FROM v_R_System as SYS
> WHERE SYS.Client0=1
> group by SYS.Client_Version0, SYS.Client_Type0
> order by SYS.Client_Version0, SYS.Client_Type0
>
> Any idea's how,
>
> I appreciate your help....
> Ronny
.



Relevant Pages

  • Re: Query help !
    ... >I'd like to display the result of this query in percentage: ... Hi Ronny, ... FROM v_R_System as SYS ...
    (microsoft.public.sqlserver.mseq)
  • Re: COUNTING RECORDS
    ... me to use a real e-mail address in public newsgroups. ... GlobalSign digital certificate is a forgery and should be deleted without ... > How can I have Access count the total records found under a query. ...
    (microsoft.public.access.queries)
  • Re: Creating query based on no-match
    ... The second will show all Total records that have no match in Cost_Service. ... CLAIMS INNER JOIN INSURANCE ON CLAIMS.Provider = Insurance.Provider ... ... --Switch back to Design view ... Run the query and see if you get the results you want. ...
    (microsoft.public.access.queries)
  • Re: calculating count in textbox
    ... I have included in the report a label "total records" next to ... > would like a number indicating the records from the query, ...
    (microsoft.public.access.reports)
  • Count in a Query
    ... I have a query that counts how many records meet a criteria. ... Criteria from a form field ... The result gives me the total records for the specified date. ...
    (microsoft.public.access.queries)