Viewing 15 posts - 241 through 255 (of 279 total)
try this.
SELECT S.IssuedDateTime,
S.ResponseId,
Convert (int, MAX(CASE WHEN S.DisplaySequence = 1 THEN S.Response END)) AS DailyReading
SUM(Convert (int, MAX(CASE WHEN S.DisplaySequence = 1 THEN S.Response END)))
FROM z_v_Information
WHERE ResponseId <= S.ResponseId
GROUP BY S.IssuedDateTime, S.SurveyResponseId
Order...
June 10, 2008 at 7:11 am
try this.
select * from #temp where empno in (select top 1 empno from #temp where empno > (select top 1 empno from #temp))
Assume #temp is table instead of EMP.
thanks,
vijay
June 10, 2008 at 5:06 am
hi,
You can create parameter in reporting services. I hope you know how to create that. Say u have some date parameter - named it as @startdate and @enddate. when you...
June 10, 2008 at 3:57 am
hi,
can it work with varchar(7999)
declare @test-2 varchar(7999)
is ur @test-2 variable store more than 8000 character?
regards,
vijay
June 10, 2008 at 3:53 am
Hi,
Just refer to following link as well.
http://www.sqlservercentral.com/articles/Administering/sqlserverjobscheduling/2288/
regards,
vijay
June 6, 2008 at 6:33 am
Hi,
I hope you already prepare stored procedure which does whatever you want. You can easily schedule this stored procedure into Job.
Just go to Jobs in Mannagement studio and schedule -...
June 6, 2008 at 6:31 am
Hi,
i know how to find about MVP. it is given on microsoft website. Select appropriate technology and it will give you list.
https://mvp.support.microsoft.com/communities/mvp.aspx
Along with that we can find out how...
June 6, 2008 at 6:04 am
Hi Steve,
it was typing mistake. sorry about it. i m in UK. so i can say when number starts from '07%' or '7%' then it is mobile number only. Home...
June 5, 2008 at 10:01 am
Hi Lynn,
Yes i read it when i started to post my query in this group. I will better do it for this kind of situation because in some cases it...
June 5, 2008 at 9:58 am
I have both opened. We have some server on 2000 and some on 2005. so can use 2005 and enterprise manager as well.
When i take jason's code i need...
June 5, 2008 at 9:51 am
Hi,
Right. i have one table that is phonenumber which is live table. it having id, mobile, home, and work number. Now i need to find out how many person gave...
June 5, 2008 at 9:47 am
Hi,
Yes Lynn. you are right. It works. I said i m not sure because i never come up with the situation.
It is just bracket. ()
DECLARE @DB varchar(25)
DECLARE DBCursor CURSOR...
June 5, 2008 at 9:36 am
Hi,
I dont care about Home number or work number. I do care about mobile number only. When i take backup from main phone number table, i can only those ID...
June 5, 2008 at 9:24 am
Here you go
CREATE PROCEDURE [dbo].[VD_TEMP_0506] AS
DECLARE @DB varchar(25)
create table #t ([name] varchar(50))
insert into #t
SELECT [Name]
FROM master.dbo.sysdatabases
Where [name] like '%NCR%'
...
June 5, 2008 at 9:20 am
Hi,
I believe cursor dont like order by. I am not sure. But i tried to run same thing and it didnt work. What you can do is before your cursor...
June 5, 2008 at 9:19 am
Viewing 15 posts - 241 through 255 (of 279 total)