Answered
Help / pointers needed to create a results page
Hi
I'm after a few pointers to get me going in the right direction.
I have plenty of data but now need to get some of it into a useful report. I guess I need to be using GROUP BY but at the moment I'm just getting rows of data rather than a useful table.
My mySql db has the following (relevant) fields
bookingID, bookingDate, stats
bookingID is an auto int (and not particularly relevant at the moment)
bookingDate is dateFormat
stats is a char(1) either N, X, U, A, F or P
I'm after a table
that will give me
#Week# | #total number of bookings this week# | #number of F bookings# | #number of U bookings#
(i'm happy not to worry about the week value and do it on a daily basis to start with)
Any help gratefully appreciated
Mi-ul
I'm after a few pointers to get me going in the right direction.
I have plenty of data but now need to get some of it into a useful report. I guess I need to be using GROUP BY but at the moment I'm just getting rows of data rather than a useful table.
My mySql db has the following (relevant) fields
bookingID, bookingDate, stats
bookingID is an auto int (and not particularly relevant at the moment)
bookingDate is dateFormat
stats is a char(1) either N, X, U, A, F or P
I'm after a table
that will give me
#Week# | #total number of bookings this week# | #number of F bookings# | #number of U bookings#
(i'm happy not to worry about the week value and do it on a daily basis to start with)
Any help gratefully appreciated
Mi-ul
