Viewing 15 posts - 1,921 through 1,935 (of 10,143 total)
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...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
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),...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
November 12, 2015 at 2:21 am
oradbguru (11/11/2015)
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
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...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
November 11, 2015 at 2:10 am
Your code looks ok. What datatype is dbo.R_ResrvStock.Vin?
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
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...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
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_...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
November 10, 2015 at 1:57 am
saregama (11/9/2015)
Table -...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
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,...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
November 9, 2015 at 2:47 am
farax_x (11/9/2015)
SELECT COUNT(1)
FROM dbo.Token TD WITH ( NOLOCK )
WHERE ...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
November 9, 2015 at 2:12 am
ArcticEd32 (11/5/2015)
kaj (11/5/2015)
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
November 6, 2015 at 2:52 am
Mick Lovell (11/5/2015)
2. I am...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
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?
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
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...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
November 5, 2015 at 6:33 am
Brandie Tarvin (11/5/2015)
BWFC (11/5/2015)
I've been asked to look into ad-hoc reporting solutions so users can create their own reports.
All I know is it's a...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
November 5, 2015 at 6:18 am
Viewing 15 posts - 1,921 through 1,935 (of 10,143 total)