Results 1 to 2 of 2
  1. #1
    marcusalie is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Apr 2011
    Posts
    2

    HELP in ACCESS QUERY


    Hi all

    I have a FIXEDASSET table with quite a number of columns in particular 'PC_TYPE', 'DEPARTMENT'

    This table has about 50 over records with PC_TYPE column filled with "desktop" and "laptop"

    how to i do a query for counting number of laptop and desktop for respective departments

    Department | Laptop | Desktop
    Mgmt 2 3
    IT 3 5

    my code:
    SELECT (count(PC_TYPE) as" Number of Desktop" FROM FixedAsset where PC_TYPE='desktop ') , select (count(PC_TYPE) as "Number of laptop",PC_USER_DEPARTMENT from fixedasset where PC_Type='laptop')
    group by PC_USER_DEPARTMENT;

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Please don't post the same question twice:

    https://www.accessforums.net/queries...ery-12505.html
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Access TOP VALUE in query
    By Carpy01 in forum Queries
    Replies: 8
    Last Post: 07-13-2012, 01:01 PM
  2. Replies: 10
    Last Post: 02-02-2011, 05:48 PM
  3. SQL Query in Access
    By DaveyJ in forum Queries
    Replies: 1
    Last Post: 06-17-2010, 12:26 PM
  4. Access Query help
    By hascons in forum Database Design
    Replies: 1
    Last Post: 12-13-2009, 11:38 PM
  5. Sql server query to MS access query
    By blazixinfo@yahoo.com in forum Queries
    Replies: 0
    Last Post: 07-07-2009, 08:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums