Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I'm using the following SQL in a aspx page with vb.net

 

SELECT LNAPPLSA_TB.INTVW_NR AS EMPLOYEE, LOANAPPL_TB.APPL_DT FROM LNAPPLSA_TB, LOANAPPL_TB WHERE LNAPPLSA_TB.LOAN_APPL_NR =

LOANAPPL_TB.LOAN_APPL_NR AND LOANAPPL_TB.APPL_DT > '30-DEC-03'

 

A dataset is generated and binded to a datagrid. When I run the page, all data is returned. All records before '30-DEC-03' and after are displayed in the datagrid even though only records after '30-DEC-03' should be shown.

 

When I use Oracle SQL*Plus it works fine.

 

Does anyone know why this might be happening.

Posted
nah, I think that he needs to use the TO_DATE, only if the datatype of the column is DATE, if it's a VARCHAR2, something very common used by oracle developers use the TO_CHAR
Fat kids are harder to kidnap

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...