Viewing 15 posts - 436 through 450 (of 581 total)
The left join and the IN clause don't cancel because they aren't necessarily looking at the same records. The IN clause check that the FE code of the opportuinty matches...
May 25, 2006 at 3:59 am
What is the underlying data in dbo.allNames.Surname and dbo.allNames.initials for these 4 records?
May 25, 2006 at 3:41 am
Well if Surname is not null, it' snot null. But a single null might not have the same effect under a different sort order, and you don't have a coalesce around...
May 25, 2006 at 3:25 am
[And this is the first reply copied from the original site:]
Hi A_Michigan_User,
Erland has some techniques on his site to convert a comma-seperated
string to a table with one value per row....
May 25, 2006 at 3:14 am
IN returns on the first match, too. In fact I'm pretty sure that the two statements are regraded as eqivaluent by the optimiser.
You still need to check the left joins...
May 25, 2006 at 2:59 am
You could put the code on the remote server (where the db list resides) and cahnge it to create a stored proc which could then be executed from yuor local server...
May 24, 2006 at 9:01 pm
In the full version of your query, are you retrieving any fields from BL_D?
If not, are you using the join to BL_D to produce duplicate records in your result set? Since you...
May 24, 2006 at 8:54 pm
A slight variant on the above that will extract a single block of numerals (<256) embedded in any string.
Incidentally, the clumsiness of this approach highlights the fact that strictly speaking...
May 24, 2006 at 8:30 pm
, count(*) [Number of Requests Completed]
from MonthGroup
group by datename(m,datepart(m,monthdate))
May 24, 2006 at 6:19 pm
I believe you should 'fully' normalise your OLTP system and if the queries get too difficult/expensive, develop a reporting platform (data marts etc.,etc.,etc.). It's the best way in the long...
May 24, 2006 at 5:58 pm
May 24, 2006 at 5:50 pm
Here's one way:
May 24, 2006 at 4:45 pm
I thought the hash was granular enough that it wasn't worth either using a bigint or devising some fiendishly economical but unreadable hash algorithm.
BTW, I've updated the code correcting...
May 24, 2006 at 3:37 pm
May 24, 2006 at 12:54 pm
Viewing 15 posts - 436 through 450 (of 581 total)