BCB Components rotating around DirectX

Welcome to BCB-Tools.com Latest News

Development Tools Demo Applications Step-By-Step Tutorials Component Reference

Register Here Available Downloads

Frequently Asked Questions Discussion Forums Receive emails from BCB-Tools.com Send us some Feedback

Links to other sites Information about the BCB-Tools.com website


    FORUM MESSAGE
    Go to the Welcome Page
        FORUM MESSAGE

    You are reading a General forum message.

    Re: Stored Procedures ...basic stored procedure

    Author: Israel Luengo

    Date Posted: 2005-10-13 10:57:57



    Here we can see a example of basic stored procedure:

    ----------------------------------------------------------------------------------------------------------------------------

    BEGIN
    SELECT SUM(INTELIGENCIA)
    FROM TABLA_HOJAS_PLAYER
    WHERE FECHA >=:FECHA_I
    INTO :TOT;
    END

    -----------------------------------------------------------------------------------------------------------------------------

    given a GDB called TABLA_HOJAS_PLAYER we SUM the registers
    from column INTELIGENCIA where the DATE >=FECHA_I (that it's defined as input parameter) and result given to TOT
    defined as output floating variable in IBEasy+

    for example....

    INTELIGENCIA                 FECHA
    ----------------------------------------

             5                          01/01/2000
             4                          01/01/1990
             2                          02/02/2000


    the result from stored procedure if FECHA_I have the '01/01/2000' value....must be 7 (resulting from sum the values from INTELIGENCIA column in registers that complain with date filter query....




    REPLY TO THIS MESSAGE?
    Top    

    You can post a reply to this General message using the form below:
    Your Name:


    Message Subject:


    Message Body:


    Verification:





    When ready, click on the submit button below:






Top

Welcome |  Latest News |  Tools |  Demos |  Tutorials |  Reference |  Register |  Downloads
FAQ |  Forums |  Feedback |  Mailing List |  Links |  Site Information

This page is Copyright © 2007 Darren John Dwyer, Australia. All Rights Reserved.
Borland C++ Builder, CBuilder, etc are Trademarks of Borland Corporation.
DirectX, DirectDraw, Windows, etc are Trademarks of Microsoft Corporation.