Viewing 15 posts - 3,106 through 3,120 (of 6,036 total)
[Code]
SELECT a.people_number
FROM TheTable a
INNER JOIN TheTable b ON d.people_number = a.people_number
WHERE a.web_role = 3 AND b.web_role = 8
GROUP BY a.people_number
[/Code]
_____________
Code for TallyGenerator
April 14, 2008 at 4:31 pm
Tim Peters (4/14/2008)
LEFT(Reference, LEN(Reference) - PATINDEX('%[.]%', REVERSE(Reference)))
Unless, of course, someone points out where this goes...
_____________
Code for TallyGenerator
April 14, 2008 at 4:12 pm
Well, now I suppose to mention whom I've got it from?
But I don't remember!!! :w00t:
:hehe:
_____________
Code for TallyGenerator
April 13, 2008 at 11:11 pm
david.buncle (4/11/2008)
I have a problem where I'm storing a very large xml sting in a field of type ntext in the database. A problem arises when I try and extract...
_____________
Code for TallyGenerator
April 12, 2008 at 4:31 pm
Can you please post an example of inline UDF which will select a table field depending on a parameter and and SELECT statement using it which will not cause RBAR...
_____________
Code for TallyGenerator
April 10, 2008 at 9:23 pm
Sylvia Moestl Vasilik (4/10/2008)
_____________
Code for TallyGenerator
April 10, 2008 at 7:33 pm
I want to see those "certain dates" which will make the query return NULL.
I never saw COUNT(*) returning NULL in my life.
_____________
Code for TallyGenerator
April 8, 2008 at 4:25 pm
I once improved responce time of the query from 10 s to under 1 s just by replacing NOT IN with NOT EXISTS.
Don't remember exactly how many rows were in...
_____________
Code for TallyGenerator
April 6, 2008 at 11:41 pm
Which SQL SERVER interprets in the same way as using IN, therefore I would use IN, as it's easier to follow in your code:
Select * From TableA Where TableA.ID Not...
_____________
Code for TallyGenerator
April 6, 2008 at 4:51 pm
Stephen Grimshaw (4/4/2008)
_____________
Code for TallyGenerator
April 5, 2008 at 3:05 pm
And probaly your problem is within that "some update" thing.
Probably even in "CREATE TABLE" thing used iwithin that "some update".
They must be causing the locking, tempdb is just happenned to...
_____________
Code for TallyGenerator
April 3, 2008 at 4:51 pm
Can you start transaction AFTER you created and populated # table?
_____________
Code for TallyGenerator
April 3, 2008 at 4:47 pm
mtassin, I'm not trying to say you don't know how to use ISNULL. I don't know you at all, so I assume you're the best in SQL. 🙂
I'm just trying...
_____________
Code for TallyGenerator
April 3, 2008 at 4:39 pm
I don't have the structure of the table... but it's easy enough to encapsulate the field comparisons with isnulls.
If you don't know something you must assume the worst.
And if it's...
_____________
Code for TallyGenerator
April 3, 2008 at 2:59 pm
"create table" statement causes schema lock because it changes the schema of the database.
Because you create # table it locks tempdb.
Lock stays there until transaction is finished.
Because you probably have...
_____________
Code for TallyGenerator
April 3, 2008 at 6:07 am
Viewing 15 posts - 3,106 through 3,120 (of 6,036 total)