Viewing 15 posts - 496 through 510 (of 1,114 total)
Some useful links to you.
http://msdn.microsoft.com/en-us/library/aa905208(SQL.80).aspx
http://www.sqldba.org/articles/17-SQL-DBO-SQL-Server-Database-Object-Owner-dbo.aspx
Please read more on this URL.
August 18, 2008 at 5:00 am
One more Alternate way.
select c.ID
,name1=min(case when c.SUB=e.ms1 then c.Name end)
,name2=isnull(min(case when c.SUB=e.ms2 then c.Name end),'')
from Client_Table c
join (
select a.ID, ms1=min(a.ms1), ms2=min(b.SUB)
from (
...
August 18, 2008 at 4:56 am
Sudheer,
An Alternate way here.
select ID, firstone = MIN(SUB)
into #t
from Client_Table
where Status = 'Active'
group by ID
go
create unique clustered index idx1 on #t (ID, firstone)
go
select ID, secondone = MIN(SUB)
into #q
from Client_Table a
where...
August 18, 2008 at 4:54 am
Heh... OP gave you a perfectly good test table... you should use it to test your code!
Server: Msg 1033, Level 15, State 1, Procedure PrintReverse, Line 18The ORDER...
August 18, 2008 at 2:05 am
I have asked my manager to arrange a training,But they are not ready to arrange. Simply he is saying' "Just download the documents from website and read that and do...
August 14, 2008 at 12:56 am
What do you mean all databases?
sybase,oracle,mysql etc.,
August 13, 2008 at 10:24 am
karthikeyan (8/13/2008)
--------------------------------------------------------------------------------
SQLGuru,
Clustered index: order_id (assume int - 4 bytes), order_date (assume datetime - 8 bytes), uniquefier (since it is non-unique - 4 bytes). So 16 bytes for CI
non-clustered...
August 13, 2008 at 10:21 am
SQLGuru,
Clustered index: order_id (assume int - 4 bytes), order_date (assume datetime - 8 bytes), uniquefier (since it is non-unique - 4 bytes). So 16 bytes for CI
non-clustered PK...
August 13, 2008 at 4:16 am
what do you mean by CI pointer ? Can anybody explain it ?
August 13, 2008 at 4:15 am
Can you Post the same table and data ?
August 13, 2008 at 3:49 am
Hey,
Try this code.
Create table #name
(
Name varchar(5),
Value int null
)
go
insert into #name (Name)
select 'ABC'
union all
select 'ABC'
union all
select 'ABC'
union all
select 'ABC'
union all
select 'ABC'
union all
select 'ABC'
union all
select 'ABC'
union all
select 'ABC'
union all
select 'ABC'
union all
select 'ABC'
union...
August 13, 2008 at 3:21 am
Hey Trevor,
I have tested the below script, It is giving perfect result.
create table #t1
(
ID int,
Used int
)
go
insert into #t1
select 1,2
union
select 2,10
union
select 3,11
union
select 4, 1
union
select 5,8
select TOP 3 ID,Used
from #t1
order by...
August 12, 2008 at 6:41 am
Umm...TenCent and SSC Veteran is not the names.:P
August 12, 2008 at 6:36 am
Hey Trevor My name is not 'TenCent'.:D
Post the code here which you have executed.
August 12, 2008 at 6:35 am
Viewing 15 posts - 496 through 510 (of 1,114 total)