Viewing 15 posts - 1 through 15 (of 57 total)
Hi Erikur and Dwain,
Thanks very much for looking into it.
Queries are amazing and works very well as expected. Perfect!!
Dwain's answer looks closer to what I expected as some of...
February 6, 2015 at 2:28 am
Thanks EveryBody,
So, I think we have to take the Max.Values manually for the Given DataType and then we can use it for other operations like comparing the value of the...
September 21, 2008 at 10:39 pm
Hi,
Can you put your expected Results for the given sample datas at the end of each conditional select Statement for the given sample datas
Rajesh
July 9, 2008 at 3:11 am
you use this query also
select A1,B2 from Test
inner join test1 on test.A2 = test1.b1
where a3 in (select max(a3) from test group by a1)
order by a1
rajesh
June 19, 2008 at 11:02 pm
HI ,
You can Use a case option in select statement when transactiontype is LIKE 'Down Time% then
concatenate ''= transactiontype LIKE 'Down Time%" else do it in opposite manner
This...
June 19, 2008 at 10:37 pm
Can you post the expected output result with some input datas
rajesh
June 17, 2008 at 10:27 pm
Hi,
Hope this will be helpful to you
with fulldate (date)as
(
select dateadd (day,n,'06/01/08')
from Dbo.Tally
where n<=datediff(day,'06/01/08', '06/16/08') and dateadd(day,n,'06/01/08')<'06/16/08'
)
,leave(date) as
(
SELECT DATEADD(DAY, 7 *...
June 17, 2008 at 1:09 am
Can you explain clear by posting some sample datas and expected Results you are looking for
Rajesh
June 16, 2008 at 7:25 am
Hi ,
Can we use a function for this solution or this will give poor performance,can nybody suggest where iam wrong?
create function DateCalc(@processID int)
returns Datetime
as
begin
Declare @Date DateTime,@Deadline DateTime,@PRocessAfter int
select @ProcessAfter...
June 9, 2008 at 10:23 pm
Thanks all,
Thanks for everyOne in sharing the Ideas.
RBarryYoung has given the Really superb Answer which is what i am looking For thats keeps away from correlated queries.Once again thanks for...
June 8, 2008 at 11:38 pm
Where are you entering the Current date and also there is no deadLine COlumn in this table.
Are you trying to calculate the DeadLine based on the Given Current Date using...
June 8, 2008 at 10:43 pm
Could you post the sample Datas along with the Expected Results
Rajesh
June 5, 2008 at 11:33 pm
HI,
Try this and confirm whether this is what you are looking for,
Select E.Number, E.Name, E.Date As Date, M.Text1
From Entries As E Inner Join Main As M On E.Number = M.Number
where...
June 3, 2008 at 3:02 am
Hi Rahul,
Can you post the Table Structure as a create Table query for the two tables along with some sample Datas as insert query and expected Results in the Table2...
June 2, 2008 at 10:51 pm
Hi Sharma,
I Have assumed your Ids starts from 1,so N in the Tally Table starts from 1 ,if you want to start from 0 ,make the Identity(1,1) in tally table...
June 2, 2008 at 10:29 pm
Viewing 15 posts - 1 through 15 (of 57 total)