Hello Sir..
I want to define a some record id,name,month year,gender
like
(1,'raj',5-9-2005,1) please define query and show output is
(1,'raj', 5-october-2005,male)
Query
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Anupam SinghRank #643 · 3.7K reputationPosted May 13, 2014, 8:39 PM EDT
you should mention you table name and column names here.Any ways.
suppose your table name is [Person'] and columns are [Id],[Name],[Date Of Birth],[SEX]
then the query will be
Hope this will help.
Jignesh TrivediRank #16 · 50.3K reputationPosted May 13, 2014, 9:25 PM EDT
hi,
there is synax error in Anupam Singh query
try
SELECT Id,Name,CONVERT(VARCHAR(11), [Date Of Birth], 106) AS [DOB],
(case Gender when 1 then 'Male' else 'Female' end) as [Gender] from table
hope this will help you