Results 1 to 3 of 3

Thread: last ditch attempt at filtering records

  1. #1

    Thread Starter
    Fanatic Member SkiNLaB's Avatar
    Join Date
    Jan 2002
    Location
    Sydney, Australia
    Posts
    747

    last ditch attempt at filtering records

    I have a graph that isnt displaying as much of a category(group) as it should.

    so i take a look at the sql query, copy it, and run it in my datasource (ms access) to see if its getting all the records it should be getting.

    in access it returns 976 records. (including my rows that arent turning up on the report)

    and in crystal it says it only has 723 records!

    here is the sql in case anyone is interested:

    SELECT `SeasonTicketType`.`TicketTypeID`, `SeasonTicketType`.`TicketName`, `SeasonSeat`.`Bay`, `SeasonTicket`.`SeasonID`, `SeatStatus`.`SeatID`, `SeatStatus`.`Status`
    FROM ((`SeasonSeat` `SeasonSeat` LEFT OUTER JOIN `SeasonTicket` `SeasonTicket` ON `SeasonSeat`.`SeatID`=`SeasonTicket`.`SeatID`) INNER JOIN `SeatStatus` `SeatStatus` ON `SeasonSeat`.`SeatID`=`SeatStatus`.`SeatID`) LEFT OUTER JOIN `SeasonTicketType` `SeasonTicketType` ON `SeasonTicket`.`TicketTypeID`=`SeasonTicketType`.`TicketTypeID`
    WHERE `SeasonSeat`.`Bay`='12' AND (`SeasonTicket`.`SeasonID`=2 OR `SeasonTicket`.`SeasonID` IS NULL )

    So i KNOW that ms acces is giving the right records, but why isnt Crystal processing all of them?

    any tips on what to check?

  2. #2

    Thread Starter
    Fanatic Member SkiNLaB's Avatar
    Join Date
    Jan 2002
    Location
    Sydney, Australia
    Posts
    747
    still stumped

  3. #3

    Thread Starter
    Fanatic Member SkiNLaB's Avatar
    Join Date
    Jan 2002
    Location
    Sydney, Australia
    Posts
    747
    for some reason if i changed the order in which those where clauses where laid out, it worked, weird i know.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width