Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query-Problem 1

Status
Not open for further replies.

psychodad71

IS-IT--Management
May 22, 2003
10
DE
My table contains a field (m_akt) which discribes the day when to start a DTS-Paket. This works fine when to start once a month. I would like to insert 1,15,25 in this field to start the paket on the first, the fifteens and the twentyfifth a month. But this does not work.

Here is my query:

SELECT *
FROM DTS_Paket
WHERE (cast(DAY(GETDATE())as varchar(2)) in (m_akt))

Any ideas ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top