Viewing 15 posts - 3,181 through 3,195 (of 10,143 total)
hoseam (7/7/2014)
Then it's serial I'm looking for.
Thanks.
Then you should use UNION (ALL). The results of the two queries have widely different column counts. You will have to decide which columns...
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
July 7, 2014 at 2:14 am
DROP TABLE #Turnover
CREATE TABLE #Turnover
(location varchar(50),Total int)
INSERT INTO #Turnover (location,Total) VALUES
('A', 500),
('AB', 200),
('ABC', 100),
('BA', 100),
('BAC', 500),
('BAM', 100)
SELECT NewGroup = LEFT(location,1), location, Total...
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
July 7, 2014 at 2:07 am
hoseam (7/7/2014)
What I want it's for the results of the second query to be joined to the results of the first query. I don't know if that's parallel or not.
Joined...
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
July 7, 2014 at 1:47 am
What happens if you run this
SELECT
...
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
July 4, 2014 at 8:35 am
Please post the definition of function dbo.fn_Nested.
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
July 4, 2014 at 8:34 am
Can you post the whole view definition?
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
July 4, 2014 at 8:31 am
What you've shown of your view definition equates to this:
SELECT
urpx.RoleID
FROM [DBA].dbo.URPX
INNER JOIN [DBA].dbo.URX
ON urpx.RoleID = urx.RoleID
LEFT OUTER JOIN (
SELECT
urx.RoleID,
urx.UserID
FROM [DBA].dbo.URX
INNER JOIN...
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
July 4, 2014 at 7:20 am
Parallel combination or serial? If serial, you will have to match the number and type of output columns between the queries. If parallel, you will require a join strategy.
You're using...
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
July 4, 2014 at 6:18 am
GilaMonster (7/4/2014)
Byzza (7/4/2014)
Any Comments ?
You have security vulnerabilities in that. Specifically SQL Injection. DO NOT concatenate user input into a string which will be executed. It is perfectly possible...
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
July 4, 2014 at 5:29 am
Oh boy. Where to start with this one.
First off, the use of multiple right joins in the queries in the stored procedure suggest that the queries were generated using...
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
July 4, 2014 at 2:32 am
hominamad (7/3/2014)
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
July 3, 2014 at 7:34 am
grantsaunders75 (7/2/2014)
ISNUMERIC('Value'+'e01') -- always worked perfectly for me.
Sneaky 😀
SELECT
NumberString,
[ISNUMERIC] = ISNUMERIC(NumberString),
[ISNUMERIC extra] = ISNUMERIC(NumberString+'e00'),
[Number] = CASE WHEN ISNUMERIC(NumberString+'e00') = 1 THEN CAST(NumberString AS FLOAT) ELSE NULL END
FROM (VALUES...
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
July 3, 2014 at 5:20 am
There are quite a few ways of doing this
SELECT
t.id,
t.idvalue,
[Diff] = ABS(t.idvalue - x.idvalue),
Flag = CASE WHEN ABS(t.idvalue - x.idvalue) > 18 THEN 'failure' ELSE 'success' END...
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
July 3, 2014 at 3:43 am
You should start a new thread for this, and perhaps include the action you would like to take depending upon the distribution of ID's between the two tables. For instance,...
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
July 3, 2014 at 1:48 am
Grant Fritchey (7/2/2014)
Did you hear, for a little while Tim Howard was listed on Wikipedia as the US Secretary of Defense. That's awesome.
That's brilliant!
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
July 2, 2014 at 8:51 am
Viewing 15 posts - 3,181 through 3,195 (of 10,143 total)