Viewing 8 posts - 1 through 8 (of 8 total)
with it as (select row_number() over (order by name) as row_num, name, department from #test where department = 'IT')
,marketing as (select row_number() over (order by name) as row_num, name, department...
March 22, 2013 at 1:08 am
Something like this ?
SELECT b.DeliveryName, a.Item, a.[Description]
FROM
TableA a JOIN Tableb b ON (a.Area = b.ColId) or (a.Area is null)
March 20, 2013 at 7:47 am
You have to look in the services on your local machine and see the name that was given to you installed instance.
March 20, 2013 at 7:35 am
Minnu (3/20/2013)
i want to retrieve records which...
March 20, 2013 at 7:32 am
if you just want to concatenate the values from a given table you can try this :
CREATE TABLE #temp
(
id ...
March 18, 2013 at 1:31 pm
wmalik001, you should not use text data type, unless you use sql server 2000. You should use varchar(max)...
May 20, 2010 at 11:34 pm
DELETE
FROM dbo.SMRights
WHERE gRightSID NOT IN
(
SELECT a.gRightSID
FROM (select row_number() over( prtition by DuplicateColumn1, DuplicateColumn2, DuplicateColumn3,Duplicatecolumn4,Duplicatecolumn5 order by Duplicatecolumn5) as rownum, gRightSID from dbo.SMRights ) a where a.rownum=2)
hope it works.
May 20, 2010 at 8:05 am
you have run all the scripts in the same batch...and it will execute the queries in order. The problem appears if you run the select in a different batch.
I saw...
May 20, 2010 at 7:13 am
Viewing 8 posts - 1 through 8 (of 8 total)