Viewing 15 posts - 226 through 240 (of 7,429 total)
Looks to me you are looking at goverment regions where the Total_coal_mining_score <= 3 and based on that you want to know what regions have mortality issues related to one...
December 3, 2007 at 9:46 am
Thank you. I had not seen that thread and simply working based on SQL Serv OLTP side of the wall. I'll shut-up now. 😛
December 3, 2007 at 9:13 am
Reading your original query I am trying to understand what your goal is and the relationship between tables.
I only see one relationship
Indicators_for_regions_Both to Region_lookup on RTRIM(Region_lookup.String) = RTRIM(Indicators_for_regions_Both.Region)
But see no...
December 3, 2007 at 9:11 am
PW (12/3/2007)
This query was captured as the SQL sent from MS Analysis Services ? As such you have no control over how the SQL is constructed and can't...
December 3, 2007 at 8:55 am
majorbloodnock (12/3/2007)
Bob Hoffman (11/30/2007)
....Some people I deal with retain everything and it may end up in court against you....
I swear to tell the truth, the half-truth and nothing like the...
December 3, 2007 at 8:18 am
California (12/2/2007)
December 3, 2007 at 8:11 am
Going back thou here is an older article I wrote on the whole "sp_" thing
What is the search order for Procedures prefixed sp_?[/url]
But anyway, I have have to say without...
December 3, 2007 at 7:57 am
Yeah, at least I shaved time. But like I said there are all kinds of tweaks you can do to a query, some will have major impact, others may not...
November 30, 2007 at 2:40 pm
Jeff Moden (11/30/2007)
Heh... at that point... I'd be thinking "BEER"! 😀
Smirnof Ice for me or maybe it's big brother Smirnof Black, not a coffee or beer drinker.
November 30, 2007 at 2:27 pm
The fun part is there are dozens and dozens of ways this query could be built here is another
SELECT DISTINCT
Accounts.UID
, Accounts.Fname + ' ' + Accounts.MI AS Fname
, Accounts.Lname
,...
November 30, 2007 at 2:25 pm
After looking I cannot see anything glaring as I don't know enough however the first thing I would do is write this way and see if improves performance. But the...
November 30, 2007 at 2:09 pm
Simon Doubt (11/30/2007)
Forgive my ignorance - why is the prefix tbl for tables a no-no?Thanks,
Simon Doubt
The reality is this still boils down to personal preference however consider the impact of...
November 30, 2007 at 1:00 pm
Sorry had a typo and the edit feature of the site never works from here
IF OBJECT_ID('tempdb..#DatabaseUsers') is not null
drop table #DatabaseUsers
create table #DatabaseUsers(DatabaseName sysname not null,DatabaseUserName sysname not...
November 30, 2007 at 12:47 pm
Sorry I am working to much today, here is what the example should read
...
INSERT INTO #DatabaseUsers EXEC sp_MSforeachdb...
November 30, 2007 at 12:45 pm
Ex. from your other post I just gave
EXEC INTO #DatabaseUsers sp_MSforeachdb
November 30, 2007 at 12:44 pm
Viewing 15 posts - 226 through 240 (of 7,429 total)