Viewing 15 posts - 421 through 435 (of 860 total)
AllaboutSQL (4/25/2012)
DECLARE @fac INT ;
set @fac = 1;
With tally (n) AS (SELECT top 100 ROW_NUMBER() OVER (ORDER BY (SELECT NULL)) FROM...
April 25, 2012 at 11:08 am
HowardW (4/25/2012)
April 25, 2012 at 9:35 am
yep those are recursive cte's. im currently trying to solve the factorial with a numbers table and i think im close. should have it soon
EDIT: can only...
April 25, 2012 at 9:05 am
or do you want a product function where if you have the values 1,3,5,7 the result would be 1*3*5*7 and you just happened to use 1234 so it looks like...
April 25, 2012 at 8:22 am
Mark Fitzgerald-331224 (4/25/2012)
riya_dave (4/24/2012)
insert into #temp7
select a.shortname , a.portfoliobaseid , a.account ,a.InceptionDate,
a.DTDTWR,
MTDTWR = case when (a.MTDTWR is null) then
(exp(sum(LOG(CASE WHEN b.monthirr = 0.0 THEN 1 WHEN b.monthirr...
April 25, 2012 at 8:09 am
AllaboutSQL (4/25/2012)
that seems to be the simplest solution, also, I am assuming that the number of...
April 25, 2012 at 7:34 am
phani.gudmines (4/25/2012)
.....1(1)
2(1*2)
6(1*2*3)
24(1*2*3*4)
what you have as your requested out is the factorial of the number. do you really want the geometric mean of the 4 entries (take the 4th root...
April 25, 2012 at 7:29 am
EL Jerry (4/24/2012)
SQLRNNR (4/24/2012)
crookj (4/24/2012)
L' Eomot Inversé (4/24/2012)
SQLRNNR (4/24/2012)
replicatingreproducing
Cloning
Dolly
Parton? 🙂
"El" Jerry.
Triple X :hehe::hehe:
April 24, 2012 at 6:21 pm
Dave Brooking (4/24/2012)
WITH emp AS
(
SELECT 1000...
April 24, 2012 at 3:29 pm
flebber.crue (4/24/2012)
capn.hector (4/24/2012)
April 24, 2012 at 3:26 pm
nope a self join will work. with out create table statements and sample data its hard to give tested code but something like this may work
SELECT a.EmpID, a.BossID, a.EmpName,...
April 24, 2012 at 2:45 pm
drew.allen (4/24/2012)
April 24, 2012 at 1:46 pm
gissah (4/24/2012)
maybe that is the best way to go, yearly. can you please guide me through it.
here is part of my calendar table script. the tally in the from...
April 24, 2012 at 1:42 pm
looks like you are creating your calendar table every morning?? is that correct?? i have a calendar table which just sits there and i have it out to 2016-01-01...
April 24, 2012 at 12:36 pm
The_Mo (4/24/2012)
exactly:-D
ok so my solution was wrong any way. here is the correct version of my solution
SELECT * FROM
(SELECT ROW_NUMBER () OVER (PARTITION BY DateValue,Value ORDER BY (SELECT NULL))...
April 24, 2012 at 12:15 pm
Viewing 15 posts - 421 through 435 (of 860 total)