Viewing 15 posts - 556 through 570 (of 1,241 total)
This just another possible way :
Select lt.*
FROM
(Select avatarID, episode From #clients where [status]='add') as lt
Left join
(Select avatarID, episode From #clients where [status]='discharge') as rt
ONlt.avatarID = rt.avatarID
and lt.episode=rt.episode
WHERE rt.avatarID...
August 23, 2016 at 3:49 pm
This is one thought that I have >
Assuming there is a realiable PK field in the table:
Bring in the 70 million rows to a staging area locally on the destination...
August 23, 2016 at 3:09 pm
I would have to say resist the temptation to think about space first and the simple layout of a denormalized design second. You are thinking like a designer of a...
August 23, 2016 at 2:07 pm
I am wondering about the three part naming convention and its substitution with a synonym. I envision a scenario where the code reads like
/* block 1*/
SELECT ...
FROM ProductionDB_test.dbo.tableA
I instead...
June 28, 2016 at 5:27 pm
I do find the comment that a previous post made on the lack of transparency of synonyms within reporting tools (only show tables and views) a bit unsettling. I also...
June 28, 2016 at 4:50 pm
aj2red (6/28/2016)
Two things:
1) Promoting objects - things to be checked every time something gets moved.
2) copying production to test or dev.
let's say you have 200 objects in production.
You...
June 28, 2016 at 3:46 pm
aj2red (6/24/2016)
However, I don't.
For example:
We have written multiple interfaces...
June 28, 2016 at 3:07 pm
Thanks for the article. Very creative approach to make use of this hidden and under utilised tool. Documentation is among the last thing people think of when creating their objects...
March 19, 2016 at 2:00 am
To add to the post above ... somewhere I've read that Oracle databases apply triggers on a row by row basis, or at least can. So I was thinking if...
March 9, 2016 at 11:20 am
Sean Lange (3/8/2016)
MMartin1 (3/8/2016)
SELECT @ORDER_NUMBER = i.ORDER_NUMBER, @ID = i.ST_ID, @Name = i.FULL_NAME, @Timestamp = i.ORDER_DATEfrom inserted i
This above will fail whenever the application inserted more than one row...
March 9, 2016 at 11:16 am
Sergiy (3/8/2016)
Mvs2k11 (3/8/2016)
What is the solution.. when I put max recursion...
March 9, 2016 at 11:07 am
drew.allen (3/8/2016)
MMartin1 (3/8/2016)
Consider something like this >
SELECT SUM(someNumberColumn) / (SELECT SUM(someNumberColumn) FROM Table) AS westCoastSalesAsA%OfTotal
FROM Table
WHERE someFilterColumn= 'west coast'
Could be...
March 8, 2016 at 3:41 pm
This is a case where you can run into a infinite loop if you had something like
PARENT CHILD
-------- -------
1 ...
March 8, 2016 at 3:30 pm
Going deeper with the CROSS APPLY suggestion :
Consider something like this >
SELECT SUM(someNumberColumn) / (SELECT SUM(someNumberColumn) FROM Table) AS westCoastSalesAsA%OfTotal
FROM Table
WHERE someFilterColumn= 'west coast'
Could be done with...
March 8, 2016 at 12:23 pm
From here what you should do is is create columns in the report (just to audit) that list the return values of these functions to see what actually got returned...
March 8, 2016 at 12:09 pm
Viewing 15 posts - 556 through 570 (of 1,241 total)