Viewing 15 posts - 151 through 165 (of 236 total)
i guess you have more than one hotelid in one of the table as your results shows diffrent resultid with same records
November 11, 2010 at 2:21 am
Thnaks for the Question.
I have learned something new today
may be this link is also usefull:
http://sqlserverpedia.com/wiki/Switching_Partitions_-_Prerequisites">
http://sqlserverpedia.com/wiki/Switching_Partitions_-_Prerequisites
November 10, 2010 at 10:45 pm
Can you just post result of the below Query to see what value you are converting to numeric
dbo.FDiv((select Count(EmpNo) FROM SAR_WeekData where TotalHours >=30.10 and WeekStartDate='10/17/2010'),@TotalEmp)*100)+'%' as [Fourth Week]
November 9, 2010 at 10:05 pm
Good Question with Proper Explanation. Thank u
October 31, 2010 at 10:51 pm
Create table Fruits
(Fruit varchar(10))
insert into Fruits
select 'apple' Union all
select 'apple' Union all
select 'grapes' Union all
select 'banana' Union all
select 'grapes' Union all
select 'blueberry' Union all
select 'grapes' Union all
select 'blueberry'...
October 29, 2010 at 4:53 am
for your information your 0 means "1900-01-01 00:00:00.000" in terms of datetime datatype
akhlaq768 (10/28/2010)
thanks sharath.chalamgari 🙂
October 28, 2010 at 5:45 am
Really did not understand your requirments why you are getting diffrence in months between 0 and the getdate and then adding back to it
if you want your results then...
October 28, 2010 at 5:41 am
simple Question,
but the article that hugo has written are truly informative.
October 28, 2010 at 2:29 am
Simple but most of the people forget when they use it. Thanks any way
October 26, 2010 at 10:15 pm
Wiht the Chris idea on the cross apply and my previous split function that used for other perpose
i have written like this :
Declare @t Table
(
...
October 21, 2010 at 11:26 pm
Thanks Chris now i got the idea of how you achived this.
October 21, 2010 at 6:04 am
Really i didn't understand the solution that is posted here.Please can some one explain me what exactly the Query is doing.
October 21, 2010 at 5:08 am
Viewing 15 posts - 151 through 165 (of 236 total)