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
How do I programmatically set the idle-timeout for the IIS app pool?
Macro to select data
rotate drawstring
DOM algorithm question
2203 error when installing office 2007 on vista
ASA 5505 Can VPN but cannot ping/connect to server or firewall.
Inserting an action inside a Node with xPath
unlock jailbroken iphone 3GS 3.1.3 model 5.12.01
After Changing PDC cannot connect to SQL Server DB
SQL Reporting hide null data