Viewing 11 posts - 1 through 11 (of 11 total)
No dear thats what not i looking for.I have to eliminate repeating binder no.Max concept not applicable for following data.CREATE TABLE [REV_BINDERS](
[OFFICE_ID] [int] NOT NULL,
[BINDER_ID] [int] NOT NULL,
[BINDER_NO] [varchar](7) NULL,
);
go
INSERT...
December 2, 2012 at 3:55 am
Now i realized what i exactly want.
CREATE TABLE [REV_BINDERS](
[OFFICE_ID] [int] NOT NULL,
[BINDER_ID] [int] NOT NULL,
[BINDER_NO] [varchar](7) NULL,
);
go
INSERT INTO [REV_BINDERS]
([OFFICE_ID],[BINDER_ID],[BINDER_NO])
select 2105110 , 1,0101 union all
select 2105110,2,0102union all
select 2105110,3,0103union all
select 2105110,4,0104union...
December 2, 2012 at 1:42 am
I m exactly looking for this but can i obtain same result using dense rank??
December 2, 2012 at 12:16 am
Hey hi dear..
I want this output using dense rank eliminating repeating binder no
OFFICE_ID BINDER_ID BINDER_NO denserank
2105110 10 ...
December 1, 2012 at 9:16 am
Using function u can get desired result without cursors.I created split function above use that.
Declare @asd nvarchar(100)
select @asd=Field1 from Test where create_dt='24/Sep/2012'
...
September 25, 2012 at 3:54 am
Might be u get hel with dis.
CREATE TABLE dbo.Test
(
idint,
create_dt DATETIME NOT...
September 25, 2012 at 2:59 am
I think using sp_executesql can help out.Sp_executesql mainly used for dynamic store procedure.
September 25, 2012 at 1:40 am
Cool Guys u rock.
Could you give some good links to learn sql basics
September 21, 2012 at 6:23 am
Hello,
I need to count repeating alphabet only
a=6 thats it.
September 21, 2012 at 6:16 am
We can also use comma separted list to a table instead of DelimitedSplit8K function.Both function would produce same results
CREATE FUNCTION [dbo].[SplitList]
(
@List nvarchar(max), ...
September 21, 2012 at 12:32 am
Viewing 11 posts - 1 through 11 (of 11 total)