G
Guest
I'm in need of some help with a query and would appreciate any help I can
get. I'll try my best to explain the situation. I have a database that
tracks sewer overflows, in this database I have a table called "CSO Overflow
Visual Inspection" which has a few relationships to other tables, one that
has records of approx. 30 locations around the city which are designated with
a number (i.e 205). These points are checked regularly and through a form
the inspections are entered into the "CSO Overflow Visual Inspection" table.
Some of the fields are Date, Point Number, Overflowoccurred, and PrecipDate.
The "overflowoccured" field is a text field with a only Yes, No, or Other as
an option. The precipDate is a field I have a relationship looking up a
table with precip amount per day.
The query needs to include only the dates that the "overflowoccured" was
"YES" but I would like it to not repeat the date for each Point within the
same day, as there could be up to 30 entries of "YES" for each date. I would
like it to output all the point numbers in one record also or if this isn't
possible then at least the number of points that overflowed for the
particular date. Also, I would like to do this query within a given user date
range.
I can get the query to work and spit out each date with each point that had
a YES for overflow but it seperates this into many lines and isn't very
productive when reviewing the information.
So for example the query output would be similar to: (but of course in a
table format)
Date - 8-9-2007; Points that overflowed - 117, 119, 201, 202, 203; Precip -
1.25";
Date - 8-2-2007; Points that overflowed - 115, 119; Precip - .52";
Let me know if you have any further questions about this situation that I
can answer. Also, I may not be able to reply to any responses until
tomorrow. Thanks for any help.
get. I'll try my best to explain the situation. I have a database that
tracks sewer overflows, in this database I have a table called "CSO Overflow
Visual Inspection" which has a few relationships to other tables, one that
has records of approx. 30 locations around the city which are designated with
a number (i.e 205). These points are checked regularly and through a form
the inspections are entered into the "CSO Overflow Visual Inspection" table.
Some of the fields are Date, Point Number, Overflowoccurred, and PrecipDate.
The "overflowoccured" field is a text field with a only Yes, No, or Other as
an option. The precipDate is a field I have a relationship looking up a
table with precip amount per day.
The query needs to include only the dates that the "overflowoccured" was
"YES" but I would like it to not repeat the date for each Point within the
same day, as there could be up to 30 entries of "YES" for each date. I would
like it to output all the point numbers in one record also or if this isn't
possible then at least the number of points that overflowed for the
particular date. Also, I would like to do this query within a given user date
range.
I can get the query to work and spit out each date with each point that had
a YES for overflow but it seperates this into many lines and isn't very
productive when reviewing the information.
So for example the query output would be similar to: (but of course in a
table format)
Date - 8-9-2007; Points that overflowed - 117, 119, 201, 202, 203; Precip -
1.25";
Date - 8-2-2007; Points that overflowed - 115, 119; Precip - .52";
Let me know if you have any further questions about this situation that I
can answer. Also, I may not be able to reply to any responses until
tomorrow. Thanks for any help.