I
Ion Chalmers Freeman
OK, I have something that would be a little trivial in a SQL Server
Stored Procedure that's a little hard with an Access query.
What I want to do is get sample lists corresponding to sample. I forget
the cursor syntax, but I'd open one with
SELECT DISTINCT @Strat = STRATEGY FROM PLAYER
and inside a loop another with
SELECT TOP 10 @Player = PlayerID FROm PLAYER WHERE STRATEGY = @Strategy
and in the inner loop
SELECT Player.Strategy, A & B & C & D,
Distance FROM (FLIGHTS INNER JOIN PLAYER ON FLIGHTS.PlayerID =
Player.PlayerID) Inner join GAME ON Flights.GameID = Game.GameID
WHERE GAme.TrialCount = 3 AND Strategy = @Strat WHERE FLights.PlayerID =
@PLAYER
There may be a cleverer way, but I'm not in a clever space. That
cleverer way, of course, is what I need to do it in Jet-SQL. Can I do
this in Access, or do I need to call in a little VB?
ion
Stored Procedure that's a little hard with an Access query.
What I want to do is get sample lists corresponding to sample. I forget
the cursor syntax, but I'd open one with
SELECT DISTINCT @Strat = STRATEGY FROM PLAYER
and inside a loop another with
SELECT TOP 10 @Player = PlayerID FROm PLAYER WHERE STRATEGY = @Strategy
and in the inner loop
SELECT Player.Strategy, A & B & C & D,
Distance FROM (FLIGHTS INNER JOIN PLAYER ON FLIGHTS.PlayerID =
Player.PlayerID) Inner join GAME ON Flights.GameID = Game.GameID
WHERE GAme.TrialCount = 3 AND Strategy = @Strat WHERE FLights.PlayerID =
@PLAYER
There may be a cleverer way, but I'm not in a clever space. That
cleverer way, of course, is what I need to do it in Jet-SQL. Can I do
this in Access, or do I need to call in a little VB?
ion