I hav the next query in SQL: SELECT id FROM student WHERE DATE LIKE '%$inputdate' the inputDate is in the next format: 2010.08.03 I also want to change the date of the date, by increasing the day in a week (+7).
I try this:
SELECT id
FROM student
WHERE DATE LIKE '%$inputdate'
OR DATE Like '%CAST(RIGHT("2012-11-03", 2)AS INT) + 7;
But it gives me SQL syntax error. How can I write it correctly?