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 / monal
FOR SQL 2005:
select datediff (day, birthdate, getdate())/365 from emp
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What are the differences between char and varchar in ms sql server?
Explain the working of sql privileges?
What is the stuff and how does it differ from the replace function?
What is model database? : SQL Server Architecture
How to name query output columns in ms sql server?
what is normalization? : Sql server database administration
What is history table in sql server?
What is the difference between upgrade and migration in sql server?
What is the command dbcc checkdb used for?
Why do we use non clustered index?
What is the difference between rank and dense_rank?
What is the dbcc command and why is it used?
Explain log shipping and mention its advantages.
What are the properties of primary key?
do views contain data ?