Date confusion - need help

Hi ,
my data's date(DATA_ENTRY_TIME) is --> 7/29/2006 4:02:02 AM
ques1 :
when i run this query --> select TO_DATE(DATA_ENTRY_TIME , 'dd-mon-rr HH.MI.SS AM' ) FROM LOT_HISTORY_2DCHRT
result : 7/29/2006
shldn't it return the time as well ?
ques 2 :
i have a insert query from a selection of such criteria so as to be the same format as the DATA_ENTRY_TIME
-->
WHERE DATA_ENTRY_TIME >= TO_CHAR(TRUNC(SYSDATE - 6 / 24) , 'MM/DD/YYYY HH:MI:SS AM')
AND DATA_ENTRY_TIME<= TO_CHAR(TRUNC(SYSDATE) , 'MM/DD/YYYY HH:MI:SS AM')
and i got the error while running it
ORA-01843: not a valid month
ORA-02063: preceding line from PLL2
what is wrong here actually ?
ques 3
select * from nls_session_parameters
where parameter in ('NLS_DATE_FORMAT' , 'NLS_TIME_FORMAT') ;
these are the values
DD-MON-RR & HH.MI.SSXFF AM
do i need to an alter session in order for ques 2 to work ??
ques 4
if both field are of date type but different format e.g field1 is 'dd/mm/yyyy hh:mi:ss am' and field2 is 'mon-dd-yyyy hh:mi:ss am'
can comparision such as field1 >= field2 still be done ?
ques 5
if i use to_char for both field1 & field2 in ques 4 , can a comparison be done and is it accurate as it's now a string(if i am correct) ?
tks & rdgs

my data's date(DATA_ENTRY_TIME) is --> 7/29/2006
4:02:02 AM
ques1 :
when i run this query --> select
TO_DATE(DATA_ENTRY_TIME , 'dd-mon-rr HH.MI.SS AM' )
FROM LOT_HISTORY_2DCHRT
result : 7/29/2006
shldn't it return the time as well ?What you see depends on the settings you have for displaying the data. You can change your default date format settings as follows:
SQL> select sysdate from dual;
SYSDATE
08/02/2006
SQL> alter session set nls_date_format='mm/dd/yyyy hh24:mi:ss';
Session altered.
SQL> select sysdate from dual;
SYSDATE
08/02/2006 08:08:44
SQL>Or you can muck about with converting the dates into varchars if that's what you really want, but then if you need to do further date functionality against them you have to ensure you convert them correctly back to date format. I'd suggest that you just work with dates as oracle designed them to be and only convert to varchar (using TO_CHAR) when you really really need to.
ques 4
if both field are of date type but different format
e.g field1 is 'dd/mm/yyyy hh:mi:ss am' and field2 is
'mon-dd-yyyy hh:mi:ss am'
can comparision such as field1 >= field2 still be
done ?Internally the date types are stored identically. The formatting only comes into play when dates are displayed or converted to varchar so yes, if they are both stored on the database as DATE types then you can just do a straight comparison. I'm not sure how you are determining that they are "different format" unless you are querying them in different environments.
>
ques 5
if i use to_char for both field1 & field2 in ques 4 ,
can a comparison be done and is it accurate as it's
now a string(if i am correct) ?If you convert to a varchar then you are doing a string comparison which works fine if you are doing "=", but if you are intending to do ">=" then you'll likely get some unexpected results
SQL> select 'greater'
  2  from dual
  3  where to_date('08/02/2006 08:00:00', 'mm/dd/yyyy hh24:mi:ss') >= to_date('08/10/2005 08:00:00', 'mm/dd/yyyy hh24:mi:ss');
'GREATE
greater
SQL> ed
Wrote file afiedt.buf
  1  select 'greater'
  2  from dual
  3* where '08/02/2006 08:00:00' >= '08/10/2005 08:00:00'
SQL> /
no rows selected
SQL>The second comparison using varchar doesn't work because the 4th character in the right hand string ("1") is greater than the 4th character in the left hand string ("0"). It is literally a chr for chr comparison rather than treating the whole string as a value in its own right which is what you get with dates.
For simplicity's sake, think of dates as being stored on the database as the number of seconds since a fixed date in time. As they are purely stored as a number internally it's easy for the database to compare them. The moment you conver things to varchar you just get yourself in a mess.
;)

