The World's First Perfectly-balanced Table-top Rpg. Game Module

Try to enhance your Hobby Experience with this:
http://www.lulu.com/spotlight/moonlounge
My perfectly-balanced Table-top Rpg. Game Module Sells for $1,020.00 now. No ones ever made a Model like this.

not only the nice unboxing article but a nice promoting video on official website, check this out
https://www.youtube.com/watch?v=y28Nf-K3-ZE&feature=youtu.be
Quote from: anitalin;103269
this is a very detail unboxing article, The ISP panel really nice.
- - - Updated - - -

Similar Messages

  • Zoolz the World's First Tribrid Backup

    Not all data should be treated the same. Some should be recoverable immediately, while others are stored for archival and compliance purposes, thus, unlikely to be accessed.Therefore, the creators ofZoolzintroduced the unprecedented Tribrid Backup. Tribrid enablesbusinesses to protect all data produced and save storage costs without sacrificing any data. This is achieved by introducing 3 storage types:
    Instant Storage:Robust cloud storage based on the secure and reliable Amazon S3, used to store mission critical data that needs to be accessed on demand.Cold Storage:Based on Amazon Glacier; serves as inexpensive cloud storage suitable to store large amounts of data that is rarely accessed.Local StorageByenabling Hybrid+, Zoolz can create a local copy of backed up files for faster recoverytime; by prioritizing recovery from the local...
    This topic first appeared in the Spiceworks Community

    Last year's was the laptop for dogs. Wow, it has been a year. That was like yesterday.

  • Elephants Dream is the world's first open movie!!!

    Made entirely with open source graphics software such as Blender, and with all production files freely available to use....
    http://orange.blender.org/
    Edit: dohhh!!
    http://bbs.archlinux.org/viewtopic.php? … 1f9c407a95

    Last year's was the laptop for dogs. Wow, it has been a year. That was like yesterday.

  • How can i update the REMARK field in ADRT database table

    Hi all,
    How can i update the REMARK field in ADRT database table
    By using Function modules or BAPI’s
    Please reply me fast

    Hi,
    you can try this code:
        SELECT SINGLE * FROM KNA1 WHERE KUNNR = wa_kunnr.
        IF sy-subrc = 0.
          CLEAR adrct.
          SELECT SINGLE * FROM adrct WHERE addrnumber = kna1-adrnr.
          IF sy-subrc = 0.
            adrct-remark = wa_remark.
            MODIFY adrct.
          ENDIF.
        ENDIF
    best regards,
    Thangesh

  • Initial Balances for some of the G/L Accounts  in GLPCT table changed

    Sub : G/L Account Balance( T code FAGLB03 )  and EC-PCA: Totals Table (Table GLPCT) initial balances are not same for some of the G/L accounts ( Initial Balances for some of the G/L Accounts and profit centers in GLPCT table changed )
    Dear Friends
    We are in SAP ECC 5.0. We are using New G/L Accounting
    G/L Account  Balance(Initial Balance)( T code FAGLB03 )  and EC-PCA: Totals Table (Table GLPCT) initial balances are not same for some of the G/L accounts ( Initial Balances for some of the G/L Accounts and Profit centers in GLPCT table changed )
    G/L Account : 1110001 AR Trade - Recon
    G/L Account Initial  Balance( T code FAGLB03 )          36,789,209.26 USD
    EC-PCA: Totals initial balance  (GLPCT table)                14,178,848.14 USD
    I found in GLPCT table initial balances for G/L 1110001 and some of the profit centers are changed. The initial balances are not supposed to change for the entire financial year
    I have checked   none of  documents for this G/L and these Profit centers of last financial year  have been posted or reversed in current financial year.
    Please try to help me what has caused to changed the initial balances and how to correct it
    Please let me know if you guys need more details
    Thanks in advance
    Thanks
    MVS

    Hi Vinay,
    If I understood correctly you are trying to balance  Accumulated Depreciation accounts (from the AA module) with the Cost Depreciation Accounts.
    If they don`t balance zero, it mostly likely means, that some user has posted manually deprecian in your GL, not using the depreciation program.
    Hope this helps.
    KR
    Severina Koleva

  • I purchased photoshop elements and i am having all the problems in the world installing it.... first the link in the emails were errors and secondly i have downloaded and installed multiple times and it says my serial number from the email i received is i

    I purchased photoshop elements and i am having all the problems in the world installing it.... first the link in the emails were errors and secondly i have downloaded and installed multiple times and it says my serial number from the email i received is incorrect.... please help

    Ok, since this forum is for Photoshop Standard and Photoshop Extended, we don't know much about Photoshop Elements. There is a Photoshop Elements forum and I'll link it for you since they best know how to field your questions.
    Photoshop Elements
    Good luck on it! 
    Gene

  • Why in the world would Apple make the track pad LESS useful in OS Lion?  I hate that I can't g back to the top of a web page with a singe swipe.  And of course all the other gestures are totally reversed.  IMHO, this was not an imporvement.

    Why in the world would Apple make the track pad LESS useful in OS Lion?  I hate that I can't g back to the top of a web page with a singe swipe.  And of course all the other gestures are totally reversed.  IMHO, this was not an improvement.

    No one here works for Apple.
    Go to System Preferences > Trackpad > Scroll & Zoom, and uncheck Scroll direction: Natural.

  • Remove the first column of Table

    I want to remove the first column(the column used for selecting the row(s)) of the sap ui5 table.
    I don't have the requirement to select the row(s).
    I tried to do that by css, but, it is messing with the table alignment.
    Can any one suggest, how to remove first column of table?

    adding "selectionMode: sap.ui.table.SelectionMode.None" to the table, first column hides

  • Use first row of table to determine calculation of rest of the rows of that table.

    I have time sheet table where the rows are employees names and the column is the dates in the calender
    Name
    01
    02
    03
    04
    05
    06
    07
    08
    09
    Emp 1
    8
    8
    8
    8
    8
    0
    0
    8
    8
    Emp 2
    8
    7
    8
    9
    8
    0
    0
    8
    7
    Emp 3
    6
    8
    8
    8
    8
    0
    0
    8
    8
    I want to come up with this table - where '1' indicates the public holiday.
    Name
    01
    02
    03
    04
    05
    06
    07
    08
    09
    1
    Emp 1
    8
    8
    8
    16
    8
    0
    0
    8
    8
    Emp 2
    8
    7
    8
    18
    8
    0
    0
    8
    7
    Emp 3
    6
    8
    8
    16
    8
    0
    0
    8
    8
    ** I have the public Holiday table with dates of public holidays. I can do UNION ALL with sheet table and Public Holiday table to get the first row. i.e. if there is a Public Holiday within that date range then it will have '1' in the corresponding field
    of the first row.
    ** Now If the there is a '1' in a field of the first row, I want all values below it to be doubled as shown in the example.
    Please point me in the right direction.
    Marsh Narewec

    create table test (Name varchar(20),[01] int,[02] int,[03] int,[04] int,[05] int,[06] int,[07] int,[08] int,[09] int)
    insert into test values('Emp 1',8,8,8,8,8,0,0,8,8),('Emp 2',8,7,8,9,8,0,0,8,7),('Emp 3',6,8,8,8,8,0,0,8,8)
    ;with mycte as(
    select name, val,col from (select * from test) src
    cross apply (values([01],'01'),([02],'02'),([03],'03'),([04],'04'),([05],'05'),([06],'06'),([07],'07'),([08],'08'),([09],'09')) d(val,col)
    Select name,[01],[02],[03],[04],[05],[06],[07],[08],[09] from
    (select name, Case when col='04' then val*2 else val end val,col from mycte) src
    PIVOT (max(val) For col In ([01],[02],[03],[04],[05],[06],[07],[08],[09])) pvt
    drop table test

  • I was the first guy in the world...

    ...to connect Sun ONE Application Server to PostgreSQL, so I'm expecting to be the first guy in the world who has tried to send email from an EJB deployed on Sun ONE Application Server.
    I've gone through all the docs and tried dozens of different variations...I can look up the Session properly, but the problem is when I call Transport.send(). It happens on my application, and ALSO on the sample JavaMail application that ships with S1AS. I've set up the sessions properly via the admin interface.
    All I have to go on is the following (completely useless) stack trace. Any ideas?
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.RemoteException
    at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.wrapException(Util.java:364)
    at javax.rmi.CORBA.Util.wrapException(Util.java:277)
    at com.ai.coaching.ejb.directorymanager._DirectoryManager_Stub.sendEmailToAccount(Unknown Source)
    at com.ai.coaching.web.SendEmailAction.perform(SendEmailAction.java:142)
    at org.apache.struts.action.Action.execute(Action.java:415)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:465)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
    at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
    at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
    Caused by: java.rmi.RemoteException
    at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.java:451)
    at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:545)
    at com.ai.coaching.ejb.directorymanager.DirectoryManagerBean_EJBObjectImpl.sendEmailToAccount(DirectoryManagerBean_EJB
    at com.ai.coaching.ejb.directorymanager._DirectoryManager_Stub.sendEmailToAccount(Unknown Source)
    ... 20 more

    I too am having a similar problem.
    I'm attempting to send an email from within a Struts Action class, deployed on the Sun App Server 7. I have followed several documented ways of sending a JavaMail email without success. When I call Transport.send... I receive the following error msg:
    [28/Dec/2003:16:20:48] SEVERE ( 2812): StandardWrapperValve[StrutsController]: Servlet.service() for servlet StrutsController threw exception
    javax.servlet.ServletException: Servlet execution threw an exception
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:742)
         at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
         at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
    ----- Root Cause -----
    java.lang.ExceptionInInitializerError
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at javax.mail.Session.getService(Session.java:607)
         at javax.mail.Session.getTransport(Session.java:541)
         at javax.mail.Session.getTransport(Session.java:484)
         at javax.mail.Session.getTransport(Session.java:464)
         at com.americandatacorp.struts.action.MailAction.execute(MailAction.java:60)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
         at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
         at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
    Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.ClassCastException: org.apache.commons.logging.impl.LogFactoryImpl
         at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:549)
         at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:337)
         at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:394)
         at com.sun.mail.smtp.SMTPTransport.<clinit>(SMTPTransport.java:44)
         ... 27 more
    Caused by: java.lang.ClassCastException: org.apache.commons.logging.impl.LogFactoryImpl
         at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:542)
         ... 30 more
    When I take the same approach and run the process from a main method in a standalone program it sends a mail successfully. Any idea why this is breaking with in the App Server or what this error message means?
    The following is a summary of my code to send the email...
    Properties props = new Properties();
    props.put( "mail.smtp.host", host );
    props.put("mail.smtp.auth", "true");
    Authenticator auth = new ADCAuthenticator(); //implemented within this source file...
    Session session = Session.getInstance( props, auth );
    try {
    MimeMessage msg = new MimeMessage( session );
    msg.setFrom( new InternetAddress ( fromEmailAddress );
    InternetAddress[] address = { new InternetAddress(  toEmailAddress ) };
    msg.setRecipients( Message.RecipientType.TO, address );
    msg.setSubject( "JavaMail APIs Multipart Test" );
    msg.setSentDate( new Date() );
    MimeBodyPart mbp1 = new MimeBodyPart();
    mbp1.setText( msgText1 );
    MimeBodyPart mbp2 = new MimeBodyPart();
    mbp2.setText( msgText2, "us-ascii" );
    Multipart mp = new MimeMultipart();
    mp.addBodyPart( mbp1 );
    mp.addBodyPart( mbp2 );
    msg.setContent( mp );
    Transport.send( msg ); //the exception is thrown here.
    } catch ( MessagingException mex ) {
    mex.printStackTrace();
    Exception ex = null;
    if ( ( ex = mex.getNextException() ) != null ) {
    ex.printStackTrace();
    Is this a problem within my code or a bug in the application server? The root cause:
    Caused by: java.lang.ClassCastException: org.apache.commons.logging.impl.LogFactoryImpl
    concerns me since I'm not making any calls to the application server logging system.
    Thanks for your assistance to anyone who can shed any light on this issue.
    Regards,
    Josh Holtzman

  • Are the any possibilities in any country of the world recover photos from IPad Air which suddenly became uncervicable without any reason. In Local Iport office I was told they will give me a new one with a guarantee? But my backup is not full.Thank u

    Good Evening! A few days ago my IPad air was working perfectly as always. In the evening I went home and when I opened the cover to swith it on I realised it doesn't work. I tried to energize the battery but got no response. I tried to make a hard reset but also it didn't help. I connected it to my PC with ITunes but it didn't see my IPad. I went to IPort office of my city, they looked, and told they will send me a new one because I still have a guarantee (my device was about 6 months). I had used ICloud but It happened so that the backup is not full and I have lost many very important for me photos of my family. ITunes copy wasn't full also. If anybody knows any Apple service in any city of the world please give me advice where to go to recover data from memory of my device. I understand it's my fault, I didnt properly take care of backup copy and also understand that the answer on my quetion is close to 100 percent negative, and such a companies probably don't exist. But will be really grateful for any advice. Thank you!

    First of all: Your iPhone "present" was most likely hacked/jailbroken. The update you did bricked it and it is now useless. Apple will not repair this.
    Second: The warranty is usually only valid for the country it was purchased in. Check before you buy.
    Third: You can set English as default language  on the iPhone . iPhone supports a myriad of diffrent languages. If you buy it Poland it doesnt matter.

  • Need to fetch the last record/row from a table

    Hi,
    I have a requirement like fetching the closing balance of the last record of the table and inserting the same into the opening balance of the immediatetly created next record.
    In simple words, I need to fetch a value from the last row of the record.
    For example, I use the below query,
    select rownum, empno, ename from emp
    where rownum = (select count(rownum) from emp);
    But, the above query does not return any of the record.
    Hence, need help on this.
    Regards,
    Shivakumar A
    Edited by: shiva on Mar 27, 2011 10:14 PM

    Rows in a table are inherently unordered. In order to introduce the concept of "first" and "last", you would need to specify how to order the rows which would require that there was one or more columns in the table that you could order by in order to determine the "last" record.
    In your closing balance example, if we assume that there is something like a BALANCE_DATE column,
    SELECT account_number, balance_amount, balance_date
      FROM (
        SELECT account_number,
               balance_amount,
               balance_date,
               rank() over (partition by account_number order by balance_date desc) rnk
          FROM table_of_balances )
    WHERE rnk = 1Justin

  • What in the world is going on?

    I'm having trouble with making a DVD in iDVD6 on my Apple laptop. I decided to burn a copy of all 500 photos and put them on my iMAC and start making the DVD all over again.
    1st problem - I burned the images in the albums, along with burning the saved slideshow but after it's saved onto my iMAC there is no official saved slideshow with the double slide icon in front of the slideshoe. It only has the word "slideshow" typed in the description.
    #2 problem - When I highlight all the images and then click "slideshow" to make a savd slideshow it does indeed make the saved slideshow. The problem is 90% of the images show a gray screen with a dashed outlined square with an exclamation mark in the middle. But just for a second on each of these images the actual images flashes for a second and then the gray screen with the dashed outline appears. 10% of the images show up perfectly.
    No way in the world making one DVD for a friend should be this hard. I really appreciate all the help I receive here.

    Deborah:
    Try the following:
    First download and run BatChmod on the iPhoto Library folder with the settings shown here, substituting your account name for mine. You can either type in the path to the folder or just drag the folder into that field. Also select one of the original files in the Originals folder of the iPhoto Library folder and bring up the Info window - Command+I. Then select Preview as the default application, even if it's already showing reselect, and click on the Apply to all... button.
    If that doesn't help download iPhoto Library Manager, launch it and use the File->Rebuild library menu option to rebuild that library. Depending on the size of the library it could take a while, about 12 hours for a library of around 5000 photos.
    Question: are you creating the slideshow in iPhoto and sending it to iDVD? If you're just creating the slideshow in iDVD you can export those photos to a folder and then import that folder into iDVD. Saves going thru iPhoto. Might be a workaround if needed. Good luck.

  • To change the height of row of a table

    hi Experts,
    1) Can any one please help me to change the height of row of a table
    2) If i need to display data intable in such a way that data would be displayed in every alternate row, keeping one row empty.
    Points wil be rewarded to helpful answers,
    Regards,
    Sanjyoti.

    hi Jarrod, 
    i want to make a display iview where the data comes from a table, add image beside each data from the table,
    1) if i display data in table i am not able to add image beside each row.
    2)i have also tried using one form and one table displayed side by side where the table has data from data service and form has the images (static), but here again as the height of row can not be changed the image does not fit perfectly beside the rows.
    I have not worked in VC before, so dont know wat exactly cant be done,
    hope you will guide if you have any idea wat could be done
    I got the help given below but not able to understand the flow of what is done 
    First create a button to trigger an action (let's say the action is called "go").
    Drag a line and create a signal out set go as the event, name the signal out as "sig".
    Create 4 numeric fields in the signal out "num1",..,"num4".
    Map num1 <- 1
    Add a signal in to the model, name it "sig" and create 4 numeric field to it ("num1",..,"num4" as well).
    Drag a line from the signal in and choose a form from the context menu.
    4 recordsl will appear in the form. set them as visible and as spinner control.
    drag a line from the form's out port and add a signal out named "go".
    Map is as follows:
    num1 <= @num1+1
    num2 <= 1
    num3 <= if(@num2==1,1,0)
    num4 <= if@num3==1,1,0)
    Add a gaurd condition to the line @num1<4 and name the event "Next_Event"
    double click on num1 to open the properties popup.
    For num1 define a custom action named "Next_Event"
    For num2 define a custom action named "Pass1"
    For num3 define a system action move row - move next
    For num4 define a custom action named "pass2"
    drag a line from the form and add data store. Create 2 field in it "first" and "second"
    set the event to be pass1 and map the value you want from the table to "first".
    Create another line from the form to the data store with event pass 2 that maps value to second.
    Create a new form with 2 field which default vlaue is the value in the data store.
    Points would be awarded to helpful answers. 
    Regards,
    Sanjyoti.

  • Some body please help about the Inventory FIFO (FIRST IN FISRT OUT ) query is very slow

    I have table ''tran_stock''  to store a transaction (IN-OUT) of the stock. 
    The problem is when the  transaction rows are more than 50000 the query to get the balance
    stock (Total 'IN' - Total'Out' by FIFO) is very slow . Somebody please suggest me to do this.
    This is my query
    ;WITH OrderedIn as (
        select *,ROW_NUMBER() OVER (PARTITION BY Stock_ID ORDER BY TranDate) as rn
        from Tran_Stock
        where TxnType = 'IN'  
    ), RunningTotals as (
        select  Stock_ID ,Qty,Price,Qty as Total,Cast(0 as decimal(10,2)) as PrevTotal ,  trandate , rn  from OrderedIn where rn = 1
        union all
        select  rt.Stock_ID,oi.Qty,oi.Price,Cast(rt.Total + oi.Qty as decimal(10,2)),Cast(rt.Total as decimal(10,2)) , oi.TranDate ,oi.rn 
        from
            RunningTotals rt
                inner join
            OrderedIn oi
                on
                    rt.Stock_ID = oi.Stock_ID and
                    rt.rn = oi.rn - 1
    , TotalOut as (
    select Stock_ID ,SUM(Qty) as Qty from Tran_Stock where TxnType='OUT'   group by Stock_ID
    ) ,  GrandTotal as 
    select
         rt.Stock_ID , rt.QTY AS original ,SUM(CASE WHEN PrevTotal > isNULL(out.Qty, 0) THEN rt.Qty ELSE rt.Total - isNULL(out.Qty, 0) END) AS QTY , Price , SUM(CASE WHEN PrevTotal > isNULL(out.Qty, 0) THEN rt.Qty ELSE rt.Total - isNULL(out.Qty,
    0) END * Price) AS Ending , rt.TranDate
    from
        RunningTotals rt
            LEFT join
        TotalOut out
            on
                rt.Stock_ID = out.Stock_ID
    where rt.Total > isNull(out.Qty , 0)
    group by rt.Stock_ID , Price , rt.TranDate  , rt.QTY
    ) SELECT * FROM  GrandTotal  order by TranDate  option (maxrecursion 0)
    AND  this is my Table with some example data
    USE [TestInventory]
    GO
    /****** Object:  Table [dbo].[Tran_Stock]    Script Date: 12/15/2014 3:55:56 AM ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[Tran_Stock](
    [TranID] [int] IDENTITY(1,1) NOT NULL,
    [Stock_ID] [int] NULL,
    [TranDate] [date] NULL,
    [TxnType] [nvarchar](3) NULL,
    [Qty] [decimal](10, 2) NULL,
    [Price] [decimal](10, 2) NULL
    ) ON [PRIMARY]
    GO
    SET IDENTITY_INSERT [dbo].[Tran_Stock] ON 
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (1, 1, CAST(0x81350B00 AS Date), N'IN', CAST(200.00 AS Decimal(10, 2)), CAST(750.00 AS Decimal(10, 2)))
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (2, 1, CAST(0x85350B00 AS Date), N'OUT', CAST(100.00 AS Decimal(10, 2)), NULL)
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (3, 1, CAST(0x8A350B00 AS Date), N'IN', CAST(50.00 AS Decimal(10, 2)), CAST(700.00 AS Decimal(10, 2)))
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (4, 1, CAST(0x90350B00 AS Date), N'IN', CAST(75.00 AS Decimal(10, 2)), CAST(800.00 AS Decimal(10, 2)))
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (5, 1, CAST(0x99350B00 AS Date), N'OUT', CAST(175.00 AS Decimal(10, 2)), NULL)
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (6, 2, CAST(0x82350B00 AS Date), N'IN', CAST(150.00 AS Decimal(10, 2)), CAST(350.00 AS Decimal(10, 2)))
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (7, 2, CAST(0x88350B00 AS Date), N'OUT', CAST(40.00 AS Decimal(10, 2)), NULL)
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (8, 2, CAST(0x8C350B00 AS Date), N'OUT', CAST(10.00 AS Decimal(10, 2)), NULL)
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (9, 2, CAST(0x98350B00 AS Date), N'IN', CAST(90.00 AS Decimal(10, 2)), CAST(340.00 AS Decimal(10, 2)))
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (12, 2, CAST(0x98350B00 AS Date), N'IN', CAST(10.00 AS Decimal(10, 2)), CAST(341.00 AS Decimal(10, 2)))
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (13, 2, CAST(0x99350B00 AS Date), N'OUT', CAST(30.00 AS Decimal(10, 2)), NULL)
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (14, 2, CAST(0x81350B00 AS Date), N'IN', CAST(120.00 AS Decimal(10, 2)), CAST(350.00 AS Decimal(10, 2)))
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (15, 2, CAST(0x89350B00 AS Date), N'OUT', CAST(90.00 AS Decimal(10, 2)), NULL)
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (17, 3, CAST(0x89350B00 AS Date), N'IN', CAST(90.00 AS Decimal(10, 2)), CAST(350.00 AS Decimal(10, 2)))
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (18, 3, CAST(0x8A350B00 AS Date), N'OUT', CAST(60.00 AS Decimal(10, 2)), NULL)
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (19, 3, CAST(0x5D390B00 AS Date), N'OUT', CAST(20.00 AS Decimal(10, 2)), NULL)
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (20, 1, CAST(0x81350B00 AS Date), N'IN', CAST(200.00 AS Decimal(10, 2)), CAST(750.00 AS Decimal(10, 2)))
    INSERT [dbo].[Tran_Stock] ([TranID], [Stock_ID], [TranDate], [TxnType], [Qty], [Price]) VALUES (21, 1, CAST(0x85350B00 AS Date), N'OUT', CAST(100.00 AS Decimal(10, 2)), NULL)

    Hi,
    You dont have any Index on the table, so the filters (where part in the queries) and the sorting (order by, group by) make your query slow. it take time to sort or filter data without Index. It is like reading a book with 3k pages and trying to find a specific
    subject. You have to read the all books, but if you have "table of contents" which is the book index, then this can be done fast.
    * check the Execution plan (the image here show part of your query's execution plan). the query scan the all table 3 times...
    there is one sort that use 81% of the query resources... I will go sleep soon (it is
    23:58 In Israel now), and I don't know if I will have time to read the query itself and improved it, so lets start with indexes :-) 
    ** as a first step after or before you create the right Indexes you should remove the recursive all together. there is no reason for lopping the data when you can use it as a SET. This is where the relational database's power come to life :-)
    for example check this code. I only use your first part of the code using the first 2 CTE tables. compare result.
    ;WITH
    OrderedIn as (
    select *,ROW_NUMBER() OVER (PARTITION BY Stock_ID ORDER BY TranDate) as rn
    from Tran_Stock
    where TxnType = 'IN'
    , RunningTotals as (
    select Stock_ID ,Qty, Price, Qty as Total, Cast(0 as decimal(10,2)) as PrevTotal, trandate , rn
    from OrderedIn where rn = 1
    union all
    select
    rt.Stock_ID, oi.Qty, oi.Price, Cast(rt.Total + oi.Qty as decimal(10,2))
    ,Cast(rt.Total as decimal(10,2))
    , oi.TranDate ,oi.rn
    from RunningTotals rt
    inner join OrderedIn oi on rt.Stock_ID = oi.Stock_ID and rt.rn = oi.rn - 1
    select * from RunningTotals
    -- This will do the same as the above query
    select
    Stock_ID, Qty, Price
    , SUM(Qty) over (PARTITION BY Stock_ID order by TranDate ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) as Total
    ,TranDate--,TranID, TxnType
    from Tran_Stock
    where TxnType = 'IN'
    order by Stock_ID
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

Maybe you are looking for

  • Keybord is not working properly in win7/bootcamp, there is no"@"

    I am running win 7 in bootcamp 3.3, i have also installed outlook 2010. Now i cannot use the "@" in mail adresses. the 2L2 is working properly. It is also possible to create an "@" by using a external windows keybord. has anyone a idea to make a shor

  • No longer able to purchase anything in the iTunes store

    As of yesterday, I can no longer make purchases. Pressing the "Buy" button just doesn't do anything. Any word from Apple about this problem? I can see others are experiencing the same issue.

  • Conforming and Indexing Errors, Media Pending, Audio won't play in timeline

    I'm working on a desktop PC which is running Windows 7 Professional 64-bit and Adobe Premiere Pro (version CS5.5). It's currently utilizing a second gen. 3.4Ghz i7 2600 processor, 16GB of 1600Mhz RAM, 64GB solid-state drive and a ASUS P8Z68-V Intel Z

  • How to resolve "Failed to open the panel socket"?

    I am trying to run some of our Flexunit tests on Unix OS.  To setup my environment I followed all of the steps on http://docs.flexunit.org/index.php?title=Ant_Task document.  My environment is now: OS: RedHat 5 64bit SDK 4.1.0 Flexunit version 4.1.0-

  • How to remove the letters from the Application vie...

    Hi, Just got my new Lumia920 yestarday in AbuDhabi and very happy with it. ok, it was showing the application and all setting one below eachother, after i download any software from the Market, a letters comes up and make my apps in like a group (lik