Viewing 15 posts - 316 through 330 (of 1,923 total)
OH yeah, Nice one Jeff. As always! Thanks a lot for taking time to teach us some of the tricks of the game. Thaks a lot 🙂
March 28, 2012 at 11:55 pm
You are lucky because your columns did not contain any NULLs; that's why you are seeing the same result for all the columns!
Try this examples to know how COUNT(*) and...
March 28, 2012 at 11:44 pm
Should be careful with the trailing spaces.
declare @var varchar(100) = '1234567890 '
select len(@var)
select datalength(@var)
select SUBSTRING(@var, 1, len(@var)-4) , SUBSTRING(@var, 1, datalength(@var)-4)
Len ...
March 28, 2012 at 11:25 pm
tommyh (3/28/2012)
SELECT
CustomerId
FROM #Purchase
WHERE ProductCode IN ('A','B', 'C')
GROUP BY CustomerID
having sum(case when ProductCode = 'A' then 1 else 0 end) >...
March 28, 2012 at 11:04 pm
If there are frequent Start and end times, then the number of columns is going to increase heavily and the report will look ugly. Are you sure you want the...
March 28, 2012 at 11:59 am
WHy not direct compariosn of colA <> colB ?
March 28, 2012 at 12:19 am
You have shown us the sample data, but we need it need it in readily consumable format.. Please read the article i provided in my last post and give us...
March 27, 2012 at 3:28 pm
jothibhatt_s (3/27/2012)
Moving Annual Total. I want to roll up the quarters to Moving Annual Total
There are multiple ways.. We need to see some data and ur table structure to effectively...
March 27, 2012 at 3:08 pm
What is MAT ? can you explain what your desired result it?
March 27, 2012 at 2:58 pm
Can we get sample data please?
March 27, 2012 at 12:00 pm
Please take a look at the following article and give us extra information.. I see that your requirement may be trivial, but with extra information, we can always give tested...
March 27, 2012 at 10:56 am
I dint wuite understand what you are trying to achieve here. Can you please take a look at the following article and provide some extra information?
http://www.sqlservercentral.com/articles/Best+Practices/61537/
March 27, 2012 at 10:51 am
I know what you are up to and i have a code for that, but i have limited time to set-up sample data and create a query for that
Can you...
March 27, 2012 at 10:42 am
How about this?
SELECT T1.ID
,T1.DUE_DTE
,max_ind =...
March 27, 2012 at 10:38 am
Viewing 15 posts - 316 through 330 (of 1,923 total)