Query to count no.of orders using joins and subqueries

I have 3 tables i want to show the no. of orders when order placed date is equal to Create date(user registered date)
order table contains following columns
[OrderId]
      ,[UserId]
      ,[OrderPlaced]
      ,[Paid]
      ,[DatePaid]
      ,[PaymentMethod]
      ,[PaymentRef]
      ,[BillTo]
      ,[AddressLine1]
      ,[AddressLine2]
      ,[City]
      ,[County]
      ,[CountryId]
      ,[PostCode]
      ,[Shipped]
      ,[DateShipped]
      ,[Packing]
      ,[ShipTo]
      ,[ShippingAddressLine1]
      ,[ShippingAddressLine2]
      ,[ShippingCity]
      ,[ShippingCounty]
      ,[ShippingCountryId]
      ,[ShippingPostCode]
      ,[ShippingCost]
      ,[ShippingOptionId]
      ,[AllocatedPoint]
      ,[PointValue]
      ,[PromoCode]
      ,[DiscountValue]
      ,[InvoiceNumber]
      ,[IPAddress]
      ,[StatusCode]
      ,[IssueCode]
      ,[USStateId]
      ,[ShippingUSStateId]
      ,[CurrencyCode]
      ,[ExchangeRate]
      ,[LastActivityDate]
      ,[AwardedPoint]
      ,[Archived]
      ,[LastAlertDate]
aspnet_Membership table contains
[Password]
      ,[PasswordFormat]
      ,[PasswordSalt]
      ,[MobilePIN]
      ,[Email]
      ,[LoweredEmail]
      ,[PasswordQuestion]
      ,[PasswordAnswer]
      ,[IsApproved]
      ,[IsLockedOut]
      ,[CreateDate]
      ,[LastLoginDate]
      ,[LastPasswordChangedDate]
      ,[LastLockoutDate]
      ,[FailedPasswordAttemptCount]
      ,[FailedPasswordAttemptWindowStart]
      ,[FailedPasswordAnswerAttemptCount]
      ,[FailedPasswordAnswerAttemptWindowStart]
      ,[Comment]
Account table contains 
[UserId]
      ,[FirstName]
      ,[LastName]
      ,[Email]
      ,[ContactNumber]
      ,[DOB]
      ,[Note]
my code is
SELECT a.UserId, m.Email, o.OrderPlaced, o.OrderId, m.CreateDate
FROM Account a, aspnet_Membership m, Orders o
where a.UserId=o.UserId and a.Email=m.Email ORDER BY a.UserId 
I had displayed the required details using joins but now i want the number of orders when order placed date is equal to Create date(user registered date)
can anyone help me iam a fresher
Thanks in advance.

