Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Which feature in sql server 2008 has surprised you? You can name just one. : sql server database administration

1001


What is master database? : SQL Server Architecture

1083


What samples and sample databases are provided by microsoft?

1089


What is the difference between a primary key and a unique key? Are they the same?

1125


Which are the third-party tools used in sql server and why would you use them?

963


How to add an address record into adventureworkslt?

1030


Write a code to select distinct records without using the DISTINCT keyword.

1186


Explain the cursor lock types?

1099


What are null values in ms sql server?

1145


How to list all login names on the ms sql server?

1185


you want to be sure that queries in a database always execute at the maximum possible speed. To achieve this goal you have created various indexes on tables which other statement will keep the database in good condition? : Sql server administration

1159


How to change the password of a login name in ms sql server?

1059


Explain what is log shipping?

1195


Define compound operators?

968


Why normalization is used?

1069