Re: Doubts with mysql update,delete queries

2003-12-03 Thread irinchiang
Hi all: Having some doubts with sql select queries here : Right now, I have a "student" and a "withdraw" tables. For example, when student "John" has withdrawn, his name will be inserted into "withdraw" table but John's record will be kept in "student" table for a period of 30 days befor

Doubts with mysql update,delete queries

2003-12-03 Thread irinchiang
Hi all: Having some doubts with sql select queries here : Right now, I have a "student" and a "withdraw" tables. For example, when student "John" has withdrawn, his name will be inserted into "withdraw" table but John's record will be kept in "student" table for a period of 30 days before

Select Query-Display current month and last 11 months...

2003-10-05 Thread irinchiang
Hi all, Having a slight problem with mysql select query right here. I've learnt that if I were to select a particular data within the last 30 days, this is what my select query should be like: SELECT something FROM tablename WHERE TO_DAYS(NOW(()_TO_DAYS(date_column)<=30; (This query sel