Viewing 15 posts - 9,031 through 9,045 (of 13,876 total)
There is no out of the box way to do this.
Have a look here for some ideas.
If you have only a few numbers to consider, there may be a simpler...
October 9, 2014 at 1:24 am
omakler (10/8/2014)
October 8, 2014 at 8:41 am
omakler (10/7/2014)
October 8, 2014 at 1:32 am
sturner-926343 (10/7/2014)
Table1
T1_Id
1
2
3
4
Table2
T2_IDT1_ID ...
October 7, 2014 at 9:01 am
karthik82.vk (10/7/2014)
I cannot create rows for the missing dates or change the date as its not a permitted- one. the data comes from another system and adding or changing...
October 7, 2014 at 5:19 am
A note to the original poster. This thread is typical of many on this forum where, had you taken the time to write the question in the form suggested in...
October 7, 2014 at 12:31 am
Try this
use AA_Helper
go
select extension = AGENT_ID
from dbo.tblEmpData
where agent_ID is not null
union all
select agent_id2
from dbo.tblEmpData
where agent_ID2 is not null
If you want DISTINCT entries only, change UNION ALL to UNION.
October 6, 2014 at 12:12 pm
I'm not 100% sure of what you are after, but maybe start with this:
SELECT DISTINCT
Extension = isNull(Agent_Id,'') + isNull(Agent_Id2,'')
from [AA_Helper].[dbo].[tblEmpData]
October 6, 2014 at 9:15 am
As you did not answer all of my questions, it is difficult to help you.
October 5, 2014 at 6:44 am
challakarthik (10/5/2014)
I have a scenario like ........I have 6 flat files(Country1,Country2,Country3,.......Country6) in the source and i need to fetch the records of Country1 flat file to Country1 table in...
October 5, 2014 at 3:53 am
kevinsql7 (10/3/2014)
October 3, 2014 at 7:43 am
Well, I'm glad it worked. But the mixture of char data types and arithmetical operations makes me find it difficult to believe that that was what you wanted!
October 2, 2014 at 7:40 am
I think I misplaced a bracket. How about this?
update tablename
set lineno = cast((cast(lineno as int) - 12) as char(4)), sysmodified=getdate()
where 1=1
and entry=545554
and type='X'
and cast(lineno as int) >=568
October 2, 2014 at 6:42 am
marc.eilander 13301 (10/2/2014)
Hi Phil,Thanks for your reply. The datatype of the field lineno is char(4), null
KR
So there's your problem. It's non-numeric. You need something more like this (untested):
update tablename
set...
October 2, 2014 at 6:06 am
Viewing 15 posts - 9,031 through 9,045 (of 13,876 total)