Search results

  1. L

    count if and where

    many thanks. not quick as you say, but only needs running once in a while when new data added. much appreciated
  2. L

    count if and where

    thanks, retyped it without the table
  3. L

    count if and where

    the query is meant to let me know how many of each event type are left to occur in the game after each minute. so in the above example 67343499 the away corners occurred in the 86th and 90th minutes. so it would return 2 for minutes 0 to 85 (since 2 corners are still to occur), 1 from 86 to 89...
  4. L

    count if and where

    hi plog, I have responded but no idea why it's not on site. will re-reply later.
  5. L

    count if and where

    67343499 c a 90+2 90 67343499 c a 86 86 67343499 g h 72 72 67343499 g h 55 55 67343499 c h 37 37 67343499 c h 28 28 67343499 c h 24 24 67343499 c h 16 16 67343499 c h 6 6 67343499 c h 4 4 etc referred to all minutes from 0 to 90 so for the...
  6. L

    count if and where

    i'm looking to build a query that will give me a count of away team (h=a) corners (tp=c) where the time (t_val) if greater than 0, 1, 2, 3 minute etc for each id. So i get a count of how many corners etc are yet to be scored in the game. so id 67343499 away corners >45 (ie second half) = 2...
  7. L

    Delete Duplicates

    well i'm not sure it is? the uniqeness is relative to the prior row, not all rows
  8. L

    Delete Duplicates

    Sorry, I've not made it at all clear. The price rows are time sequential. Prices can go up and down and I want to keep all rows where there is a new price. So for example prices might do this over time:- 1.8* 1.8 1.78* 1.78 1.78 1.77* 1.77 1.78* 1.80* So the rows I want to keep are '*'...
  9. L

    Delete Duplicates

    Hi I need to delete duplicate rows (or create new table without them) but the duplicate is not the entire row of data. Date Time LeagueMatchingId League HomeMatchingId HomeName AwayMatchingId AwayName HomeScore AwayScore HomeRedCardCount AwayRedCardCount FTOU FTOverOdds FTUnderOdds...
  10. L

    Crosstab

    Many many thanks JHB. Works a little slower on the full database of 800,000 events (max count =30), but works perfectly, and speed is not the issue here. Truly grateful. Thanks again
  11. L

    Crosstab

    attached is one of the tables where i need this conversion done. many thanks
  12. L

    Crosstab

    thanks for that, but way out of my league. i wouldn't really know where to start. i'll just write a routine in vba to do it. thanks again.
  13. L

    Crosstab

    Hi, I have run a regular crosstab query, but it returns blanks where no event exists, and I simply want a list (horizontal) of data that is currently vertical. This is the data:- "action_id" "game_id" "status_time" "1" "1" "4" "2" "1" "17" "3" "1" "41" "6" "1" "53"...
Back
Top Bottom