Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)

  • RE: How to write a query for birthdays in the next two weeks?

    Sorry about the late reply but this might form the basis for a birthday check.

    SELECT *, AS DaysIntoYear FROM Employees

    WHERE ((DATEPART("dy",Birthdate)-DATEPART("dy",GETDATE())) > 0

    AND (DATEPART("dy",Birthdate)-DATEPART("dy",GETDATE())) < 15);

    Apologies if the...

  • RE: Creating an efficient relationship?

    Bryan - Hi

    If I've understood your design problem correctly, I'd allow a 1:M relationship between the Demographic table and the Address table, but add a Flag to the Address table...

Viewing 2 posts - 1 through 2 (of 2 total)