Viewing 15 posts - 7,006 through 7,020 (of 7,636 total)
matt6749 (5/2/2008)
However, I don't understand what @skip = 90000 is. Do I need this - can you help?
It's the number of rows to skip over and should normally...
May 2, 2008 at 10:15 am
Try the following query:
[font="Courier New"]select tr.policy_expiration_date_key,ex.cal_date
from
tr
inner join
..datedim ex
on ex.date_key = tr.policy_expiration_date_key
where transaction_audit_key = 178
AND (EX.Cal_Date < Cast('1900-01-01' as datetime) OR EX.Cal_Date > Cast('2079-01-01' as datetime))
order...
May 2, 2008 at 9:47 am
Yes, delete them all in one SQL statement instead of deleting one row per statement.
Unlike Oracle, SQL triggers fire per statement, and not per-row.
May 1, 2008 at 10:21 pm
This is a SQL 2005 forum. There are SQL 2000 forums on this site also.
May 1, 2008 at 9:59 pm
OK, looking at your data now, it is clear that my routines do not respect the relationship between your "Order By" fields and the sequencing of CumInDemand. I do...
May 1, 2008 at 8:38 pm
I think that you would need to write a stored procedure or a CLR to do it on their behalf. Very tricky to give them all of the abilities...
May 1, 2008 at 8:24 pm
Jeff Moden (5/1/2008)
Michael Valentine Jones (5/1/2008)
Jeff Moden (5/1/2008)
Michael Valentine Jones (5/1/2008)
It's probably better to avoid using a reserved word, like INDEX, for a table name.
Or "number" or "sequence" or... that's...
May 1, 2008 at 8:17 pm
OK, well I am going away for the weekend and I don't have time to clean it up, so you'll have to take it as is...
Here is the Test-Rig (everything...
May 1, 2008 at 7:47 pm
You can also get this information through the ANSI-standard INFORMATION_SCHEMA views provided by SQL Server. All of these are read-only, of course.
May 1, 2008 at 9:23 am
I have to agree with Jeff here. You *could* use DML triggers to achieve the same effect for data, but I really think that you would be buying yourself...
May 1, 2008 at 9:08 am
Jeff Moden (5/1/2008)
May 1, 2008 at 8:58 am
Just google "tally table". The procedural (manual) form is used by schools a lot.
May 1, 2008 at 8:55 am
None of the TOP(XX) methods that I have been testing are able to keep up with the Row_Number() technique that I posted.
May 1, 2008 at 8:35 am
Jeff Moden (5/1/2008)
rbarryyoung (4/30/2008)
Jeff Moden (4/30/2008)
I'm curious... Why 4 months? That's a third of a year...
That's probabrly why, Jeff. I did some work for an insurance company several...
May 1, 2008 at 8:06 am
Viewing 15 posts - 7,006 through 7,020 (of 7,636 total)