+ Reply to Thread
Results 1 to 2 of 2

Database Structure

  1. #1
    Registered User
    Join Date
    03-17-2009
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2003
    Posts
    15

    Database Structure

    Hi,

    Please be patient with me! I'm looking for the best way to structure a database. Here is a snapshot of a simple way to enter the data

    Master Part # Competitor Name Competitor Price Competitor part #
    123 Brand X 12.34 abc
    123 Brand Y 8.85 xyz
    456 Brand Y 12.86 def
    456 Brand Z 7.34 fed
    789 Brand X 7.95 qwerty
    789 Brand Z 23.40 azerty

    Ultimately, I want to be able to present the data under this format (Spreadsheet style) and export it to Excel.


    Competitor X Competitor Y Competitor Z
    Master Part # Part # Price Part # Price Part # Price
    123 abc 12.34 XYZ 8.85



    I'm opened to suggestions...

    Should I simply structure the table the way I want the final result to look like?

    Thanks

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: Database Structure

    Add a unique identifier in your table as your primary key. It should be an autonumber. Set your table to resemble your input table as shown in your example.

    To get the data to look like you want, you will need to build a cross tab query.

    I would urge you to create a form for the input of data if this is something that you will distribute to users. If you already have the data in an excel sheet then you can import the data to table and run your cross tab query against the data.

    Here is an example tutorial on building cross tab queries.
    http://www.datapigtechnologies.com/f.../crosstab.html

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1