Viewing 15 posts - 541 through 555 (of 898 total)
Post the error message that you are receiving
Also it would be better if you post some sample data along with the DDL and the expected results
This will help us in...
April 30, 2012 at 7:38 am
I think what you need is a string splitter
Please check the article below for reference
April 30, 2012 at 7:31 am
In the final output of the query, I see that an entry has been deleted for employee no as 3 well
Can you explain the logic behind that deletion?
April 30, 2012 at 6:29 am
AIRWALKER-375999 (4/26/2012)
April 26, 2012 at 6:28 am
AIRWALKER-375999 (4/26/2012)
Hi thank you, the languagre is t-sql 2005
We normally assume it to be SQL Server 2005 as you are posting it in the 2005 forum
Please provide the DDl, sample...
April 26, 2012 at 4:28 am
The DDL along with some sample data will immensely help us in providing a tested solution
Please check the link in my signature on how to do it
April 26, 2012 at 4:14 am
m.eissa85 (4/25/2012)
My query is
DECLARE @var AS VARCHAR(4)
SET @var =...
April 25, 2012 at 11:15 pm
Triality (4/25/2012)
Kingston is the man. Thank you sir!
My brain cells didn't have much work today in office. Hence, its still fresh 😀
Glad to help you out 🙂
April 25, 2012 at 9:12 am
Triality (4/25/2012)
Kingston - Yes there are many February 29 service_dates in the data.
You will have to handle these dates separately
You can't convert them to "2011-02-29" or "2010-02-29"
April 25, 2012 at 8:56 am
Just a shot in the dark
Check if you have any date like 29th February in your table
SELECT * FROM dbo.Test_Data WHERE DAY( service_date ) = 29 AND MONTH( service_date )...
April 25, 2012 at 8:48 am
This should help..
DECLARE @var AS VARCHAR(4)
SET@var = 'TST2'
SELECTCol5, Col6, Col7
FROMTableName -- You missed the TableName
WHERECol7 = 'A'
ANDCol6 = 'S'
AND1 = CASE
WHEN @var = 'TST1' AND Col1 = 0 THEN 1
WHEN...
April 25, 2012 at 7:31 am
vinu512 (4/25/2012)
--DDL
Create Table Ex(Name varchar(30) )
--Sample Data
Insert Into Ex
Select 'Jack'
Union all
Select 'Vinu'
Union all
Select 'Jim'
Union all
Select 'Stan'
Union all
Select 'Ash'
I want to loop through the...
April 25, 2012 at 5:42 am
manoj_lanser (4/25/2012)
write any query or procedure for...
April 25, 2012 at 5:19 am
vinu512 (4/25/2012)
I definitely know that Cursors are poor performers and should be avoided.
But, what if there is a...
April 25, 2012 at 5:02 am
Please post the complete query and the exact error message that you are receiving
The query you have provided is not enough.
You are declaring "@MyColumn" and using "@AddItemVal" and "@Myval" which...
April 23, 2012 at 3:07 am
Viewing 15 posts - 541 through 555 (of 898 total)