Microsoft
Software
Hardware
Network
Question : Repeating Rows when adding a field
Hello:
I need to retrieve a project Number for each payment paid in advance. An event is taking place today and I need to allocate every
advanced payment to a project Number.
I am getting 3 rows for every amount instead of one but only when I add the project Number. If I take it out I get the right result.
The three results represents the 3 records under a hierarchy. I am getting the 3 projectnumbers belonging to the parent
instead of only the one or two that represent the sale for that projectNumber. The tables relationships are as follows:
ProjectTable
ProjectNumberID Name ProjectNumber ParentID
350001 Casting 4000 350005
350005 AllCasting 20000 0
350006 Rehearsal 4010 350005
350007 Show 4020 350005
//////////////////////////
//////////
//////////
//////////
///
ProgramTable
ProgramID ProjectNumberID EventNumber
100001 350001 5
100002 350001 5
100003 350006 6
//////////////////////////
//////////
//////////
//////////
///
EventTable
EventID ProgramID
5 100001
6 100001
7 100002
//////////////////////////
//////////
//////////
//////////
//
TransactionTable
TransactionID SaleID EventID Amount
1 10 5 136.00
2 11 5 20.00
//////////////////////////
//////////
//////////
//////////
//
SaleTable
SaleID Arrival SaleDateTime
10 '2010-06-22 05:30:00' '2010-01-25 01:00:00'
11 '2010-06-22 05:30:00' '2010-02-15 02:00:00'
//////////////////////////
//////////
//////////
//////////
//
PaymentTable
PaymentID SaleID PaymentDateTime Amount
101 10 '2010-01-25 01:00:00' 136.00
102 11 '2010-02-15 02:00:00' 20.00
I am getting the 3 project numbers with the same parent if I include the projectNumber.
I think is the way I am linking the programTable to the ProjectTable.
Any help would be appreciated.
Answer : Repeating Rows when adding a field
possibly add:
service dhcp
Billy
Random Solutions
Will VMWare run on HP Proliant ML110G6 X3430, vShpere WAN performance
there was a smtp communication problem with the recipient's email server
Need Access VBA help to Use from Access
Windows 7 Pro, won't join domain.
Citrix Session Printers not showing the hostname of the machine.
Macro to Sort by Column and Delete Blanks
How to use Database name variable in ALTER DATABASE sql script
How to append a column to an sql query
ExRCA wasn't able to find the SPF record.+ Categorizer is temporarily unable to process a message
Export Gridview to Excel Not Working For Me