Solved

crosstab to find the most recent and oldest dates?

Posted on 2012-03-26
3
362 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

773 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