How to fetch data only from index
Hi,
I'm using below query which fetches arount 1,00,000 records & then perform group operations on them.
<pre>
SELECT Record_Type,Country_Product_Id,Channel_Id,SUM(Items)
FROM t_Utr
WHERE Four_Eyes_Status='A'
AND(
Booking_Date >= To_Date(v_Period_Start_Date, 'DD/MM/YYYY')
AND Booking_Date <= To_Date(v_Period_End_Date , 'DD/MM/YYYY')
AND Invoice_Id IS NULL
AND Link_Id=p_Link_Id
AND Billing_Indicator = 'L'
GROUP BY Record_Type, Country_Product_Id, Channel_Id
</pre>
I'm having an index on all the columns being searched and all the values being fetched.
Here I want to know if there is some procedure where we can fetch all the data from index itself, & we need not to switch again & again between table & index data.
Thanks
Deepak
That's the kind of thing you want to leave to the optimizer.
Provided you supply it with the information needed, most of the time it will make a better decision than you will on speculation.
You want to avoid "hard coding" execution plans since this is contrary to the principles of the CBO and the "what" vs "where" philosophy underlying declarative programming.
A few thoughts:
1) Possibly the "AND Invoice_Id IS NULL" gets in the way of that of index only lookup
2) To raise an optimizer bug/change request you will need to prove that your suggested plan is (a) possible (b) superior to the optimizer's choice (c) the optimizer choice is based on erroneous logic (possibly via 10053 trace)
Similar Messages
-
How to fetch data from Mysql with SSL.
I am using jdk1.5 and mysql 5.0.
How to fetch data from Mysql with SSL
I am using url = jdbc:mysql://localhost/database?useSSL=true&requireSSL=true.
It shows error. how to fetchI have created certificate in mysql and checked in mysql.
mysql>\s
SSL: Cipher in use is DHE-RSA-AES256-SHA
but through ssl how to fetch data in java. -
What is a cube? how we store data in that? how we fetch data from cube?
Hi,
What is a cube? how we store data in that? how we fetch data from cube?
Regards.
venkat>
venkey B wrote:
> Hi,
>
>
> What is a cube? how we store data in that? how we fetch data from cube?
>
>
> Regards.
>
> venkat
Hi Venkat,
I guess you mean an infocube from the SAP BI product. I propose to look at the forum for Business Intelligence to find your answers.
E.g. SAP POS DM writes the sales data in infocubes..... -
How to fetch data from PTREQ tables
I need to display data in the customised webdynpro application from PTREQ tables.
Can anyone help me out how to fetch data from these tables.use the standard modules like
PT_ARQ_REQUEST_CHECK
PT_ARQ_REQUEST_EXECUTE
PT_ARQ_REQUEST_PREPARE -
How to fetch data from cluster tables
hi
i need to know how to fetch data from cluster tables please update me if any
i know that we cannot use joins in cluster table we use view etc
but i need detailed inforation on methods for fetching data from cluster tables
regards
NishantHi,
Check the following links
http://fuller.mit.edu/hr/cluster_tables.html
The specified item was not found.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33 -
How to fetch data where reference with two values
Hello Gurus,
How to fetch data from database table with two values for reference. like
SELECT < FIELDS>
FROM <DB>
INTO TABLE TAB2
FOR ALL ENTRIES IN
TAB1
WHERE
FIELD1 = TAB1-FIELD1 AND
FIELD1 = TAB1-FIELD2.Hi,
If you want to get data for both fields then Instead of AND use OR
SELECT < FIELDS>
FROM <DB>
INTO TABLE TAB2
FOR ALL ENTRIES IN
TAB1
WHERE
FIELD1 = TAB1-FIELD1 OR
FIELD1 = TAB1-FIELD2.
Or if you want that only common data for both fields should be fetched then create new internal table. Append data of both fields into that table. Sort new table and do delete adjust duplicate. Now use new internal table in your select query.
Let me know if this helps.
Regards,
Jigar Thakkar. -
How to get Date Format from Local Object.
Hi All,
I am new to Web Channel.
I need to know Date format From date of locale.
suppose there is a date "01/25/2010" date in date field I want to get string "mm/dd/yyyy". Actually I have to pass date format to backend when I call RFC.
Is there any way to get Date format from "Locale" object. I should get date format for local object
I get local object from "UserSessionData" object but how to get Date format from it.
I am not looking for Date value. I am looking for current local date format ("mm/dd/yyyy or dd/mm/yyyy or mon/dd/yyyy) whatever local date format. I could not find example which show how to get date format from "Locale" object.
Any help will be appreciated with rewards.
Regards.
Web ChannelHi,
You can get it from "User" or "Shop" business object.
Try to get User or Shop Business Object as shown below.
BusinessObjectManager bom = (BusinessObjectManager) userSessionData.getBOM(BusinessObjectManager.ISACORE_BOM);
User user = bom.getUser();
char decimalNotation = user.getDecimalPointFormat().getGroupingSeparator();
If you are seeing "1,234.00" then above code will return "."
I hope this information help you to resolve your issue.
eCommerce Developer. -
How to fetch data in report related to fb03 , bkpf, bset table ?
how to fetch data in report related to fbo3, table bkpf, bset etc.
if any body is having any report related to these tables then please share.Moderator message - Welcome to SCN.
But please ask a specific questio - thread locked.
Also, Please read Please read "The Forum Rules of Engagement" before posting! HOT NEWS!! and How to post code in SCN, and some things NOT to do... and [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again.
Rob -
How to read data directly from clusters
hi all,
how to read data directly from clusters
Thanx in advance,
amruta.Using macro:
RP-IMP-C2-B2.
RP-IMP-C2-B1.
RP-IMP-C2-ZL.
....etc.
For TM cluster, U also can use BAPIs like HR_TIME_RESULTS_GET
More details see SAP HR course 350(HR Programming) -
Hi,
I just want to load data only from MS Access tables to oracle tables.I already have oracle tables. Can i do this with Oracle Migration workbench.
ThanksHi,
The Oracle Migration Workbench can be used to migrate table data from your MS Access to your migrated Oracle database schema. The data can be transferred either online, using the Migration Wizard of the workbench or offline using SQL*Loader scripts generated by the workbench, to copy data from the source database to your destination Oracle database.
You mention that you already have the Oracle tables. Did you use the migration workbench to migrate your Access MDB file to Oracle?
If so, then you can do the following to load your data into the Oracle database using the offline capture method:
1. Use the Exporter for MS Access tool (omwb<version>.mde) to extract the data from your Access MDB file. This generates .DAT files containing the table data.
2. Launch the workbench, pointing to the repository containing the source and oracle model information for your Access MDB file. This will be the repository you used during the initial migration of your Access database to Oracle.
3. Select the Oracle Model tab, then select a user schema in the Oracle Model that you want to migrate the data to.
4. Select the associated "Tables" node of the tree.
5. From the "Objects" menu, select the "Generate SQL*Loader Scripts.
6. Use the generated SQL*Loader scripts to load the Access data, contained in the .DAT files generated in step 1 above, into the Oracle database.
For further information on the steps outlined above, please refer to Chapter 6 Migration the Database of the Oracle Migration Workbench User's Guide, specifically
section "Transferring the Data Offline". The User's Guide can be obtained in the /omwb/docs/usersguide folder of your omwb installation, or via the Help | User's Guide of the workbench.
I hope this helps.
Regards,
Hilary -
How to crete data type from XSD
Hi All,
can anyone tell me ...how to create data type from agiven xsd.
I need urgently....
thanks in advance....import this XSD, load this in your mapping editor and then use this to crate the datatype manually.
Or, use XML spy, load this XSD and then you should be able to see the Structure, or,
Look into the XSD data and decipher things yourself
Regards
Bhavesh -
How to make data flow from one application to other in BPEL.
Hi All,
I am designing work-flow of my application through BPEL(JDeveloper), I am making different BPEL projects for different functions, like sales manager got the order from sales person and sales manager either approve it or reject it, if he approve it it goes to Production manager and he ships the goods, now I want to keep sales person, sales manger,production manager in seperate BPEL files and want to get the output of sales person to sales manager and sales manager to production manager please help me in dong this.
I was trying to make partner link in Sales manager of sales person and getting the input from there. I dont know this is right even or not, if it is right I dont know how to make data flow from one application to other.
Experience people please guide.
Sales Person -----> Sales Manager ----> Production Manager
Thanks
YatanYes you can do this.
If you each integration point to be in different process, you have to create three BPEL process.
1. Create a Async BPEL process 'A' which will be initiated when sales person creates the order.
2. From BPEL process 'A' call a ASync BPEL process 'B' which has the approval flow. Depending on the input from process 'A' the sales manager will review the order in workflow and approve or reject and send the result back to process 'A'.
3. Based on the result from workflow, invoke the Sync BPEL process 'C', where you can implement the shipping logic.
-Ramana. -
How to manage data aggrigation from multiple systems.
Hi,
How to manage data aggrigaion from multiple system which should support paging too.
please suggest me , best possible soluntion.
Thank Youwhat is ment by aggrigation? what is the difference between Inheritance and aggrigation ? How can it implement as part of the programm
-
How to fetch data for sales order costing
Hi All,
How to fetch data for VA03 --> Extras --> Costing having cost element details.
Thanks
GauravHi Gaurao ,
There is no such function module to extract data in one column , you have to Convert all the columns data in one column
for period .
regards
Deepak. -
HT1766 how to restore data file from back up on iPhone 5 docs to go
how to restore data file from back up on iPhone 5 docs to go
If it backed up the lock file, then Lightroom was open when Time Machine ran, and the backup therefore may be corrupted. You could try restoring that backup (without overwriting your week ago version) and see if it'll open. If it does, you're off and running. What methods have you tried?
Maybe you are looking for
-
Text Data Value of the Customer Master
Dear All, I have created a new text types for the customer as Z001 and Z004. But now i want to create report with the customer and value maintain in those text fields. I'm little confuse how take the values. I know i have to go to the table STXH but
-
Cannot find my custom swatch files to share with InDesign
I have created some custom swatch files in Photoshop and would like use them in InDesign as well - but I can't find them! They are always there and available for use in PS, but I cannot find them anywhere on my hard drive. The "Color Swatches" file u
-
How to get the 'text' property value of a button in coding?
Hi Experts, I'm using 10 buttons all are having common action('click'). when i click a button the 'text' value of the button should pass to a function.So the action is same but the passed value will be the 'text' value of the corresponding button. I
-
Display Blank Column in Bex Analyzer without Error
Hi Experts, i have created a report with several columns. To display the coorect descrition i use a new selecion and insert the required infoobject or Key Figure" it is ok. Whe want to display two blank columns. The problem i have is that there are s
-
was able to edit text and add text and now does not allow me to do anything - Except purchase the software again.Can't find an answer to this anywhere.