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
Is there a limit to how many categories / points you can have in a chart in Reporting Services 2008
Can't find Trend Micro WFBS Advance server...
Browser detection problems
How to run shielded cable?
cisco router isdn graceful shutdown
Tricky Looping for dropdown field
Failed to convert parameter value from a ListViewItem to a String
looking for wifi when travelling (airport express?)
My iMac wont start
exchange 2003 server backup