we have emp table like Ename,EDOJ,EDOB with Column
structure.but we want to know the employee Age.How? Any
Body Plz

Answer Posted / santhi k

select trunc(months_between(Sysdate,EDOB)/12)Age from emp;

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What happens if date-only values are provided as date and time literals?

751


What is key attribute?

699


Explain about builtinadministrator?

772


What is difference between aggregate and analytic function?

661


Explain indexing and what are the advantages of it?

712






Why we use the openxml clause?

721


Difference between DELETE and TRUNCATE?

790


Why do we use non clustered index?

736


What is the report builder?

121


What does the not null constraint do?

747


What is database replication? What are the different types of replication you can set up in sql server?

667


why would you call update statistics? : Sql server database administration

739


How to enable tcp/ip protocol on a sql server?

790


What is collation sensitivity? Explain different types.

721


What is enhanced database mirroring in sql server 2008?

678