Question : xirr in coldfusion

does anyone know to write this excel xirr forumula in coldfusion
 
excel formula
337714
 

Answer : xirr in coldfusion

Do you have a scripting language like PHP?

Otherwise it should be able to be accomplished using MySQL cursors and MySQL LOAD_FILE. The below code will need tweaked for your tables and field names.

MySQL Cursors: http://dev.mysql.com/doc/refman/5.0/en/cursors.html

MySQL Load File: http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_load-file
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
DECLARE done INT DEFAULT 0;
  DECLARE fkey INT;
  DECLARE fname VARCHAR(255);
  DECLARE fpath VARCHAR(255);
  DECLARE cur1 CURSOR FOR SELECT FileKey, FileName, FilePath FROM FileTable;
  DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = 1;

  OPEN cur1;

  REPEAT
    FETCH cur1 INTO fkey, fname, fpath;
    IF NOT done THEN
       INSERT INTO FileTable (FileBinary) VALUES (LOAD_FILE(CONCAT(fpath, ' ', fname))) WHERE FileKey=fkey;
    END IF;
  UNTIL done END REPEAT;

  CLOSE cur1;
Random Solutions  
 
programming4us programming4us