DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3

Thread: Access And Sql

  1. #1
    Join Date
    Sep 2005
    Posts
    2

    Question Access And Sql

    Please help me out with this query. I am new and desparate for help:

    I have a table such as this one:

    ACCT DATE RANK
    119 5/8/2005 4
    145 5/11/2005 4
    145 8/10/2005 6
    145 4/18/2005 4
    146 9/17/2005 6
    146 7/16/2005 7
    146 8/2/2005 6
    147 9/12/2005 4
    147 9/11/2005 4
    147 4/6/2005 3
    147 7/6/2005 4
    150 12/29/2004 4
    153 4/10/2005 2
    153 3/28/2005 4
    153 2/13/2005 2

    I need to group by ACCT and showing just the lowest RANK along with the date that is associated with that RANK (Using the earliet date, if possible). Please, how can I do that?


    Thank you in advance for any assistance.

  2. #2
    Join Date
    Sep 2005
    Posts
    1
    first of all the field DATA must be Date/Time type
    make a select query with ACCT and DATA fields
    choose Totals from View and select GroupBy for ACCT and Min for Data.
    Run the query
    The result must be a value for ACCT and the earliest data for DATA field.
    good luck

  3. #3
    Join Date
    Sep 2005
    Posts
    2
    I'll give it a try Monday and let you know. Thanks for the help.

Similar Threads

  1. access vs SQL Server
    By Ray Clough in forum Database
    Replies: 7
    Last Post: 09-06-2001, 02:27 PM
  2. Access & SQL Server
    By David Jones in forum Database
    Replies: 0
    Last Post: 08-31-2001, 12:22 PM
  3. Replies: 0
    Last Post: 11-20-2000, 05:37 AM
  4. Replies: 0
    Last Post: 11-20-2000, 05:32 AM
  5. SQL server administrative knowledge
    By Becky in forum Database
    Replies: 1
    Last Post: 07-11-2000, 03:27 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links