Viewing 15 posts - 3,181 through 3,195 (of 10,144 total)
You could almost certainly do all of this work in a single query if you switched from old-style joins to ANSI-standard joins and learned how to use outer joins. Wikipedia...
July 7, 2014 at 2:49 am
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...
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...
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...
July 7, 2014 at 1:47 am
What happens if you run this
SELECT
...
July 4, 2014 at 8:35 am
Please post the definition of function dbo.fn_Nested.
July 4, 2014 at 8:34 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...
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...
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...
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...
July 4, 2014 at 2:32 am
hominamad (7/3/2014)
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...
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...
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,...
July 3, 2014 at 1:48 am
Viewing 15 posts - 3,181 through 3,195 (of 10,144 total)