Viewing 15 posts - 151 through 165 (of 568 total)
ezhil-649633 (12/4/2009)
Is it possible to achieve the same using 'JOINS'?
Hi,
try this, on inner join
create table #temp1
(
MID int,
EID int,
ENAME varchar(10)
)
insert into #temp1
select 1,1,'A'
union all
select 1,2,'AA'
union all
select 1,3,'AAA'
union all
select 1,4,'AAAA'
union all
select 2,1,'B'
union...
December 4, 2009 at 9:17 pm
Hi,
One of the best work bench to the calculating the MEDIAN, is ref this
http://www.simple-talk.com/sql/t-sql-programming/median-workbench/
December 4, 2009 at 8:23 pm
Pemmasani Srinivasa Rao. (12/4/2009)
Select...
December 4, 2009 at 1:27 am
Hi,
In the enterprise managers is some time happened on the client side because of the client and server code pages may not match, but its not the issue in the...
December 3, 2009 at 2:22 am
Hi,
I say about the DBs, but you mentioned the tables, Ok, lets confirm this,
In the enterprise managers, when expend the database, its not show the DBs except the System...
December 3, 2009 at 1:49 am
Hi,
Can you see the system DBs(like master, tempdb…) ,database tab in the enterprise managers?
December 3, 2009 at 1:23 am
Hi,
In the sql, it’s not possible to convert the overflow (if happened) to zero, but we have to make it to zero, like (in your case)
declare @tbl1 table ...
December 2, 2009 at 4:15 am
Hi,
What you mean by the JUNK characters,
Give some samples of those characters, its can help to offer some advice
December 1, 2009 at 2:44 am
Hi,try this
create table #temp1
(
ID1 int,
Qs1 int,
Qs2 int,
Qs3 int
)
insert into #temp1
select 1,2,1,4
union all
select 2,2,1,1
union all
select 3,3,1,2
union all
select 4,2,1,3
select b.[char],b.[charcount],c.[totalrow],
(cast(b.[charcount] as float)/cast(c.[totalrow] as float))[percent]
from
(
select Qs1 [char],count(Qs1) [charcount]
from #temp1
group by Qs1
)b...
December 1, 2009 at 2:31 am
Hi,try this
create table #table
(
name1 varchar(20)
)
insert into #table
select 'Alok Bhatia'
union all
select 'Amit Chaudhuri'
union all
select 'Amit Varma'
select * from #table
select PATINDEX('% %',name1) from #table
select right(name1,(len(name1)-(PATINDEX('% %',name1))))
+','+
left(name1,PATINDEX('% %',name1))
from #table
November 30, 2009 at 11:11 pm
jprabha.d (11/27/2009)
Is there any method or query that can be used to easily find out in which table this column exists,
Hi,
Also use this,
For search in the current database
select object_name(id)TableName from...
November 28, 2009 at 1:22 am
raaz66 (11/27/2009)
if i run every query separately.then for each query,database will be connected separately.that will be extra load on database.
How you say the extra load on the DB?
raaz66 (11/27/2009)
November 27, 2009 at 11:40 pm
Hi,
No need to connect the each DB separate to run the multiple DB procedures,
Just call the procedures with full qualification that is DB1.DBO.MYSP, DB2.DBO.MYSP2 like this you manage to executive...
November 27, 2009 at 11:01 pm
create table #test1
(
slno int identity(1,1),
c1 int,
c2 int
)
insert into #test1 (c1,c2)
select 1,2
union all
select 2,3
union all
select 6,8
union all
select 7,7
union all
select 8,8
union all
select 4,9
union all
select 9,9
select a.slno,a.c1,a.c2,
(
select count(case...
November 25, 2009 at 1:03 am
Viewing 15 posts - 151 through 165 (of 568 total)