More

How Can I Pivot a Table in Microsoft Access?

It used to be possible to pivot tables in older versions of Microsoft Access (Access 2010). The option to pivot tables seems now to have been removed. Furthermore, the SQL PIVOT operator does not appear to be supported by MS Access. So what are my options if I wish to pivot my data in an Access database?

Specifically, my problem is this:
I have a ‘Contacts‘ table in my Access database which contains names, addresses, etc of my contacts, EXCEPT all phone numbers are stored in a separate ‘PhoneNumber‘ table. This is because I want to give descriptions to each number. So there are four columns in the PhoneNumbers table:

  1. NumberID (Primary Key)
  2. Contacts ID (Foreign Key)
  3. Description (eg: ‘Mobile’, ‘Home’, ‘Work’)
  4. PhoneNumber

The two tables are inner joined on contactID.

I wish to display all my records from the ‘Contacts‘ table together with the ‘Description’ field from the ‘PhoneNumbers‘ table appended to this dataset.

The entries from the ‘PhoneNumber‘ field of the ‘PhoneNumbers‘ table, I wish to be presented as record entries inside the Description field. This can be done using SQL PIVOT and using MAX(PhoneNumber) as the aggregating function -But, PIVOT does not appear to be supported in MS Access. Am I right? If so, how can I achieve my aim?

Steffy Alen

Share
Published by
Steffy Alen

Recent Posts

Eating Out in Llandudno: A Delicious Coastal Dining Experience

If you're planning a trip to the North Wales coast, the best eating out Llandudno…

2 days ago

Milwaukee Limo Service: Luxury Transportation in Wisconsin’s Largest City

Milwaukee, Wisconsin's largest city, has seen significant growth in its luxury transportation sector over the…

1 week ago

Milwaukee Limo Service: Luxury Transportation for Every Occasion

Milwaukee, Wisconsin's largest city, offers a blend of urban sophistication and Midwestern charm that makes…

1 week ago

Find the Supreme Rinjani Trekking Journey Experience

Introduction to the Rinjani Trekking Tour Mount Rinjani, status majestically at three,726 meters above sea…

2 weeks ago

Prioritizing Health and Comfort in a Fast-Paced World

In our constantly connected, excessive-stress society, many humans locate themselves walking from one undertaking to…

4 weeks ago

Why Gut Health Matters for Dogs: Vet-Approved Tips for a Healthy Tummy

When it involves a dog’s ordinary proper-being, intestine health often goes disregarded. Many pet proprietors…

4 weeks ago