Help me in date comparision Please !!! urgent.
Hi ,
I am trying to retrieve some entries from a table for a selected date.
Here is the quest I am running .
SELECT C.idnumber,A.fullname, A.description FROM Contact C, Action A WHERE TO_CHAR(c_date,'mm/dd/yyyy')='02/16/2009' AND C.actioncode = A.code ;
This statement is correct . But the abouve query is not using the index which defined on c_date as it is enclosed with TO_CHAR .
Can any one tell me how can I alter the above query such that it use the index & gives me data for a user selected date.
Please share if you have any ideas & help me out to sort the issue.
-Meena
A DATE column does not have a format-- it is stored in the same packed binary format. Date format masks are only important when you go to convert a date to a string for display.
If you want to ignore the time component of the date, you would need to TRUNC your date, i.e.
SELECT C.idnumber,A.fullname, A.description
FROM Contact C,
Action A
WHERE TRUNC(c_date) = to_date('02/16/2009', 'mm/dd/yyyy')
AND C.actioncode = A.code ;Of course, this will prevent Oracle from using an index on C_DATE. The solution to this is to create a function-based index on TRUNC( c_date ), i.e.
CREATE INDEX idx_trunc_cdate
ON contact ( TRUNC( c_date ) );Oracle would then be able to use the new index IDX_TRUNC_CDATE for your query. If all your queries want to ignore the time component, you may want to evaluate whether you can get rid of the index on C_DATE alone.
Justin
Similar Messages
-
HELP ME ON DATA MIGRATION PLEASE
Hi
what is SAP data migration what kind of tools and techniques include in that and also please what are the roles and responsibilities include in that when we are working on project.(RELATED TO ABAP)Data Migration Current Situation
Data migration or data conversion is a persistent issue facing most organizations who have implemented SAP. Whether it is during the final phases of a new SAP implementation, during SAP upgrades and updates, during corporate restructurings, or during mergers and acquisitions, data migration continues to remain a challenging problem for IT.
Most data migration projects are faced with a time and budget crunch. But, these projects usually require extensive support from programmers and other technical experts and therefore data migration projects tend to get expensive and time-consuming.
The tools for data transfer and data migration provided by SAP are very technical and have a steep learning curve associated with them and they require technical experts to build and implement the data migration scripts.
Data Migration Ideal Scenario
An ideal data migration scenario would let the data migration project be implemented by the end user departments themselves. A few super-users within these end-user departments that supply the data should have the ability to transfer and migrate data themselves without relying on technical experts. Such a scenario would significantly cut the time and effort required in a data migration project.
Reaching such an ideal scenario would require data migration tools that are easy to learn and require no programming. Furthermore, these tools should work across all the different SAP modules and the SAP products, including the different versions of SAP.
Data Migration
Data Migration is the process of moving required (and most often very large) volumes of data from our clients existing systems to new systems. Existing systems can be anything from custom-built IT infrastructures to spreadsheets and standalone databases.
Data Migration encompasses all the necessary steps to cleanse, correct and move the data into the new system *. Technological changes, change in providers, software updates or data warehousing / data mining projects make such delicate and critical operations necessary.
<b>Data Migration can be done using BDC, LSMW, BAPI, Idoc's.</b>
What is the difference between batch input and call transaction in BDC?
Session method.
1) synchronous processing.
2) can tranfer large amount of data.
3) processing is slower.
4) error log is created
5) data is not updated until session is processed.
Call transaction.
1) asynchronous processing
2) can transfer small amount of data
3) processing is faster.
4) errors need to be handled explicitly
5) data is updated automatically
Differences between bdc session method and call transaction method.
The most important aspects of the batch session interface are: - Asynchronous processing - Transfers data for multiple transactions - Synchronous database update During processing, no transaction is started until the previous transaction has been written to the database. - A batch input processing log is generated for each session - Sessions cannot be generated in parallel
The most important aspects of the CALL TRANSACTION USING interface are: - Synchronous processing - Transfers data for a single transaction - Synchronous and asynchronous database updating both possible The program specifies which kind of updating is desired. - Separate LUW for the transaction The system performs a database commit immediately before and after the CALL TRANSACTION USING statement. - No batch input processing log is generated.
Refer this
For BDC:
http://myweb.dal.ca/hchinni/sap/bdc_home.htm
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&
http://www.sap-img.com/abap/learning-bdc-programming.htm
http://www.sapdevelopment.co.uk/bdc/bdchome.htm
http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm
http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html
Check these link:
http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
http://www.sap-img.com/abap/question-about-bdc-program.htm
http://www.itcserver.com/blog/2006/06/30/batch-input-vs-call-transaction/
http://www.planetsap.com/bdc_main_page.htm
call Transaction or session method ?
http://www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_DATADICTIONARY_FAQ.html
http://www.****************/InterviewQ/interviewQ.htm
http://help.sap.com/saphelp_46c/helpdata/en/35/2cd77bd7705394e10000009b387c12/frameset.htm
ALE/ IDOC
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://www.sapgenie.com/sapedi/idoc_abap.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
http://www.allsaplinks.com/idoc_sample.html
http://www.sappoint.com/abap.html
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.allsaplinks.com/idoc_sample.html
Check these step-by-step links
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501-0010-ee84-de050a6cc287
https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985
regards,
srinivas
<b>*reward for useful answers*</b> -
Help me choose a datastructure please - urgent
hi all,i have a very serious problem,to which i am not able to find the solution.the problem is as follows
i have a large number of datas in a database table.now i need to query that table so many times,so to improve the performance i thought i can retrieve the datas and put them in a datastructure so that the system need not query the database again and again.the table structure has two fields.one number and the other string.the numbers are not unique,and i need to have these numbers ans strings in the single datastructure.i saw that all the util datastructures have their own indexes and so they do not allow me to enter my numbers and strings from the table in the same datastructure.which structure will allow the flexibility that i need,or is there any other way to do it.please reply soon,bye thiyagu.Not exactly sure what you're looking for in terms of a data structure... but I'll just give you what I think the simplest solution is to your problem.
Define a new object (i.e. MyData) which has variables, theNumber (an int or float or whatever yer number is) and theString. Then, all you need to do is query your database, create new MyData objects for each record, and put them into an ArrayList.
public class MyData {
private int theNumber;
private String theString;
public MyData(int number, String str) {
theNumber = number;
theString = str;
public int getNumber() {
return theNumber;
public String getString() {
return theString;
Thats my solution... -
Need help with dates please-urgent
Hi folks, please help me with this if you can.
I run a weekly job, and need to have my java code create and use 2 dates to capture data for the whole week.
begin_date mm/dd/yyyy (String) to be 7 days prior to current date
end_date mm/dd/yyyy (String) to be the currecnt date
Note: please take into account the cases where the CURRENT_DATE is the first week of the month. As a result the 7 days prior will fall into the previous month. i.e if end_date="06/04/2003" then the begin_date will be "05/29/2003 Thanks a bunchhttp://java.sun.com/j2se/1.4.1/docs/api/index.html
See the Calendar and DateFormat classes. -
Hi All:
I am using a javascript for checking the date comparision while testing i found this error and this is serious to me
date comparision works fine with the same month the probem wht i am facing is
eg start date 31-jan-2008 and end date is 24-feb-2008 there is no error is get
if start date is 24-jan-2008 and end date is 14-feb-2009 it through me a alter msg saying start date is greater then end date
there is some mistake in the script i beleve please suggest and help me out how to fix this problem
the script wht i am using is this
<script type="text/javascript">
function checkdates_baseline(pStartDateItem,pEndDateItem)
var sdate = document.getElementById(pStartDateItem).value;
var edate = document.getElementById(pEndDateItem).value;
var amonths = new Array('JAN','FEB','MAR','APR','MAY','JUN','JUL','AUG','SEP','OCT','NOV','DEC');
var start_date = new Date();
var end_date = new Date();
var start_month = sdate.substring(3,6);
var end_month = edate.substring(3,6);
var nstart_month = 0;
var nend_month = 0;
for(i=0;i<12;i++)
if(amonths == start_month)
nstart_month = i;
if(amonths == end_month)
nstart_month = i;
start_date.setFullYear(sdate.substring(6,10),Number(sdate.substring(3,5))-1,sdate.substring(0,2));
end_date.setFullYear(edate.substring(6,10),Number(edate.substring(3,5))-1,edate.substring(0,2));
var result = (end_date - start_date);
if( result < 0)
alert('The End date must be after the Start Date');
</script>
thanks
sudhirBut wht i am using is apex collection date picker which is of the format
dd-mon-yyyy this is the default format in it
i think there is no option available to make this using pl.sql process for validating this
the code which i posted before it is comparing with the days but month it is not happening i have posted the javascript code above works fine need to know where the problem in the code
or is there any other way in doing this i am not using a date picker item i am using
select
HTMLDB_ITEM.DATE_POPUP(1,rownum,,'dd-mon-yyyy') start_date
HTMLDB_ITEM.DATE_POPUP(2,rownum,,'dd-mon-yyyy') end_date
from dual
Sorry i wont repeate this next posting twise
thanks
sudhir -
i recently have ipad but before i sell it i made a back up of it and by an iphone when i put all the date on my iphone some files and software did not install is there anything i can do to recover the lost data? please help
I don't think you're on iOS 5, I think you're using iOS 6. That's the latest version.
Unless you've used iCloud to back up your documents, you won't be able to restore them. And for future reference, you don't have to uninstall Pages to update your iPad anymore. Sorry about this. -
i just paid my monthly fee but it keeps saying i haven't, so i can't use the apps?? please urgent help...
Hi there
Your Adobe ID is still associated with an older expired membership. Please sign out of the CC desktop app and sign in again with your Adobe ID to activate the new membership plan.
Sign out, Sign in | Creative Cloud Desktop app
Thanks
Bev -
hello, okay? since then, was robbed today, and my find my
iphone this down, please tell me if he has a way to locate the computer, I need the iphone again, it has many important data it please help meIt's gone and you most likely are not getting it back.
If you had important info on it, you should have made backups so you would not lose the data. -
I ordered an iphone 6 plus 64 gig space gray on 9/19/14. I still have not gotten any information on the ship date. Please help verizon!!!
urdea123,
You called and help has arrived. Congrats on the new phone. The iPhone 6 Plus 64GB space gray device is shipping on 11/7. You can always check your order here http://vz.to/1qKj0Rx
RobinD_VZW
Follow us on twitter @VZWSupport -
Just installed OS Yosemite, and now I can't open Illustrator CS6. Asks me to update my Java, but I check and my Java is up to date. Please help!
Some people have reported reinstalling the Apple 2014-001 Java update has helped.
See thread 7 here Illustrator CC 2014 crashes on startup after Yosemite 10.10 upgrade today. -
I got a new BB yesterday and IT took the SIM from the old one, put it in the new one and set it up for me. During this they changed my password.
I then realised that I had left my pictures on the old BB (my son's birth to date) so I took the SIM from the new one and put it back in the old one. It did some kind of synch thing automatically and then I tried entering my old password. It wouldn't accept it and before I knew it I had a warning saying I would be locked out on the next attempt. (I didn't know about this restriction before or I would have stopped earlier)
Do I have to enter the new password that IT gave me? Will my old phone recognise the new password or will it wipe? I am not clear if there is some sort of match up between the device software and the sim card.
I know both passwords but I am afraid to enter either as I am at 9/10 and if I chose the wrong one my pictures are history. Please can someone explain how the passwords work so that I know which one to enter.
The old one didn't work so I suspect I need the new one but I am afraid to use the new one in case the device knows the old one somehow and when it doesn't match it wipes. Sorry if I am babbling on but very distressed and anxious right now :/
Thanksrayshine wrote:
Do I have to enter the new password that IT gave me?
You need to ask your BES Admin that.
But FIRST... on the old device, are the pictures ON the Media Card or in the device Memory? Where are they stored?
1. If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
4. Guide to Unlocking your BlackBerry & Unlock Codes
Join our BBM Channels (Beta)
BlackBerry Support Forums Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
Can some help me to fix the mail date issue please.
Hi,
I recently fresh installed snow leopard server and I successfully migrated my all mails to the new server (leopard server 10.5.8 to snow leopard server 10.6.2).
Now my problem is, for some of the accounts all my old email date header shows as they received on mail migrated date.
Please help me how do I fix it. So my server show the correct date of my old mails.
Thanks,
Gulab Pasha
+918042616308I had an issue very similar to this not too long ago and what I ended up finding out is that there are 2 records.
The first for when the client machine received the email.
The second date for when the email was originally sent.
The original sent date was all that I cared about, so on the client workstation, I turned off the "Date Received" column and turned on the "Date Sent" column.
That fixed the problem for us ... however, I can understand why the two columns exist. Sometimes people send email that are from different times when their system clock is set incorrectly or other various reasons. With Date Received, email will always be in the order in which it was received. With Date Sent, someone could send an email from 1969 and it would end up on the bottom of your email list.
Just throwing that option out there for you. -
I don't have wifi connection.I need to update my software to ios 8.0.2 using cellular data.How can I download using cellular data?.Please help.
There are often places to go which have free WiFi ie coffee shops, shopping malls, fast-food places.
You can connect the phone to your computer & download/update via iTunes if you have one. -
Please Help in this webcam problem,Its Urgent
Hi,
I have a final yr project by which I can see the picture(whenever I want) of a webcam of a Home PC from my mobile device.
For that I have to write a Java program which will capture the picture from webcam and changed the file format to PNG and then saved it to some directory.Whenever I will run the Java program it will automatically save a picture in the directory and it will do continuously after 5 sec and overwrite the older picture.
Can anyone help me with the code or some sorts of code.
Please help me as it is quite urgent.Sorry, this forum is for solving specific problems, not for begging for help. If you have a specific problem you need help with, then ask...but I doubt anyone is going to put in the time to help you with a project you havn't put in the time to have specific problems with.
-
I am using Iphone 4S and Ipad 2...it seems that my App Store application is missing or deleted. How can i retrieve it? How do I download a new one. My software is up to date. Please help asap. Thank you.
Check: Settings - General - Restrictions - Installing Apps = ???
Maybe you are looking for
-
Export Index from PDF Portfolio
I need to compare two large PDF Portfolio documents. From what I can tell, there is currently no third party software around that will do this so I'm trying to figure out a way around it. Each Portfolio that I'm working with has over a thousand email
-
White Screen With Apple Symbol and Turning Gear Appears At Startup
I downloaded the most recent software update with Mac OS X 10.5.4, a security update, and some sort of Safari update (not so sure). After I restarted the computer after the update, everything was okay. A few minutes later, I decided to restart it whi
-
Trying to Play TV Show in ITUNES or QuickTime and....
I downloaded a TV show and when I try to watch it in ITUNES or Quicktime, it plays but it is not like a normal movie. The video is choppy and the people's lips don't move but you can hear the audio. Help, I'm dying to catch up on season 2 of Prison B
-
Published .app won't show video controls
I'm including a video with it's controls into a frame in flash. When I try it and publish it as SWF the control bar of the video shows but when I publish it as a .app for mac or a .exe for windows and run it the video shows but not the controls I'm u
-
I've been reading on here that Credit Karma isn't good to look at the score, just use it for the data in the TransUnion and Equifax reports. I was wondering though, why it said a negative factor for me was "no inquires for credit?" I haven't applied