Q

Getting prices for customers in Access

The problem I get here is I am designing a database entry for my project. My paper needs to have different prices for different customers in the database (Access). However, I do not know how to set it up. This means that each customer has its own price; therefore, what the owner needs to do is just input the quantity, click the customer's name, so, how can I do that? Do I need to use Visual Basic or SQL to design it?

You can design this in several different ways, depending on the complexity of your underlying problem. The simplest schema that meets the criteria you described is to put the cost column in the customer table. You can then compute the cost of an order by fetching the price from the customer row and multiplying by the quantity.

As an observation, this design is very simple minded. It doesn't support his tory, it doesn't support customer classes, and it just meets the requirements in your original question. If you have additional constraints, please post a message in the SearchDatabase forums to allow for some dialog about what else you need for your solution.

For More Information

  • What do you think about this answer? E-mail the editors at editor@searchDatabase.com with your feedback.
  • The Best Database Design Web Links: tips, tutorials, scripts, and more.
  • Have an Oracle or SQL tip to offer your fellow DBAs and developers? The best tips submitted will receive a cool prize. Submit your tip today!
  • Ask your database design -- or help out your peers by answering them -- in our live discussion forums.
  • Ask the Experts yourself: Our SQL, database design, Oracle, SQL Server, DB2, metadata, object-oriented and data warehousing gurus are waiting to answer your toughest questions.

This was first published in May 2002
This Content Component encountered an error

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close