Solved

crosstab to find the most recent and oldest dates?

Posted on 2012-03-26
3
363 Views
Last Modified: 2012-03-26
Hi,

I have a table like this.
authort(authorid, surname,givenname)
publicationT(publid, title, pubdate)
association(pubid, authorid)

I am trying to use the crosstab to find this
row: Authorid,
column: #of publication, earliest date (of publication),oldest date(of publication)

I am having alittle trouble with find the earliest and oldest.
Can I just use  FIRST and LAST?
I tried it but it errors out.
0
Comment
Question by:dkim18
3 Comments
 
LVL 120

Assisted Solution

by:Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1) earned 50 total points
ID: 37765911
better upload a copy of the db..
0
 
LVL 77

Accepted Solution

by:
peter57r earned 450 total points
ID: 37765924
You wouldn't use a crosstab for this.

Using the query design grid Just create a query that lists the authorid, title, and the publication date twice.
Convert this to a totals query by clicking the Totals button .
Change the GroupBy in Title to Count, the groupby in the pubdate columns to max and min.
0
 

Author Closing Comment

by:dkim18
ID: 37766151
You are right.<br />I don't need the crosstab.<br /><br />Thanks.
0

Featured Post

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question