hello all,
i have a coloumn in my database which is:
user_dob varchar 100
and i have created a stored produre to select email address where users are between certain dates.
However it is now working can you help?
Wha am i doing wrong? a lot i think!
Regards
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
- Doh
i have a coloumn in my database which is:
user_dob varchar 100
and i have created a stored produre to select email address where users are between certain dates.
However it is now working can you help?
Code:
CREATE PROCEDURE GetByAgeEmail
AS
SELECT user_email FROM tbl_Users WHERE user_html_info = 1 and (user_dob BETWEEN convert (smalldatetime, user_dob, 103) = '8/3/1987' AND '7/3/1991')
GO
Wha am i doing wrong? a lot i think!
Regards
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
- Doh