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
Answer / praveen
select to_date('Column_Name','dd-mon-yyyy') from table_name;
| Is This Answer Correct ? | 23 Yes | 15 No |
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 |
Answer / dipti
select * from TABLE1
where VSIZE(column_name) > (select VSIZE('DD-MON-YYYY') from dual)
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / kumar
select * from employees
where
length(hire_date)=length(sysdate)
| Is This Answer Correct ? | 2 Yes | 6 No |
Answer / john bershan
select to_char(column_name,'dd-mon-yyyy') from <table_name>;
| Is This Answer Correct ? | 1 Yes | 6 No |
Answer / sowmya
Select date from table where date:=to_date(‘date’,’DD-MM-
YYYY’);
| Is This Answer Correct ? | 0 Yes | 8 No |
What is left join example?
Which is better join or subquery?
What is data control language (dcl)?
what are the differences between require and include, include_once and require_once? : Sql dba
one of the column in my table contains the data like SAL ---- 1000 1000 2000 3000 3000 So my requirement is i want output like SAL --- 1000 2000 3000 it mean i want to delete duplicate rows in the table permanently and i want output in the above formatow should u write query?
Does truncate remove indexes?
Is there a 64 bit version of ssms?
Does db2 use sql?
i have xml source. xml source having lacks of records. i want extract/retrive xml source data using sql query. please tell me how to write query.
is it possible to pass an object or table to a procedure as an argument?
Explain the the update statement in sql?
Is a foreign key always unique?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)