Viewing 15 posts - 691 through 705 (of 1,473 total)
If you put it in the ON clause of a left join, it only joins that table where the criteria is met, but since it is a left join, your...
September 11, 2009 at 9:25 am
Lynn Pettis (9/11/2009)
September 11, 2009 at 9:04 am
Hrm, so they do. While that's unfortunate, due to the fact that you might be using Dynamic SQL anyways, this shouldn't be a major problem. You'll just add...
September 11, 2009 at 8:56 am
Can you post the unpivot code that generated this error? I'm pretty sure I specified the fields incorrectly the first couple times yesterday and got similar errors. As...
September 11, 2009 at 8:28 am
thoughts, comments, suggestions?
1. You appear to be using a table variable to do your running totals. You don't want to do this, because you can't establish a clustered...
September 11, 2009 at 8:26 am
You should be able to make the trigger:
A. Copy data matching your criteria(probably pulled from the inserted table to see what rows you're inserting) to your audit table.
B. ...
September 11, 2009 at 8:13 am
This is a duplicate post. No more responses here please. Respond to:
http://www.sqlservercentral.com/Forums/Topic786113-338-1.aspx
September 11, 2009 at 8:11 am
My immensely more confusing (but 2000 compliant) solution. I'm sure I could make this much less confusing and likely more efficient.
DECLARE @a TABLE(
NAMEVARCHAR(20),
dateDATETIME,
hoursINT,
secondsBIGINT)
insert INTO @a
SELECT 'Sam', '09/10/2009...
September 10, 2009 at 4:27 pm
Zaza (9/10/2009)
I've tried addingand Tablename = 'SALE' in my query but if a sale does not have a memo, it will disregard the sale alltogether
Thanks for your help though
Are you...
September 10, 2009 at 3:23 pm
select sid, people, amount, memo
from sale left outer join memo
on sid = parentid
AND memo.TableName = 'SALE'
September 10, 2009 at 3:14 pm
ioan.ivanov (9/10/2009)
This solution doesn't work because values from columns are not ordered except the column that store the timestamp.
I knew reading these too quickly was gonna bite me eventually. ...
September 10, 2009 at 12:53 pm
I believe the standard way for these hierarchies to work is something like:
ID ParentID
1
2 1
3 2
4 1
5 ...
September 10, 2009 at 11:11 am
You basically need to parse or split the string to get the unique values out of it. You can do this in a number of ways. The tally...
September 10, 2009 at 11:05 am
SELECT MAX(col1) col1,MAX(col2) col2,MAX(col3) col3,MAX(col4) col4
September 10, 2009 at 9:24 am
My pleasure. Take some time to get familiar with that piece and then post back once you start broadening it to meet your overall goal with any questions or...
September 10, 2009 at 9:19 am
Viewing 15 posts - 691 through 705 (of 1,473 total)