wirte a query to filter improper date format follwing table?
date
20-apr
22-may-2010
26-jun-2010
feb-2009

i want the output

date
22-may-2010
26-jun-2010

Answers were Sorted based on User's Feedback



wirte a query to filter improper date format follwing table? date 20-apr 22-may-2010 26-jun-2010..

Answer / praveen

select to_date('Column_Name','dd-mon-yyyy') from table_name;

Is This Answer Correct ?    23 Yes 15 No

wirte a query to filter improper date format follwing table? date 20-apr 22-may-2010 26-jun-2010..

Answer / pulakesh

select * from testdate
where to_date(column1,'dd-mon-yyyy')=to_date(column1,'dd-
mon-yyyy') and length(column1)>8

Is This Answer Correct ?    8 Yes 5 No

wirte a query to filter improper date format follwing table? date 20-apr 22-may-2010 26-jun-2010..

Answer / dipti

select * from TABLE1
where VSIZE(column_name) > (select VSIZE('DD-MON-YYYY') from dual)

Is This Answer Correct ?    0 Yes 0 No

wirte a query to filter improper date format follwing table? date 20-apr 22-may-2010 26-jun-2010..

Answer / kumar

select * from employees
where
length(hire_date)=length(sysdate)

Is This Answer Correct ?    2 Yes 6 No

wirte a query to filter improper date format follwing table? date 20-apr 22-may-2010 26-jun-2010..

Answer / john bershan

select to_char(column_name,'dd-mon-yyyy') from <table_name>;

Is This Answer Correct ?    1 Yes 6 No

wirte a query to filter improper date format follwing table? date 20-apr 22-may-2010 26-jun-2010..

Answer / sowmya

Select date from table where date:=to_date(‘date’,’DD-MM-
YYYY’);

Is This Answer Correct ?    0 Yes 8 No

Post New Answer

More SQL PLSQL Interview Questions

What are the disadvantages of not performing database normalization?

0 Answers  


What are the cursor attributes used in PL/SQL ?

4 Answers  


What is pl sql script?

0 Answers  


what are the security recommendations while using mysql? : Sql dba

0 Answers  


what is the functionality of the function htmlentities? : Sql dba

0 Answers  






what is the output of this query selet * from employee where 1=2 ??

11 Answers  


How to write a query to show the details of a student from students table whose

0 Answers  


what command is used to create a table by copying the structure of another table including constraints ?

6 Answers   CMC, eicc,


Write the command to remove all players named sachin from the players table.

0 Answers  


How to recompile a already made trigger?

2 Answers  


What is use of package in pl sql?

0 Answers  


Explain what is sql*plus?

0 Answers  


Categories