C
Cydney
For the records shown below, I need to delete the records where a person is
in "travel mode" (ExpCat = "Travel Costs") has meals (ExpType="Meals-Travel")
on the SAME day (ExpDate) as his lodging (ExpType="Lodging"). In this
example, the meals on 10/8 would be deleted, but not the meals on 10/6 and
10/7 because on those days he also had lodging charges.
How can I accomplish this through a query?
Empl ExpDate ExpCat ExpType Bill Amount
Joe Frank 6/30/2008 Travel Costs Air Transportation 377
Joe Frank 10/3/2008 Travel Costs Air Transportation 84
Joe Frank 10/6/2008 Travel Costs Lodging 160
Joe Frank 10/6/2008 Travel Costs Meals-travel 24.29
Joe Frank 10/7/2008 Travel Costs Lodging 160
Joe Frank 10/7/2008 Travel Costs Meals-travel 11.5
Joe Frank 10/7/2008 Travel Costs Meals-travel 21.56
Joe Frank 10/8/2008 Travel Costs Auto Rentals 100.12
Joe Frank 10/8/2008 Travel Costs Meals-travel 20.17
--
Thank you, cs
~~~~~~~~~~~~~~~~~~~~~~~~
"What lies behind us and what lies before us are tiny matters compared to
what lies within us."
~ Ralph Waldo Emerson
in "travel mode" (ExpCat = "Travel Costs") has meals (ExpType="Meals-Travel")
on the SAME day (ExpDate) as his lodging (ExpType="Lodging"). In this
example, the meals on 10/8 would be deleted, but not the meals on 10/6 and
10/7 because on those days he also had lodging charges.
How can I accomplish this through a query?
Empl ExpDate ExpCat ExpType Bill Amount
Joe Frank 6/30/2008 Travel Costs Air Transportation 377
Joe Frank 10/3/2008 Travel Costs Air Transportation 84
Joe Frank 10/6/2008 Travel Costs Lodging 160
Joe Frank 10/6/2008 Travel Costs Meals-travel 24.29
Joe Frank 10/7/2008 Travel Costs Lodging 160
Joe Frank 10/7/2008 Travel Costs Meals-travel 11.5
Joe Frank 10/7/2008 Travel Costs Meals-travel 21.56
Joe Frank 10/8/2008 Travel Costs Auto Rentals 100.12
Joe Frank 10/8/2008 Travel Costs Meals-travel 20.17
--
Thank you, cs
~~~~~~~~~~~~~~~~~~~~~~~~
"What lies behind us and what lies before us are tiny matters compared to
what lies within us."
~ Ralph Waldo Emerson