My SQL experience is pretty limited, sorry if this is a
REALLY basic question.
I have a database of bibliographic records. Each record is
of a certain type as recorded in a Type field: books, articles,
dissertations, reviews, etc. When a user searches the database
I'd like to return a overview of results, by type:
Your search retrieved 291 records:
41 articles
2 dissertations
8 reviews
Of course clicking on each group will yield the records of
that particular Type. Ideally I guess I'd like a query generic
enough to handle any number of different Types. That is it
would include obituaries someday if any of those were added
without any changes to the SQL. Barring that, a query that
explicitely included each Type and would be updated whenever
a new Type was added is acceptable.
I've heard about, but never used, SQL keywords like UNION and
GROUP BY and weird things like that. Would this be maybe a
good way to finally learn how to use these SQL features?
I'm working in Access 2000 via ADO. Moving to SQL Server is
a possibility if Access proves inadequate.
Thanks