Viewing 15 posts - 91 through 105 (of 202 total)
OK
but i need to search between dates
like this i can not !!!
SELECT DATEADD(mm,DATEDIFF(mm,0,GETDATE()),0)
, DATEADD(mm,DATEDIFF(mm,-1,GETDATE()),0)
i need to search from
first day of the month
the-1
and between
last
28 OR...
November 24, 2005 at 8:17 am
i think i found
the first day of the month
select DATEADD(m,DATEDIFF(m,0,GETDATE()),0)
the last dat of the month
SELECT DateAdd(day,-1,DateAdd(month,DateDiff(month,0,getdate())+1,0))
November 23, 2005 at 5:26 pm
i am confused !!!
i dont Know what to do i tray all advise from all the wonderful group of people here but i am steel have the same problem !!
this...
November 5, 2005 at 2:55 pm
can you fix this for me
---------
DECLARE @StartTime datetime, @EndTime datetime ,@Today smalldatetime,@Today2 smalldatetime
SET @Today = GETDATE()-2
SET @Today2 = GETDATE()-1
set @StartTime =@Today+' '+'16:00'
set @EndTime =@Today2+' '+' 20:00'
SELECT *
FROM dbo.MAINB
WHERE...
November 3, 2005 at 8:22 am
ok
how to use always the the Date Today like this =(Getdate() +'20:00:00')
-------
SELECT ... FROM ... WHERE startDate >= (Getdate() +'16:00:00') AND endDate <=(Getdate() +'20:00:00')
THNKS
November 3, 2005 at 4:24 am
ok my problems
Field one =DateStart
Field Tow=DateEnd
2. how can i use in date format this -'01/11/2005 20:00:00'
thnks
November 3, 2005 at 3:03 am
OK what you say is that i cannot use VIEW
only a PROCEDURE ????
November 3, 2005 at 1:29 am
Thanks
But i have problem
thet i must use the date of TODAY ONLY !
LIKE THIS
tarih = [ GETDATE() + ' 16:00:00' ]
and
tarihB =[ GETDATE()-1 + ' 20:00:00' ]
November 2, 2005 at 1:41 pm
Thanks
But i have problem
thet i must use the date of TODAY ONLY !
LIKE THIS
tarih = [ GETDATE() + ' 16:00:00' ]
and
tarihB =[ GETDATE()-1 + ' 20:00:00' ]
November 2, 2005 at 1:39 pm
ok i wont to search like this
SELECT TOP 100 PERCENT *
FROM dbo.MAINB
WHERE (tarih '01/11/2005 16:00:00') BETWEEN (tarihB '01/11/2005 20:00:00')
AND (meosar LIKE '1')
the start day is =tarih
the end date is =...
November 2, 2005 at 9:24 am
i wont to search between tow dates Fields !!
the date is
Getdate()-1 16:00 and Getdate() 16:00
but between tow date fields
start date =datea
end date =dateb
1 datea = Getdate()-1 16:00
2 dateb = Getdate() ...
November 2, 2005 at 8:32 am
can you help me i dont understand what to do ??
and do you have idea how to improve it
because i have problem with it !!
thnks
November 2, 2005 at 8:25 am
tarih = data Type datetime
length = 8
tarihb = data Type datetime
length = 8
thnks
November 2, 2005 at 8:05 am
and if i am The ADMINISTRATOR ???
October 11, 2005 at 12:59 pm
Viewing 15 posts - 91 through 105 (of 202 total)