(happy) birthday

Posts   
 
    
Fabrice
User
Posts: 180
Joined: 25-May-2004
# Posted on: 16-Nov-2004 14:58:00   

Hi all

Well no it's not my birthday simple_smile It's only to introduce the very-simple-but-annoying problem I've got I've an table with a birtdate (ie : 16/11/1979) And I want to display all anniversary (? birtday simple_smile ) between 2 dates

For example want all birthday between 10/11/2004 and 20/11/200 and it'll select me 16/11/1979.

The query I have is (Sql Server) :

 SELECT     E_ID, E_NAME, E_FIRSTNAME, E_BIRTHDATE
FROM    EMPLOYEE
WHERE 
DATEPART(dayofyear, E_BIRTHDATE)  
    BETWEEN DATEPART(dayofyear, '2004-11-10')
    AND DATEPART(dayofyear, '2004-11-20')

My problem is that I don't know how to put it in llblgen simple_smile Any help is welcome !

ty Fab

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 16-Nov-2004 15:27:30   

This is currently not possible... (executing parameter requireing functions on fields) (so a stored procedure is sadly the only option..

Frans Bouma | Lead developer LLBLGen Pro
Fabrice
User
Posts: 180
Joined: 25-May-2004
# Posted on: 16-Nov-2004 15:40:30   

Ok I'll d that ty