Space Cowboy
Member
- Local time
- Today, 08:06
- Joined
- May 19, 2024
- Messages
- 245
clearer CODE.
SELECT ftq1.odate,
filtertable1.orderid,
ftq1.sumofunitprice,
Dcount("*", "ftq1", "sumofunitprice>=" & [sumofunitprice]) AS DayRank,
filtertable1.unitprice,
Dcount("*", "filtertable1", "unitprice>=" & [unitprice] &
"and orderid='" &
[filtertable1].[orderid] & "'") AS PriceRank
FROM filtertable1
INNER JOIN ftq1
ON filtertable1.orderid = ftq1.orderid
WHERE (( ( ftq1.odate ) = #5/27/2024# ))
ORDER BY Dcount("*", "ftq1", "sumofunitprice>=" & [sumofunitprice]),
filtertable1.unitprice,
Dcount("*", "filtertable1", "unitprice>=" & [unitprice] &
"and orderid='" &
[filtertable1].[orderid] & "'");
SELECT ftq1.odate,
filtertable1.orderid,
ftq1.sumofunitprice,
Dcount("*", "ftq1", "sumofunitprice>=" & [sumofunitprice]) AS DayRank,
filtertable1.unitprice,
Dcount("*", "filtertable1", "unitprice>=" & [unitprice] &
"and orderid='" &
[filtertable1].[orderid] & "'") AS PriceRank
FROM filtertable1
INNER JOIN ftq1
ON filtertable1.orderid = ftq1.orderid
WHERE (( ( ftq1.odate ) = #5/27/2024# ))
ORDER BY Dcount("*", "ftq1", "sumofunitprice>=" & [sumofunitprice]),
filtertable1.unitprice,
Dcount("*", "filtertable1", "unitprice>=" & [unitprice] &
"and orderid='" &
[filtertable1].[orderid] & "'");