Solved

crosstab to find the most recent and oldest dates?

Posted on 2012-03-26
3
364 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
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 …
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

738 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