A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Please help me with the design of this database



 
 
Thread Tools Display Modes
  #1  
Old January 19th, 2007, 08:27 PM posted to microsoft.public.access.tablesdbdesign
Amaretto
external usenet poster
 
Posts: 3
Default Please help me with the design of this database

Hi guys, im new to Access and have this problem.

Ok, Ive got two reports.

One is a stock level count which is held internally, which we beleive to be
correct.

The second has the same fields but are filled in by companies we supply to.

Im trying to design a database which automatically (upon query) picks out
differences between the Fields (Product,Price and quantity)

The product is always going to stay the same between the two reports, but I
need to be told in which records the Price and Quantity differ.

Is this possible and what type of queries would i need to input!
  #2  
Old January 19th, 2007, 11:42 PM posted to microsoft.public.access.tablesdbdesign
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Please help me with the design of this database

You posted in a newsgroup that supports the design of data tables and
databases, but your description mentions your reports more than the
underlying data.

The first place to start in designing a well-normalized relational database
is to identify the things about which you want to keep information
("entities") and figure out how those things are related one-to-another
("relationships"). You can do this with paper and pencil, without ever
turning on your computer.

When you have a good handle on the entities, and what pieces of information
you want to save about each, you are ready to start designing tables in
Access.

Or perhaps you can locate a template at Microsoft.com that gives you a start
at designing your database?

Good luck on your project!

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Amaretto" wrote in message
...
Hi guys, im new to Access and have this problem.

Ok, Ive got two reports.

One is a stock level count which is held internally, which we beleive to
be
correct.

The second has the same fields but are filled in by companies we supply
to.

Im trying to design a database which automatically (upon query) picks out
differences between the Fields (Product,Price and quantity)

The product is always going to stay the same between the two reports, but
I
need to be told in which records the Price and Quantity differ.

Is this possible and what type of queries would i need to input!



  #3  
Old January 20th, 2007, 02:07 AM posted to microsoft.public.access.tablesdbdesign
John Vinson
external usenet poster
 
Posts: 4,033
Default Please help me with the design of this database

On Fri, 19 Jan 2007 12:27:29 -0800, Amaretto
wrote:

Im trying to design a database which automatically (upon query) picks out
differences between the Fields (Product,Price and quantity)

The product is always going to stay the same between the two reports, but I
need to be told in which records the Price and Quantity differ.

Is this possible and what type of queries would i need to input!


If you can RELIABLY count on the Product being the same between the
two tables, this isn't hard. If you have a product *name* - especially
if your coworkers are typing the name in - then that's very doubtful!
A "Left-handed 8mm widget" is not the same as a "Lefthanded 8 mm
widget".

But given a reliable (preferably numeric uneditable) primary key on
both tables, you can simply create a Query joining the two tables on
Product. Include the Price and Quantity fields from both tables. As a
criterion on the Price field in the second table put

[First Table].[Price]

and on the next line down under Quantity put

[First Table].[Quantity]

The second line uses OR logic. Use your own tablenames of course.

John W. Vinson[MVP]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:45 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.