SQL Repetition

Aug 2, 2007

Hello all, i am coding a SP for Sql and am having trouble with a portion of the code.

I have two nested while loops, the main loop for units and the inner loop for equipment.

The info is written to a temp table, but the last record in the temp table is always duplicated.

Thanks for all your help

View 2 Replies


ADVERTISEMENT

Repetition In Rollup Query

Mar 14, 2008

How do I remove repetitive value in my query with rollup result

a b c 10
a b c 10
a b null 20
x y z 10
x y z 10
x y null 20
null null null 40

View 3 Replies View Related

T-SQL (SS2K8) :: Remove All Characters After 3rd Repetition Of A Character?

Sep 19, 2014

best possible way to remove all the characters after a 3rd repetition of a character?

For Example:

I want 10.0.1600.22 to be 10.0.1600

Everything after and including the '.' to be removed.

I understand Substring_Index() is not available whats the other options?

View 4 Replies View Related

Reporting Services :: SSRS Tablix Format For Column Repetition

Aug 24, 2015

I am design a tablix report where i have proper row grouping but when i am trying to column grouping also unable to fetch proper design...design what exactly i am trying.

View 4 Replies View Related

Reporting Services :: Vertical Axis Data Labels Repetition / Duplication

Sep 15, 2015

When I tried to create a bar chart using SSRS 2012, the vertical axis values are repeating for smaller data sets values. It's only happening when the data labels are below 5, when the data is above 5 this chart represents data fine.

I tried specifying the custom intervals and this option all together eliminated the  bar for value 1, instead it only showed the value 1 as text on the chart.

I tried changing the data interval type as number and the data type is of Integer, these are counts which I am showing in the chart.

View 3 Replies View Related

SQL Server 2014 :: Repetition Of A Table When Joined With Another Table

Jul 29, 2014

table1

id value
1 11
2 12
3 13
4 14

table2

id1 value1
1 21
2 22
1 31
2 32

in need output as follows

id value id1 value1
1 11 1 21
2 12 2 22
3 13 null null
4 14 null null
1 11 1 31
2 12 2 32
3 13 null null
4 14 null null

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved