Viewing 15 posts - 1,921 through 1,935 (of 10,144 total)
You'll get a really quick response if you change this:
rn CustomerID City Amount nCount
1 102996 Berlin 675.00 3
2 102996 Magdeburg 288.00 2
3 102996 Bielefeld 268.00 2
into...
November 12, 2015 at 5:48 am
J Livingston SQL (11/12/2015)
have you actually set up some sample tables and data and run your answers to see if they are correct?
or are you looking for any...
November 12, 2015 at 3:18 am
Sure. Try this:
CREATE TABLE #Audit2 (RowID INT IDENTITY(1,1), CustomerID INT, [Action] CHAR(1), oldValue INT, newValue INT NULL) ;
CREATE TABLE #Trans2 (CustomerID INT, Value INT);
INSERT #Trans2 VALUES (1,100), (2,200), (3,300), (4,400),...
November 12, 2015 at 2:21 am
oradbguru (11/11/2015)
November 11, 2015 at 10:21 am
Also late to the party; have you considered stripping the odd text elements out of the column to leave the city name? You'd want to do this as a one-off.
DROP...
November 11, 2015 at 2:10 am
Your code looks ok. What datatype is dbo.R_ResrvStock.Vin?
November 10, 2015 at 4:47 am
daliborh (11/10/2015)
Let me explain the aim here:
What I'm trying to accomplish is,
make sql select values '01x', '02x' in line "and left(i.itemID,3) in
based on the...
November 10, 2015 at 2:33 am
david.fundakowski (11/9/2015)
DECLARE @dateone AS DATE = '2012-01-01'
DECLARE @datetwo AS DATE = '2015-04-12'
;WITH cte AS (
SELECT 1 AS month_
UNION ALL
SELECT 1+ month_...
November 10, 2015 at 1:57 am
saregama (11/9/2015)
Table -...
November 9, 2015 at 5:34 am
Why write a slow unwieldy multi-statement table-valued function when an inline table-valued function will do?
DECLARE
@StartDate DATE = '05/02/2015',
@EndDate DATE = '11/25/2015'
SELECT
ID = n+1,
FirstDate = DATEADD(MONTH,n,...
November 9, 2015 at 2:47 am
farax_x (11/9/2015)
SELECT COUNT(1)
FROM dbo.Token TD WITH ( NOLOCK )
WHERE ...
November 9, 2015 at 2:12 am
ArcticEd32 (11/5/2015)
kaj (11/5/2015)
November 6, 2015 at 2:52 am
Mick Lovell (11/5/2015)
2. I am...
November 5, 2015 at 10:06 am
Do any of the dates have times?
Do you have multiple visits on the same day?
Is there another column which would distinguish between two people with the same name?
November 5, 2015 at 9:35 am
yb751 (11/5/2015)
Brandie Tarvin (11/5/2015)
At risk of being lynched: Crystal Reports is probably the easiest ad-hoc reporting tool a user with no experience can learn to use.
Well I agree with you...
November 5, 2015 at 6:33 am
Viewing 15 posts - 1,921 through 1,935 (of 10,144 total)