You cant use subquery in ORDER BY like this.
you need to do it like this
SELECT a.UserId, m.Email, o.OrderPlaced, o.OrderId, m.CreateDate
FROM Account a
INNER JOIN aspnet_Membership m
ON a.Email=m.Email
INNER JOIN (SELECT *,COUNT(OrderId) OVER (PARTITION BY Createddate) AS Cnt FROM Orders) o
on a.UserId=o.UserId
ORDER BY a.UserId,o.Cnt
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Similar Messages

  • Using join and batch reading in the same query

    Hi,
    I wonder if it is possible to use "Joining" and "batch reading" in the same query.
    For example I Have
    A -> 1-1 B
    A -> 1-1 B
    B -> 1-M C
    This is the case where I have two separate 1-1 relationships to the same class B from A. Toplink 10.0.3 can manage it nicely through joining.
    Now, I would like to read a set of As (with its 2 Bs) and all Cs for each B.
    It seems that the following configuration does not work:
    A -> 1-1 B (use joining)
    A -> 1-1 B (use joining)
    B -> 1-M C (Batch read)
    Any help would be greatly appreciated
    Tony.

    James,
    Would you be so kind to look at the following code?
    Am I formulating it correctly to achieve my desired behavior?
    Trip.class -> 1-1 PickupStop
    Trip.class -> 1-1 DropoffStop
    PickupStop and DropoffStop extend Stop and use same table (STOP)
    Stop -> 1-M StopEvents
    I would like to fetch all Trips, with their Stops and all StopEvents in 2 queries:
    1. Trip joined with Stop
    2. Batchread StopEvents
    Code:
    ReadAllQuery raq = new ReadAllQuery(Trip.class);
    Expression qexp1 = new ExpressionBuilder();
    Expression qexp2 = new ExpressionBuilder();
    raq.addJoinedAttribute("pickupStop");
    raq.addJoinedAttribute("dropoffStop");
    raq.addBatchReadAttribute(qexp1.get("pickupStop").get("vStopEvents"));
    raq.addBatchReadAttribute(qexp2.get("dropoffStop").get("vStopEvents"));

  • Purchase Order to Purchase Order using BPEL and/or XML Gateway

    Hi,
    Is there a way to do create a duplicate Purchase Order in another instance using BPEL and/or XML Gateway? We're looking to do A2A transactions, namely duplicating data from one instance to another (of course the functional setups would have to be the same). Thanks!!

    this is the perfect usace for the upcoming ESB (shuffling data with transforming from A to B) - but this can be done with BPEL too .. there are some solutions to this
    1) on a database level (db to db)
    2) having events setup'ed in the master instance, that fire a process that get's the data
    3) and then using the functions from iRep
    hth clemens

  • 2 Questions How to use join() and Which is best coding pratice.

    Hi All,
    I have 2 Question:
    I have a MultipleThread class and when I try to use join method of thread class I get compile time error(so i commented it out).I also wanted to know is the best approch to write a threaded program.I also wanted to know about the best coding pratice for threadand also do I need to declare Instance variable thread and name(Is it possible to create multiple thread with out declaring instance variable thread and name , if yes which one is the better way 1> with instance variable 2> with out instance variable)

    Sorry here is the code.
    package javaProg.completeReferance;
    public class MultipleThread implements Runnable
         Thread thread;
         String name;
         MultipleThread(String nam)
              this.name=nam;
              thread = new Thread(this,name);
              thread.start();
         public void run()
              try
                   for (int i=1;i<=10;i++ )
                        Thread.sleep(1000);
                        System.out.println("Thread "+name+" "+i);
              catch (InterruptedException e)
                   System.out.println(""+e);
         public static void main(String [] args)
              try
                   MultipleThread t1=new MultipleThread("One");
                   MultipleThread t2=new MultipleThread("Two");
                   MultipleThread t3 =new MultipleThread("Three");
                   //t1.join();
                   //t2.join();
                   //t3.join();
                   for (int i=1;i<=10;i++ )
                        Thread.sleep(1000);
                        System.out.println("Parent Thread "+i);
              catch (InterruptedException e)
                   System.out.println(" "+e);
    }

  • How used join and projection in TC3.

    Hi to all experts,
    my quarry is that why Time Constraint 3 infotypes(pa0021) are not used in join and projection. i hope we may used with where clause subty and objps. in this way we may be used. if we should not be used explain me. then next how can we process these type of records. Please explain me in detail.
    Best Regards:
    Mahesh

    Hi LightwaV - the best place to get support for the Adobe Education Exchange is to go through the Help Center on the AEE - http://edex.adobe.com/help-center/. Once there you can navigate through the help items to find answers to common questions and if you're problem isn't solved, you can email the AEE support team. They will be in a better position to help you and troubleshoot your account.
    Hope this helps!

  • MDO select query: how to control sort order using parameter

    Hi experts, is there a way of controling the sort order of an MDO select query using some parameter?
    I was thinking about using some statement like CASE [Param.1] WHEN 'abc' THEN [ORDER_NO]...END in sort section of the query but it is not working.
    Of course I colud go for various select queries...but I am wondering if it can be done using only one?
    Any ideas?
    Thanks for any help

    Hi Marco,
    Yes this can be achieved dynamically using SortExpr under dynamic link assignment in MDOAction block if you are using a transaction to call it.
    Please check below thread:
    Re: MDO Query Action Block In MII Transaction
    Or else, this [Param.1] thing should work as well provided it doesn't get the logic part in it, just pass the columns names separated by comma. Haven't tried it though, will check it for you.
    Best Regards,
    Swaroop

  • Counter output 2V when using gate and source at the same time..

    I'm using NI TIO-6601.
    I connected output of counter_0 to pfi 34 and pfi27 on hardware(CB-68LP).
    pfi 34 is used for gate to counter_1 and counter_2.
    With this gate, counter_1 and counter_2 generate pulse trains when the gate is in high state.
    pfi 27 is used for source to counter_3.
    With this source, I'm trying to let counter_3 count event on counter_0.
    However, after this connection, the voltage from counter_0 is about 2V measured by Oscilloscope.
    Also, counter_3 cannot count the event on counter_0.
    Is there any problem on my connection ? or any tips for solving this problem??
    Thanks in advance!!
    p.s. It works when only two counters are working.
    for example, when counter_0 generates pulse tra
    in and output is connected to pfi_27, then counter_3 can count the event on counter_0.
    Thanks again!

    Hello,
    Thank you for contacting National Instruments.
    This issue may be related to amount of current the output of counter 0 can produce. You may want to try a different method for making these connections. Try routing your counter 0 output on to RTSI line 1. Then use RTSI1 as the gate for counters 1 and 2 and the source for counter 3. This way, you will not need to use two seperate PFI connections.
    If you are using Trad. DAQ and LabVIEW you will need to use the Route Signal.vi. If you are using DAQmx, you will need to use the Export Signal.vi
    Regards,
    Bill B
    Applications Engineer
    National Instruments

  • Find production order using quote and/or sales order number

    How can I find the related production order if I only have the quote/sales order number and line item?  I know that I can go through AFPO and/or AFKO but is there another way?
    Regards,
    Davis

    In the Table AFPO, the Field KDAUF contains the Sales Document Number and KDPOS the Line Item Number.   If you are looking for a Transaction to Enter the Sales Document Number at, use TCode CO26.

  • Exporting query results into a csv file using arabic and hebrew chars

    Hi,
    iv'e encountered a problem, using plsql to export a query into a csv file.. the arabic turns into question mark. Do you have any idea why?

    Usually this indicates a mismatch between client and database character set.
    How do you export this query?
    What is your database version?
    What is your client OS?
    T.

  • Sales order Using LSMW and BAPI BUS2032

    Hi Guys,
    I am trying to use LSMW for creating sales order through BAPI.
    Business Object      BUS2032
    Method               CREATEFROMDAT2          
    Message Type         SALESORDER_CREATEFROMDAT2
    Basic Type           SALESORDER_CREATEFROMDAT202
    I can do it using a BDC program.
    I want to know how the sales order flat file will look like (one header and multiple line item)if i am using LSMW with BAPI and how it is mapped for multiple line items.
    Thanks in Adv.
    Akhil

    See if you can get something out of this.
    One simple step by step example
    Complete the step one (you are using the correct BAPI )
    insetp 2(Maintain Source Structures) create source structures like with the header and details hierarchy                                                                               
    5  ZCFOF0021_HDR     Header                                              
               ZCFOF0021_PARTNER        Partner                                                                               
    ZCFOF0021_ITM            Item Detail                                                                               
    In Step 3(Maintain Source Fields) create the fields for all source structures like below example                                                                               
    5  ZCFOF0021_HDR   Header                        OLDNR         C(008)    Legacy JDE Sales Order Number                                                                               
    VKORG         C(004)    Sales Organization                                                                               
    VTWEG         C(002)    Distribution Channel                                                                               
    SPART         C(002)    Division                                                                               
    AUART         C(004)    Sales Document Type                                                                               
    VDATU         C(008)    Requested delivery date                                                                               
    BSTKD         C(020)    Customer purchase order number                                                                               
    BSARK         C(004)    Customer purchase order type                                                                               
    BSTDK         C(008)    Customer purchase order date                                                                               
    INCO1         C(003)    Incoterms (part 1)                                                                               
    INCO2         C(028)    Incoterms (part 2)                                                                               
    ZTERM         C(004)    Terms of payment key                                                                               
    LIFSK         C(002)    Delivery block (document header)                                                                               
    FAKSK         C(002)    Billing block in SD document                                                                               
    WAERK         C(005)    SD document currency                                                                               
    KURSK         C(009)    Exchange Rate for Pricing and Statistics                                                               
           AUTLF         C(001)    Complete delivery defined for each sales order                                                         
           VSBED         C(002)    Shipping conditions                                                                               
    ZOTC_PATNAME  C(035)    Patient Name                                                                               
    ZOTC_PATREFNO C(035)    Patient Reference Number                                                                               
    ZOTC_IMPDATE  C(008)     Implant Date                                                                               
    BNAME         C(030)    Branching name                                                                               
    TAXK1         C(001)    Alternative tax classification                                                                               
    5  ZCFOF0021_PARTNER         Partner                                                                               
    OLDNR        C(008)    Legacy JDE Sales Order Number                                                                               
    PARVW        C(002)    Partner function                                                                               
    KUNNR        C(010)    Sold To                                                                               
    NAME1        C(035)    Name 1                                                                               
    STRAS        C(035)    House number and street                                                                               
    STR_SUPPL1   C(040)    Street 2                                                                               
    LAND1        C(003)    Country Key                                                                               
    PSTLZ        C(010)    Postal Code                                                                               
    ORT01        C(035)    City                                                                               
    REGIO        C(003)    Region (State, Province, County)                                                                               
    AUART        C(004)     Sales Document Type                                                                               
    5  ZCFOF0021_ITM             Item Detail                                                                               
    OLDNR        C(008)    Legacy JDE Sales Order Number                                                                               
    MATNR        C(018)    Material Number                                                                               
    WERKS        C(004)    Plant                                                                               
    LGORT        C(004)    Storage Location                                                                               
    VRKME        C(003)    Sales unit                                                                               
    KSCHL2       C(004)    Condition type                                                                               
    KBETR2C      C(011)    Condition rate with decimal places and minus sign                                                    
              KWAER2       C(005)    Currency key                                                                               
    WMENGC       C(013)    Order qty in sales units - 00009001 corresponds to 9.001                                             
              CHARG        C(010)    Batch Number                                                                               
    In Step 4 (Maintain Structure Relations)  assign source structures to target strucutres like below                                                                               
    E1SALESORDER_CREATEFROMDAT2 Header Segment                                               <<<< ZCFOF0021_HDR     Header                                                                               
    E1BPSDHD1                   Communication Fields: Sales and Distribution Document Header <<<< ZCFOF0021_HDR     Header            
        E1BPSDHD1X                  Checkbox Fields for Sales and Distribution Document Header                                            
        E1BP_SENDER                 Logical System of Sender                                                                               
    E1BPSDLS                    SD Checkbox for the Logic Switch                                                                      
    5  E1BPSDITM                   Communication Fields: Sales and Distribution Document Item   <<<< ZCFOF0021_ITM     Item Detail                                                                               
    E1BPSDITM1                  Communication Fields: Sales and Distribution Document Item                                                                               
    E1BPSDITMX                  Communication Fields: Sales and Distribution Document Item                                            
        E1BPPARNR                   Communications Fields: SD Document Partner: WWW              <<<< ZCFOF0021_PARTNER Partner           
        E1BPSCHDL                   Communication Fields for Maintaining SD Doc. Schedule Lines  <<<< ZCFOF0021_ITM     Item Detail       
        E1BPSCHDLX                  Checkbox List for Maintaining SD Document Schedule Line                                               
        E1BPCOND                    Communication Fields for Maintaining Conditions in the Order <<<< ZCFOF0021_ITM     Item Detail       
        E1BPCONDX                   Communication Fields for Maintaining Conditions in the Order                                          
        E1BPCUCFG                   CU: Configuration Data                                                                               
    E1BPCUINS                   Instances of Several Configurations                                                                   
        E1BPCUPRT                   Part_of Entries of Several Configurations                                                             
        E1BPCUVAL                   Characteristic Values of Several Configurations                                                       
        E1BPCUBLB                   BLOB Internal Configuration Data (SCE)                                                                
        E1BPCUVK                    Variant Condition Keys in Configurations                                                              
        E1BPCUREF                   CU: Reference Order Item / Instance in Configuration                                                  
        E1BPCCARD                   Communication Table: Means of Payment Order/Billing Document                                          
        E1BPSDTEXT                  Communication Fields: SD Texts                                                                        
        E1BPSDKEY                   Key in Sales and Distribution Document                                                                
        E1BPPAREX                   Ref. Structure for BAPI Parameter EXTENSIONIN/EXTENSIONOUT   <<<< ZCFOF0021_ITM     Item Detail       
    5  E1BPADR1                    BAPI Reference Structure for Addresses (Org./Company)        <<<< ZCFOF0021_PARTNER Partner                                                                               
    E1BPADR11                   BAPI Reference Structure for Addresses (Org./Company)        <<<< ZCFOF0021_PARTNER Partner       
    In Step 5(Maintain Field Mapping and Conversion Rules) assign source fields to target fields
    Map each filed to the target fields.

  • How to control navigation flow in order using tab and shift tab key?

    In JDeveloper 11.1.1.3, how to set the focus on ADF components in order while a tab key is clicked.I dint find any useful articles so far but I think Javascript is the only way to acheive this.Can anyone give me any ideas on this pls?
    Thanks,
    Swathi Patnam

    Swathi Patnam wrote:
    In JDeveloper 11.1.1.3, how to set the focus on ADF components in order while a tab key is clicked.I dint find any useful articles so far but I think Javascript is the only way to acheive this.Can anyone give me any ideas on this pls?Javascript is possibly one way to achieve it. Take a look at an extract from Frank Nimphius' book [url http://books.google.gr/books?id=wlXyDIEyIHEC&pg=PA615&dq=Nimphius+%22tab+order%22&hl=en&ei=D6bATJqgMYb54Ab06cnTCw&sa=X&oi=book_result&ct=result&resnum=1&ved=0CCMQ6AEwAA#v=onepage&q&f=false] here suggesting an implementation based on JavaScript. Of course you will have to buy the book to see the complete solution. ;)
    Since the tab order is from top to bottom, the other solution suggested - check this post: Re: How to set tab order in ADF - is to keep each horizontal "line" of components in a af:panelFormLayout with its rows attribute set to 1. This is a work-around not based on a tab index but it would do the job if you can consistently group your components inside panelFormLayouts as mentioned.

  • Opitmizing sql query using join

    Hello all,
    I have the following query that needs to be written using Joins. I am not sure if this is the correct place to post this question
    Tables used:
    1. activities: (a_id, n_id, market, amount, act_type, act_number, act_seq) --the money paid by the registrant for the market.
    2. market_reg (a_id, n_id, market, reg_stage) -- for each market there are registrants
    3. market (market) -- stores market details
    I need to get sum of total_payment_amount using the condition. I know the query is not opitmized and its not the correct way to get info. I was
    wondering if you guys can suggest me a query that will pull the information by using joins
    SELECT a.a_id, a.n_id, SUM (a.total_payment_amount)
    FROM activities a
    WHERE a.market = 'marketname'
    AND a.a_id||a.n_id IN
    (SELECT mr.a_id||mr.n_id
    FROM market_reg mr
    WHERE mr.market = 'marketname'
    AND mr.reg_stage = 'P'
    AND mr.n_id <> 0)
    AND (a.act_type = 'A'
    OR (a.act_type IS NULL
    AND a.act_number||act_seq IN
    ( SELECT a1.act_number||a1.act_seq
    FROM activities a1
    WHERE a1.market = 'marketname'
    GROUP BY a1.act_number||a1.act_seq
    HAVING COUNT (a1.act_number||a1.act_seq) = 1)))
    GROUP BY a.a_id, a.n_id;
    Thanks

    Hi,
    I see you have already re-posted this on a more appropriate forum, the SQL and PL/SQL forum.
    Thanks,
    Gary

  • What is the best way to Optimize a SQL query : call a function or do a join?

    Hi, I want to know what is the best way to optimize a SQL query, call a function inside the SELECT statement or do a simple join?

    Hi,
    If you're even considering a join, then it will probably be faster.  As Justin said, it depends on lots of factors.
    A user-defined function is only necessary when you can't figure out how to do something in pure SQL, using joins and built-in functions.
    You might choose to have a user-defined function even though you could get the same result with a join.  That is, you realize that the function is slow, but you believe that the convenience of using a function is more important than better performance in that particular case.

  • Creating an Order Processing System Using XML and JavaBean/EJB

    Hi,
    I'm looking to design a solution for the following problem:
    A distributor creates a purchase order from a home grown system. This purchase order is sent to the company as a flat text file. This file must then be validated for both syntax and data values and then processed by their ERP system running on an AS/400.
    The solution I would like to provide is to place the data from this text file into an XML file and then create a system composed of server side components (either Java Beans or Enterprise Java Beans) that would parse the information and call the back end ERP processes (using business methods from within the beans). I have already developed a web app that processes orders using JSP and Java Beans. In this case however, the order will never be seen by a human unless it fails validation. I figured using XML to do this would not only be good for this part but also improve the e-commerce side as well. My only question is how to submit an XML document to a bean for processing without user intervention. Any information you can give me on this or even to point me in the right direction would be greatly appreciated. Thank you for your time.

    Hello,
    Thank you for responding to my question. I have several books here on XML but have not gotten very far in them as of yet. I understand how to create an XML document and a DTD, but I guess I haven't gotten far enough to understand how "submit" per say an XML page like you would an HTML form and then proceed to retrieve the data from the request parameters. I will research this further.

  • Record count not matching when using HS while querying.

    Hello,
    We are using 10gr2.
    I created a Database link connecting to lotus notes using HETROGENEOUS SERVICES and ODBC.
    When we query the table in Lotus Notes using database link oracle is showing less records.
    For example.
    Lotus Notes database have a table which contains 873 records.
    When we query this table from oracle we are getting the count of 722 records.
    Any ideas why this is happening.
    Thank you for the help.
    Regards
    Seshadri Thope

    Oracle Corporation --- THURSDAY JAN 29 2009 10:34:23.786
    Heterogeneous Agent Release
    10.2.0.4.0
    (0) hoagprd (2): ; hoagprd Entered.
    (0) HOACONN.C (270): ; [Generic Connectivity Using ODBC] version: 10.2.0.0.0080
    (0) HOACONN.C (323): ; Class version: 300
    (0) hoagprd (2): ; hoagprd Exited with retcode = 0.
    (0) hoainit (3): ; hoainit Entered.
    (0) (0): ; connect string is: defTdpName=DATABASEA;SYNTAX=(ORACLE8_HOA, BASED_ON=ORACLE8, IDENTIFIER_QUOTE_CHAR="", CASE_SENSITIVE=CASE_SENSITIVE_QUOTE);BINDING=<navobj><binding><datasources><datasource name='DATABASEA' type='ODBC' connect='socrates'><driverProperties disableExtendedFetch='true'/></datasource></datasources><remoteMachines/><environment><optimizer noFlattener='true'/><misc year2000Policy='-1' consumerApi='1' codepage='WE8ISO8859P15' sessionBehavior='4'/><queryProcessor parserDepth='2000' tokenSize='1000' noInsertParameterization='true'
    noThreadedReadAhead='true' noCommandReuse='true'/><debug generalTrace='true'/></environment></binding></navobj>
    (0) ORACLE GENERIC GATEWAY Log File Started at 2009-01-29T10:34:24
    (0)
    (0) hoainit (3): ; hoainit Exited with retcode = 0.
    (0) hoalgon (7): ; hoalgon Entered. name = .
    (0) Created new ODBC connection (32056720)
    (0) hoalgon (7): ; hoalgon Exited with retcode = 0.
    (0) hoaulcp (4): ; hoaulcp Entered.
    (0) hoaulcp (4): ; hoaulcp Exited with retcode = 0.
    (0) hoauldt (5): ; hoauldt Entered.
    (0) hoauldt (5): ; hoauldt Exited with retcode = 0.
    (0) hoabegn (9): ; hoabegn Entered. formatID = 306206, hoagttln = 38, hoagttid = DATABASEA.e53cf895.2.35.27286, hoagtbln = 10, hoagtbid = , tflag = 0, initial = 1
    (0) hoabegn (9): ; hoabegn Exited with retcode = 0.
    (0) hoadtab (26): ; hoadtab Entered. count = 1
    (0) hoadtab (26): ; schema_name = , table_name = TABLEA
    (0) odbc_rec: select * from "TABLEA"
    (0) nvOUT (D:\Work_Builds\connect_5010\src\qp\QP_SQTXT.C 89): select NON_UNIQUE, INDEX_NAME, TYPE, SEQ_IN_INDEX, COLLATION, CARDINALITY, COLUMN_NAME from NAV_PROC:SP_STATISTICS('DATABASEA', '%', 'TABLEA', 1, 0, 0) order by 3, 1, 2, 4
    (0) nvRETURN (D:\Work_Builds\connect_5010\src\qp\qpsynon.c 1171): -1
    (0) <<<<<<<<<<<<<<<<<<< Execution Strategy Begin <<<<<<<<<<<<<<<<<<<<<<<<<<<<
    (0) Original SQL:
    (0) select NON_UNIQUE , INDEX_NAME , TYPE , SEQ_IN_INDEX , COLLATION , CARDINALITY , COLUMN_NAME from NAV_PROC : SP_STATISTICS ( 'DATABASEA' , '%' , 'TABLEA' , 1 , 0 , 0 ) order by 3 , 1 , 2 , 4
    (0)
    (0)
    (0) Accessing saved query spec SP_STATISTICS()
    (0) from NAV_PROC DB
    (0)
    Execution Strategy End >>>>>>>>>>>>>>>>>>>>>>>>>>>>(0) HOAUTIL.C (1284): ; ------ hoadtab (hoat) -------:
    (0) HOAUTIL.C (1287): ; hoatnam: TABLEA, hoatnml: 20, hoatnrw: 711, hoatarl: 110000
    (0) HOAUTIL.C (1298): ; ------ hoadtab (hoai) -------:
    (0) HOAUTIL.C (1299): ; n_index_stat: 0
    (0) HOAUTIL.C (1249): ; -------- hoadtab for table TABLEA---------:
    (0) HOAUTIL.C (1250): ; hoadamsz: 22, hoadasiz: 22, hoadambr: 1, hoadabrc: 0, hoadawht: 5
    (0) HOAUTIL.C (1253): ; row 0 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 0 - hoadascl: 0, hoadanul: 1, hoadanml: 7, hoadanam: Subject, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 1 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 1 - hoadascl: 0, hoadanul: 1, hoadanml: 11, hoadanam: DateCreated, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 2 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 2 - hoadascl: 0, hoadanul: 1, hoadanml: 18, hoadanam: CustomerFacingUnit, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 3 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 3 - hoadascl: 0, hoadanul: 1, hoadanml: 12, hoadanam: OFFERNUMBERS, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 4 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 4 - hoadascl: 0, hoadanul: 1, hoadanml: 13, hoadanam: textedPricing, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 5 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 5 - hoadascl: 0, hoadanul: 1, hoadanml: 22, hoadanam: textedShortDescription, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 6 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 6 - hoadascl: 0, hoadanul: 1, hoadanml: 21, hoadanam: textedLongDescription, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 7 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 7 - hoadascl: 0, hoadanul: 1, hoadanml: 14, hoadanam: textedBenefits, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 8 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 8 - hoadascl: 0, hoadanul: 1, hoadanml: 18, hoadanam: textedAboutAuthors, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 9 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 9 - hoadascl: 0, hoadanul: 1, hoadanml: 13, hoadanam: textedContent, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 10 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 10 - hoadascl: 0, hoadanul: 1, hoadanml: 23, hoadanam: textedDiffByMedia_Print, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 11 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 11 - hoadascl: 0, hoadanul: 1, hoadanml: 20, hoadanam: textedDiffByMedia_CD, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 12 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 12 - hoadascl: 0, hoadanul: 1, hoadanml: 26, hoadanam: textedDiffByMedia_Internet, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 13 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 13 - hoadascl: 0, hoadanul: 1, hoadanml: 23, hoadanam: textedDiffByMedia_Other, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 14 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 14 - hoadascl: 0, hoadanul: 1, hoadanml: 10, hoadanam: BookStatus, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 15 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 15 - hoadascl: 0, hoadanul: 1, hoadanml: 9, hoadanam: Published, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 16 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 16 - hoadascl: 0, hoadanul: 1, hoadanml: 4, hoadanam: ISBN, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 17 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 17 - hoadascl: 0, hoadanul: 1, hoadanml: 5, hoadanam: Pages, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 18 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 18 - hoadascl: 0, hoadanul: 1, hoadanml: 7, hoadanam: Binding, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 19 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 19 - hoadascl: 0, hoadanul: 1, hoadanml: 11, hoadanam: ProductSize, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 20 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 20 - hoadascl: 0, hoadanul: 1, hoadanml: 12, hoadanam: DateModified, hoadabfl: 4000, hoadamod: 0
    (0) HOAUTIL.C (1253): ; row 21 - hoadambl: 4000, hoadadty: 108, hoadaprc: 0, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 21 - hoadascl: 0, hoadanul: 1, hoadanml: 15, hoadanam: ProductItemCode, hoadabfl: 4000, hoadamod: 0
    (0) hoadtab (26): ; hoadtab Exited with retcode = 0.
    (0) hoadafr (23): ; hoadafr Entered. id = 0.
    (0) hoadafr (23): ; hoadafr Exited with retcode = 0.
    (0) hoapars (15): ; hoapars Entered. stmtType = 0, id = 1.
    (0) nvOUT (D:\Work_Builds\connect_5010\src\qp\QP_SQTXT.C 89): SELECT COUNT(*) FROM "TABLEA" A1
    (0) nvRETURN (D:\Work_Builds\connect_5010\src\qp\qpsynon.c 1171): -1
    (0) SELECT COUNT(*) AS c000 FROM "TABLEA" "A1"
    (0)
    (0) <<<<<<<<<<<<<<<<<<< Execution Strategy Begin <<<<<<<<<<<<<<<<<<<<<<<<<<<<
    (0) Original SQL:
    (0) SELECT COUNT ( * ) FROM "TABLEA" A1
    (0)
    (0)
    (0) Accessing Database 'DATABASEA' with SQL:
    (0) SELECT COUNT(*) AS c000 FROM "TABLEA" "A1"
    (0)
    (0)
    Execution Strategy End >>>>>>>>>>>>>>>>>>>>>>>>>>>>(0) hoapars (15): ; hoapars Exited with retcode = 0.
    (0) hoaopen (19): ; hoaopen Entered. id = 1.
    (0) hoaopen (19): ; hoaopen Exited with retcode = 0.
    (0) hoadscr (16): ; hoadscr Entered. id = 1.
    (0) hoastmt.c (304): ; Array fetch size is: 1.
    (0) HOAUTIL.C (1249): ; ------ hoadscr() -------:
    (0) HOAUTIL.C (1250): ; hoadamsz: 1, hoadasiz: 1, hoadambr: 1, hoadabrc: 1, hoadawht: 5
    (0) HOAUTIL.C (1253): ; row 0 - hoadambl: 4, hoadadty: 8, hoadaprc: 10, hoadacst: 0
    (0) HOAUTIL.C (1257): ; row 0 - hoadascl: 0, hoadanul: 1, hoadanml: 8, hoadanam: $$CALC_1, hoadabfl: 4, hoadamod: 0
    (0) hoadscr (16): ; hoadscr Exited with retcode = 0.
    (0) hoaftch (21): ; hoaftch Entered. id = 1.
    (0) apiutil.c (0): ; hoaftch()::
    (0) apiutil.c (0): ; Column 0 - pszName: $$CALC_1, size: 4, id: 8, width: 0, scale: 0, flags: 12.
    (0) SELECT COUNT(*) AS c000 FROM "TABLEA" "A1"
    (0)
    (0) hoaftch (21): ; hoaftch Exited with retcode = 0, hoadabrc = 1.
    (0) hoaftch (21): ; hoaftch Entered. id = 1.
    (0) hoaftch (21): ; hoaftch Exited with retcode = 1403, hoadabrc = 0.
    (0) hoaclse (22): ; hoaclse Entered. id = 1.
    (0) hoaclse (22): ; hoaclse Exited with retcode = 0.
    (0) hoadafr (23): ; hoadafr Entered. id = 1.
    (0) hoadafr (23): ; hoadafr Exited with retcode = 0.
    (0) hoacomm (11): ; hoacomm Entered. keepinfo = FALSE, tflag = 1.
    (0) hoacomm (11): ; hoacomm Exited with retcode = 0.
    (0) hoalgof (8): ; hoalgof Entered. tflag = 1.
    (0) hoalgof (8): ; hoalgof Exited with retcode = 0.
    (0) hoaexit (6): ; hoaexit Entered.
    (0) hoaexit (6): ; hoaexit Exited with retcode = 0.
    (0) (0): ; Closing log file at THU JAN 29 10:38:55 2009.

Maybe you are looking for

  • Table footer issue in body page of adobe form

    Form has 1 master page and 1 body page. Body page has table within which there is a footer header and detail (2 footers) in the form. My intention is to make footer (both the footers) appear in the last page of the form. For most of the scenarios, fo

  • My email address changed and my password and I did...

    I had an account monis.bukhari Someone stole my account and change the password and the email address Please help me.

  • No change requests in CRM_DNO_MONITOR

    Hi, We have implemented charm and some of users are not able to display any change requests in transaction CRM_DNO_MONITOR. These are only few users. For some of them problem was resolved next day and for few it still exists.  I have provided sap_all

  • Missing start button, task bar and min,max buttons when open iTunes

    Its like the screen is cut off on the top and bottom.  I use windows 7 but this doesn't happen when I have any other program open.  How do I fix?

  • C3-01 call/data log?

    anyone tell me how to check the call & data log on this phone please? Id like to keep track of how much usage Ive made. It was fairly simple on previous older phones!