473,473 Members | 1,975 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Help with converting a table and making a report.

Hi, couple of questions from a newbie:

First, I have a database with basically 3 tables:
Customer, which has cust#, name and address;
Items which has cust#, type, serial# and description;
Items can have duplicate records.
Orders which is not linked to either.
Orders has customer name, address and then 8x3 items fields: item 1
type, item 1 serial# and item 1 description... to item 8 description.

Being the most junior I have no control over the schema, or anything
else :-(.

I need to take the records from orders and items and put them into
orders. If there is more than 8 items, it makes another orders record
and the first item description will be 'order continued'. It's an access
database so I figure I'll be using VBscript or something. What's the
easiest way to do it?

Second problem.
I've got to make a report with 3 columns.
Item type can be either 'A' or 'B'.
The columns are:
Type 'A' | Serial# | Type 'B'

I've got to list the total type 'A' matching the serial #, then the
total of type 'B'.
Is there any easy way to do this?

I'm a Java programmer at heart, so all this is rather new and of course
I ave a very tight deadline :-)

many thanks,
Graheme.
Nov 12 '05 #1
1 1266
Hi Graheme,

Your Orders table is not normalized! You really do *NOT* want a structure that includes
item 1 type, item 1 serial# and item 1 description... to item 8 description.

Check out the short paper on database design by Mike Hernandez, available at:
http://www.datatexcg.com/DatabaseDes...DesignInfo.htm

Another paper, more in-depth, by the same author titled "Understanding Normalization":
http://www.eade.com/AccessSIG/downloads.htm

Also
http://support.microsoft.com/default...b;en-us;234208

You should redesign before attempting to tackle your second problem.

_________________________________________

"Graheme" <sp**@trap.com> wrote in message
news:MP************************@news.syd.swiftdsl. com.au...

Hi, couple of questions from a newbie:

First, I have a database with basically 3 tables:
Customer, which has cust#, name and address;
Items which has cust#, type, serial# and description;
Items can have duplicate records.
Orders which is not linked to either.
Orders has customer name, address and then 8x3 items fields: item 1
type, item 1 serial# and item 1 description... to item 8 description.

Being the most junior I have no control over the schema, or anything
else :-(.

I need to take the records from orders and items and put them into
orders. If there is more than 8 items, it makes another orders record
and the first item description will be 'order continued'. It's an access
database so I figure I'll be using VBscript or something. What's the
easiest way to do it?

Second problem.
I've got to make a report with 3 columns.
Item type can be either 'A' or 'B'.
The columns are:
Type 'A' | Serial# | Type 'B'

I've got to list the total type 'A' matching the serial #, then the
total of type 'B'.
Is there any easy way to do this?

I'm a Java programmer at heart, so all this is rather new and of course
I ave a very tight deadline :-)

many thanks,
Graheme.
Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Cherrish Vaidiyan | last post by:
hello googles, I have a small sqlplus problem. i have created a table with date field along with other varchar2,number etc. But unfortunately i made a mistake in entering the date. for some date...
3
by: Waqas | last post by:
Please see the detail of tables with fields in SQL server 2000. ·Table Student .Table Good Qualities ( It is a list of Students) (It is a list of Good Qualities)...
28
by: stu_gots | last post by:
I have been losing sleep over this puzzle, and I'm convinced my train of thought is heading in the wrong direction. It is difficult to explain my circumstances, so I will present an identical...
18
by: Jeremy Weiss | last post by:
I'm trying to build a database that will handle the monthly billing needs of a small company. I'm charting everything out and here's what I see: table for customers sub table to track payments...
6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
32
by: robert d via AccessMonster.com | last post by:
I'm looking at converting DAO to ADO in my app. All of my DAO connections are of the following structure: Dim wsName As DAO.Workspace Dim dbName As DAO.Database Dim rsName As DAO.Recordset ...
2
by: shenanwei | last post by:
DB2 V8.2 on AIX, type II index is created. I see this from deadlock event monitor. 5) Deadlocked Connection ... Participant no.: 2 Lock wait start time: 09/18/2006 23:04:09.911774 .........
3
by: Newbie | last post by:
I have two different levels of people who want to see my production report. We get orders which each call for one of five products. One level wants to see a spreadsheet type report with six...
2
blyxx86
by: blyxx86 | last post by:
I am very new to Access, and have only been using it for a month now. I have learned how to do a lot of things, but have been having problems making a form update a query that then is sent to a...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.