Hi everyone
I have got a table
Create table jobs (
JobID int not null primary key auto_increment,
Date datetime,
UnitDesc varchar (50),
MakeID smallint unsigned,
etc...
)
I am trying to select all jobs booked in more than 5 days ago
select jobID, Date, UnitDesc, MakeID from jobs where date_sub(now(), INTERVAL Date DAY)>= 5;
It does not display any record although the table has many records that match that criteria, Why?
Bye
Qatqat
The reason why my girlfriend can read my thoughts is because mine are properly written! (G.Lepore)
I have got a table
Create table jobs (
JobID int not null primary key auto_increment,
Date datetime,
UnitDesc varchar (50),
MakeID smallint unsigned,
etc...
)
I am trying to select all jobs booked in more than 5 days ago
select jobID, Date, UnitDesc, MakeID from jobs where date_sub(now(), INTERVAL Date DAY)>= 5;
It does not display any record although the table has many records that match that criteria, Why?
Bye
Qatqat
The reason why my girlfriend can read my thoughts is because mine are properly written! (G.Lepore)