Similar Messages

  • Data arrangement - need help

    Hi experts,
    I have included the sql for the data as it is in the table and the format in which I am trying to display the data but would need your help. Many Thanks.
    create table #DATA
    (CustNum int,
    weeknumber int,
    tserial int,
    code varchar(2),
    amount money,
    Bal money)
    insert into #DATA values ( 100, 40 ,12, 'C', 13.60, 87.37)
    insert into #DATA values ( 100, 41 ,15, 'D', 85.92, 73.77)
    insert into #DATA values ( 100, 42 ,24, 'C' ,13.60, 159.69)
    insert into #DATA values ( 100, 43 ,35, 'C',142.74, 146.09)
    insert into #DATA values ( 100, 44 ,47, 'D', 85.92,3.35)
    insert into #DATA values ( 100, 45, 55,'C',15.00,89.27)
    select * from #DATA ORDER BY weeknumber desc
    create table #Req_output
    ( CustNum int,
    WeekNumber int,
    Debit money,
    Credit money,
    Balance money
    insert into #Req_output values(100, 45, Null, 15, 74.27)
    insert into #Req_output values(100, 44, 85.92,Null, 89.27)
    insert into #Req_output values(100, 43, Null,142.74,3.35)
    insert into #Req_output values(100, 42, Null,13.60, 159.69)
    insert into #Req_output values(100, 41, 85.92, Null,159.69)
    insert into #Req_output values(100, 40, Null,13.60, 73.77)
    select * from #Req_output
    drop table #DATA
    drop table #Req_output
    Let me know if I have missed any details from the query above.
    Thanks again !

    Having such a balance column is not a good idea.
    DECLARE @Improved TABLE
    CustNum INT ,
    weeknumber INT ,
    tserial INT ,
    code VARCHAR(2) ,
    amount MONEY
    INSERT INTO @Improved
    VALUES ( 100, 1, 1, 'B', 87.37 ),
    ( 100, 40, 12, 'C', -13.60 ),
    ( 100, 41, 15, 'D', 85.92 ),
    ( 100, 42, 24, 'C', -13.60 ),
    ( 100, 43, 35, 'C', -142.74 ),
    ( 100, 44, 47, 'D', 85.92 ),
    ( 100, 45, 55, 'C', -15.00 );
    SELECT * ,
    SUM(amount) OVER ( ORDER BY tserial ASC ) AS ActualBalance
    FROM @Improved
    ORDER BY weeknumber DESC;
    WITH Data
    AS ( SELECT * ,
    SUM(amount) OVER ( ORDER BY tserial ASC ) AS ActualBalance
    FROM @Improved
    SELECT D.CustNum ,
    D.weeknumber ,
    D.tserial ,
    IIF(code = 'C', D.amount, NULL) AS Credit ,
    IIF(code = 'D', D.amount, NULL) AS Debit ,
    D.ActualBalance
    FROM Data D
    WHERE code != 'B'
    ORDER BY D.weeknumber DESC ,
    D.tserial DESC;

  • I'm trying to do a FFT using I and Q Data, I need help.

    I’m collecting data on an Agilent 89600 VSA, and storing it
    to a file, it stores the data in I and Q format (real and imaginary) in 2 columns.  Can read the data then using “Re/Im to
    complex” (math function) I go to the “FFT.vi”. 
    After that is done how do I get it scaled and display it on a graph?  Everything I have tried has not worked.  If anyone can help please do.
    LabVIEW 7.1, Windows XP
    Thank you
    Bob

    Hi, Bob.
    This KnowledgeBase discusses how to display complex numbers in a graph. Let me know if this doesn't answer your question.
    Have a nice afternoon!
    Sarah K.
    Search PME
    National Instruments

  • Two account's confusion needed help!

    I have two iTunes accounts one is for my computer (A = email) and the other for my iPod - (B = email) I made a mistake by buying a song on my (A) one and then sending it as a gift to my (B) one. but I stayed logged into my (A) one now I can’t download the song with out it showing up with this warning.
    I don’t know what to do? I own both of these accounts and i shouldn’t be blocked just for making a stupid mistake.
    Help me please Thank you.

    If you turn off the iPod service running on your PC prior to connecting the iPod to the PC, then iTunes will not automatically start and you will be able to access the music files directly from the iPod. You will need to enable veiwing 'hidden' folders from your Windows folder options to locate the folders containing your iPod's mp3 files.
    Turn off iPod service:
    Right-click on My Computer and select 'Manage'. A window will open with a left and right pane. From near the bottom of the left pane click on 'Services and Applications'. From the right pane double click on 'Services'. Scroll down in the right pane until you find 'iPod Service'. Right-click on it and select 'Stop'.
    Access music files on iPod:
    After connecting the iPod you should see it listed in the My Computer window showing up as a removeable disk or mass storage device. Open it and you will see several folders. You music files are located in a hidden folder called 'iPod Control'. Open it and then open the hidden folder 'Music'. Next you should see numerous hidden folders each containing a portion of your music files. Each folder is named 'F00', 'F01', 'F02'... etc. Open one of these folders and you will see some strange file names, but each file represents a single track of music. You can now copy all of these files to your hard disk. Once the copy operation is complete, safely remove your iPod, reboot the PC and re-import the files into your iTunes library.
    Hope this helps.
    Pete

  • Infoset data issues need help ASAP

    Hello BW experts,
    I have created an InfoSet, to read data from one Single ODS. The ODS has already data active, but the Query on infoset doesn’t returns any data.also i checked in listcube `without any success.
    Could you please advise me where it might be wrong. i didn't changed anything in infoset. Just created a Infoset on top of ODS.
    I tried all the options and made sure that it's not authorization issue.i deleted the ods data and loaded some test data and tried to create a query on ods it's fetching the data but no data pulling by infoset.
    something wrong inbetween infoset and ods. could you please advise me what might be wrong and how can i resolve.
    might be some issues with the generated program or some issue with the database level.
    some of the infosets i created fectching partial data , some are getting full data from ODS and some of the infosets not at all picking the data. Overall i have created about 80 Infosets.
    We are in BW 3.5. Recently upgraded the patch successfully.
    Looking forward for your precious advise.
    Thanks,
    Naveen Reddy

    just tried to go through it again, and it was close to finishing, less than a 1/2 hour left. and it got the error: "the installer is experiencing errors installing onto "Macintosh HD". The disk may be damaged, please try installing on another disk."
    does that mean i'm going to have to buy a new internal hard-drive? once again any advice will be really helpful. Thanks
    p.s. I also went and verified the disk again and it said there wasn't any issues with it. and i repaired it anyways and it said it was fine. This is super annoying
    Message was edited by: Doonyal

  • Date validation- need help

    Hi, I am trying to validate my date input from the front end which has to be in mm/dd/yyyy format only...I am unsing the code as shown below
    DateFormat dateFormatter = new SimpleDateFormat("mm/dd/yyyy");
    convertedValue = dateFormatter.parse(fieldValue);
    break;     
    but this is not working..any format is being accepted :(

    nn12 wrote:
    I tried this
    class Test1 {
    public static void main(String[] args) {
         Object convertedValue = null;
         DateFormat dateFormatter = new SimpleDateFormat("MM/dd/yyyy");
              try {
                   convertedValue = dateFormatter.parse("13/12/2008");
                   System.out.println(convertedValue);
              } catch (ParseException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    But it didnt help :(This works! the Date parsed will be: 12. jan 2009!

  • Date Picker - need help

    there is a cool date picker i downloaded from http://www.kodart.com, it looks good and easy to handle,
    but i would like to add some feautes like pop-up comments for dates, change size of the picker and so on.
    there is something a source code on their site, but i couldn't get it.
    i would really appreciate help from anyone. please write to [email protected] or reply to topic. all the information on http://www.kodart.com
    thanks in advance

    That doesnt appear to be a java applet, or class for that matter. Its PHP and JavaScript combined.
    J

  • Core Data newbie needs help

    I am new to Core Data, so pleases forgive my ignorance. Here is what I am trying to do:
    I have two entities in my data model, one that represents a college course and one which represents a homework assignment. I want to have one of the attributes of my assignment entity be a course entity, so that I can setup my UI to display attributes of a course when a user selects an assignment to which that course is associated. How can I do this?
    Again, please forgive me if I am being too vague. Let me know if I need to clarify or post additional information.

    That link opens to a MySpace page that requires a password, so your image can't be viewed. It's not a good idea to link an image to your MySpace page anyway. Upload your image to a free image host like PhotoBucket or Flickr (or any host) and link to that.
    If you are working on the background, I hope you are working on a copy of the image or at least retaining the original image layer without modification. Editing can be tricky enough, but editing away bad editing is worse.

  • Confused, need help regarding a MPG audio file

    I have some video and the sound is not that good however I used my Marantz recorder using a CF card. The quality if very good on the card. The file is 1003.MPG around 250 MB. I have imported my video into Imovie and I thought I could just drag or import this MPG file into the audio and edit. It starts off like it will import and then nothing. I even imported the 1003.MPG file into Itunes hoping I could bring it in through Itunes. No luck. I am not sure what an MPG files but it doesn't appear to be an audio file that I need to import into I movie. When I double click on the file it opens in QT and I can play it there. What am I missing and what do I need to do in order to get it into Imovie so I can match up with video.
    Thanks
    Bob

    Hi SDillini. I looked at your link and saw all the options I should have had. For some reason I have not been able to figure out as of yet it only gave me the two which I listed above. If I would have had all the options which were listed I would have been on easy street. I finally got it converted over, thanks to my son but now I have even a bigger problem. Worked on some video for about 7 hours and Imovie started just shutting down every so often. I would continue to save every 5 minutes. Now the last time it quit I tried to open and the clips showed up but nothing in the timeline. It looks like it wants to start however I get the spinning ball and after about 3 or 4 minutes it just shuts down. I have tried to put all the folders linked with that movie into a new Imovie project and I also tried to to import everything in to FCP. All I get is the clips I was not going to use with nothing I have edited going into the timeline or clip file. This has been a very difficult project and due tomorrow. If I can't figure this out fast I will start all over today and make an all nighter out of it. I may try a new post to possibly get some help on new problem.
    Thanks for the info.
    Bob

  • Subtitles are confused- need help

    Hi,
    I build a DVD project which contains 8 languages,and also 8 subtitles. (turkish english chinese, japanese, korean, arabic and farsian)
    I created a subtitle selection menu for all 8 languages, and specified links for setting subtitles, as always.
    There are 10 chapter buttons in each "chapters menu", and when I click a chapter (after selecting a subtitle language from any "subtitles menu" previously,) it works fine, subtitles are working very well depending my selections. By the dvd players remote, it's same, everything looks fine.I select japanese, Japanese subtitles are on, English, It's on, no problem at all.
    But,
    There is a chapter play list also, which contains sequential chapters, playing chapters in turn.
    When I select "play all" button which selects that chapter play list, things are going wrong. Chapters starting to play in correct order, but subtitles are confusing!
    For example if I select English, subtitle become German. If I select Chinese, become Arabic, Korean, etc. Subtitles are completely chaotic.
    I couldn't find any solution or adjustment from helps or internet, so anyone can help me please?
    Thanks

    Thank you first of all,
    I tried, but there are chapters on the timeline and after the first chapter, it returns to the last menu.
    I think the best way is to get rid of that useless play-all button..
    Btw, "playlist" option seems working seamlessly, instead of chapter playlist..
    I think the case closed:)

  • Recorded MPEG-2.  Now confused/need help importing DV or MPEG-4?  Help!

    HI there from Buffalo NY and a year-old mac user
    I'm using ... a JVC Hard disk camcorder (GZ-MG20U) which records in MPEG-2 format. iMovie HD 5.0.2 won't accept these files when I try to import, so I'm using the software that came with the camera (Capty MPEG Edit EX for Everio 1.3.0) to import. Capty allows me to create files in the following formats: MPEG System Stream, MPEG Elementary Stream, DV Stream and Quicktime stream. It further divides Quicktime into MPEG-4, 3G or Quicktime Movie.
    I figured I should import in DV because I can use that with iMovie (and then eventually with iDVD, which, reading these boards I've learned will simply turn my files back to MPEG-2s). Unfortunately, the files are way too large for my computer... I had about 20 gigs free when I started, and now, maybe 90 minutes into importing, I'm down to 1/2 a gig.
    My goal is essentially just putting home videos on the DVD. Of course, I'm looking for quality to be brilliant, but realize I'll have to make sacrifices...
    I guess my question(s) is/are:
    Is it my best option to import these files as MPEG-4's, edit them in iMovie, output to iDVD and so on...? How will my picture quality be? I guess I'm asking because I don't really understand where all of the conversions are happening, and I'm wondering if my final DVD will be a poorer quality picture that when I still have the footage on my hard disk camcorder and hook it up to my TV's A/V jacks and watch it that way.
    Thoughts?
    CHRIS

    Hi Cjbee,
    welcome to this board...
    iMovie is a video edit app meant to work with firewire connected miniDV camcorders
    so, you miss the convenience of "plug'n work" with you camera (iM imports directly from tape, hte fw protocol allows remote control of any camera, etc)
    b) any mpeg is a playback-only format; it looks pretty well in ... ehm, playback, but the edit options are very, very basic (tech bubble: you can just edit from/to next G.O.P. … tech speak off) AND is not supported by iM... => needs conversion => loss of pic quality
    that's no lack of your Mac, but mpegs don't store every frame of a video (30 frames per second), so, a computer has to "estimate" content… so, me personally don't understand the "idea" of any dvd-corder.....?
    iM's native format is dv; avoid lossy inbetween steps, if your software allows direct conversion, choose that; iM has an import command or you drag'n drop the large .dv files into iM's window/timeline/clip pane.
    you DON'T safe disk space by using other formats! in case you go mpeg2=>mp4 (which is smaller), you a) loose quality b) iM will convert it anyhow (and needs additional temp disk space for conversion too…)
    next hurdle to go:
    your Mac needs at last 15 - 20 GB FREE disk space for doing videoDVDs...//iDVD will start to behave odd with not enough space for lots of temp files..../any app will freeze your Mac, if you go under some free disk space...
    summary:
    * don't buy/use dvd corders
    * mpegs needs conversion into dv
    * dv and dvd creation needs LOTS of disk space
    * buy an ext., firewire connected harddisk for storage any large folders/files (iTunes, iPhoto, iMovie), format it correctly before usage.......

  • Date issue, need help on this one.

    Can anyone show me the proper ways of how to update the SQL date type?
    I can't insert records into table because of the "date" problem.
    Thanks in advance.
    Yee Hiong.
    import java.awt.*;
    import java.awt.event.*;
    import java.sql.*;
    import javax.swing.*;
    class Personal extends JFrame{
          inpPanel1 inputPanel;
          btnPanel1 buttonPanel;
          dtPersonal data;
          Date dobDate, djDate; // this one... causes problems.
          String uri;
          Connection conn;
          Statement stmtAppendTable;
          ResultSet rs;
          public Personal(){
                  super ("Personal");
                  Container c = getContentPane();
                  c.setLayout(new BorderLayout());
                  inputPanel  = new inpPanel1();
                  buttonPanel = new btnPanel1();
                  buttonPanel.btnSave.addActionListener(new ActionListener()                   public void actionPerformed(ActionEvent ae) {
                                  openDataBase();
                                  appendRecord();
                                  closeDataBase();
                  c.add(inputPanel, BorderLayout.CENTER);
                  c.add(buttonPanel, BorderLayout.SOUTH);
                  pack();
                  setVisible(true);
                  setDefaultCloseOperation(EXIT_ON_CLOSE);
          public void openDataBase() {
                  uri = "jdbc:odbc:MABA";
                  try {
                          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                  }catch (ClassNotFoundException cnfex) {
                          System.out.println(cnfex.getMessage());
                  try {
                          conn  = DriverManager.getConnection(uri);
                          stmtAppendTable = conn.createStatement(
                          ResultSet.TYPE_SCROLL_SENSITIVE,
                          ResultSet.CONCUR_UPDATABLE);
                          rs = stmtAppendTable.executeQuery("SELECT * FROM Personal");
                  }catch(SQLException sqlex) {
                          System.out.println(sqlex.getMessage());
          public void appendRecord() {
                  data = new dtPersonal();
                  data.setID(Integer.parseInt(inputPanel.tfPersonalID.getText()));
                  data.setName(inputPanel.tfName.getText());
                  if(inputPanel.rbMale.isSelected()) {data.setSex("M");}
                  else
                  if(inputPanel.rbFemale.isSelected())
                          {data.setSex("F");}
                  data.setAddress1(inputPanel.tfAddress1.getText());
                  data.setAddress2(inputPanel.tfAddress2.getText());
                  data.setAddress3(inputPanel.tfAddress3.getText());
                  data.setCity(inputPanel.tfTownCity.getText());
                  data.setState(inputPanel.cboState.getSelectedItem().toString());
                  data.setContactPhone(inputPanel.tfContactPhone.getText());
                  data.setHeight(Double.parseDouble(inputPanel.tfHeight.getText()));
                  data.setWeight(Double.parseDouble(inputPanel.tfWeight.getText()));
                  data.setStatus(inputPanel.tfStatus.getText());
                  data.setDateOfBirth(inputPanel.tfDateOfBirth.getText());
                  data.setDateJoined(inputPanel.tfDateJoin.getText());
                  dobDate = Date.valueOf(data.getDateOfBirth());
                  djDate  = Date.valueOf(data.getDateJoined());
                  try {
                          rs.moveToInsertRow();
                          rs.updateInt("Personal_ID", data.getID());
                          rs.updateString("Name", data.getName());
                          rs.updateString("Sex", data.getSex());
                          rs.updateString("Address1", data.getAddress1());
                          rs.updateString("Address2", data.getAddress2());
                          rs.updateString("Address3", data.getAddress3());
                          rs.updateString("State", data.getState());
                          rs.updateString("Town", data.getCity());
                          rs.updateString("Contact", data.getContactPhone());
                          rs.updateDouble("Height", data.getHeight());
                          rs.updateDouble("Weight", data.getWeight());
                          rs.updateDate("Date_of_Birth", dobDate);
                          rs.updateDate("Date_Joined", djDate);
                          rs.updateString("Status", data.getStatus());
                          rs.insertRow();
                          System.out.println("Data Insert Successful");
                  }catch(SQLException sqlex) {
                          System.out.println(sqlex.getMessage());
          public void closeDataBase() {
                  try {
                          rs.close();
                          stmtAppendTable.close();
                          conn.close();
                  }catch(SQLException sqlex) {
                          System.out.println(sqlex.getMessage());
          public static void main(String args[]){
                  new Personal();
    }

    It crashes when I insert a record to Access's database. I remove the date data type then it runs fine. How to solve this date problem?

  • Need Photoshop and Bridge: does Creative Cloud for students/teachers include both?[was: I'm confused, need help]

    I'm a photography student about to start University. And I need Adobe Bridge and Photoshop for me to edit my photographs. The cheapest Creative Cloud for students/teachers is £8.78 a month, does this include both Bridge and Photoshop? If not does that mean i'll have to buy the Complete Creative Cloud for £15.88 a month?

    Bridge is included with Photoshop.  The package you are asking about also includes Lightroom, I believe.

  • Comparing dates problem, need help?

    the checks are not working correctly, and I am missing something. Code is below.
    for the start date check.
    1. if I put in 28-OCT-2006, I get my error message. Why wont it let me enter today and how do I fix it?
    2. If the start and stop date are the same, my SAVE button code fires. WHy? and then it still ends up commiting.
    thanks,
    HERE IS THE START DATE TEXT
    SET_ITEM_PROPERTY('DRUG_ID', Enabled, PROPERTY_FALSE);
    declare
    alert_NO varchar2(10);
    startDate date;
    systemDate date;
    begin
    startDate := :DRUG_PRICE.START_DATE;
    systemDate := sysDATE;
    --this displays at the buttom of form
    -- MESSAGE('StartDate Must be >= Today');
    if(startDate < systemDate ) then
    --this displays at the buttom of form
    MESSAGE('StartDate Must be >= Today');
    --calls the appropriate alert
    alert_NO := show_alert('STARTSYS');
    RAISE FORM_TRIGGER_FAILURE;
    end if;
    end;
    HERE IS MY SAVE BUTTON
    declare
    alert_NO varchar2(10);
    startDate date;
    stopDate date;
    begin
    startDate := :DRUG_PRICE.START_DATE;
    stopDate := :DRUG_PRICE.STOP_DATE;
    --this displays at the buttom of form
    MESSAGE('Error with the Dates');
    if(startDate > stopDate ) then
    -- calls the appropriate alert
    alert_NO := show_alert('START');
    RAISE FORM_TRIGGER_FAILURE;
    elsif (startDate <= stopDate) then
    MESSAGE('Drug Price Added Successfully.');
    commit;
    end if;
    end;

    Is this forms?
    Anyway, regarding your question, you're comparing the input date against sysdate and maybe you're sending a trunc date so sysdate is always bigger (it includes day, month,year, hour, minute and seconds). Since you're sending a truncate date you're comparing now against today 12:00:00 a.m.
    Ex:
    select sysdate from dual;
    SYSDATE
    28.10.06 23:31
    select case when to_Date('28/10/2006', 'dd/mm/yyyy')<sysdate then 'a' else 'b' end FROM DUAL;
    CAS
    a

  • Im totally confused. need help

    Okay. So my ipod was working fine for a while. its the older versian of the Ipod video. got it band new 2 years ago. up until recently. music will NOT play out of the Right headphone. No wi know what you will say. I plugged my head phones into a different Ipod and both phones worked fine. and just to make sure. i even plugged it into my stereo. the right one still doesnt work.....How does one fix this problem without buying anew ipod?

    It is a hardware issue of your iPod. The poor contact of your iPod's earphone jack. You can go to apple or a 3rd party company for service, or you can have part replacement by yourself, please note that unless you have bought the extra applecare, normally iPod is covered with one year warranty.
    http://www.ifixit.com/

Maybe you are looking for