ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
How do we get month name in SQL Server 2000, Oracle, MS Access?
 Question Submitted By :: Honeysukumar
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How do we get month name in SQL Server 2000, Oracle, MS Access?
Answer
# 1
select datename(mm,getdate())
 
Is This Answer Correct ?    106 Yes 19 No
Sairam
 
  Re: How do we get month name in SQL Server 2000, Oracle, MS Access?
Answer
# 2
in ms-access we can use
select format(date(),'mmmm')
 
Is This Answer Correct ?    26 Yes 20 No
Rajiv Rohilla
 
 
 
  Re: How do we get month name in SQL Server 2000, Oracle, MS Access?
Answer
# 3
In Oracle,

SELECT to_char(sysdate,'month') from dual
 
Is This Answer Correct ?    26 Yes 8 No
Menaka
 
  Re: How do we get month name in SQL Server 2000, Oracle, MS Access?
Answer
# 4
select datename(month,parametername or columnname) from 
tablename
 
Is This Answer Correct ?    23 Yes 13 No
Kongu Karunakaran
 
  Re: How do we get month name in SQL Server 2000, Oracle, MS Access?
Answer
# 5
FOR POSTGRES DATABASE
SELECT to_char(NOW(),'month')
 
Is This Answer Correct ?    10 Yes 9 No
Brahma Prakash
 
  Re: How do we get month name in SQL Server 2000, Oracle, MS Access?
Answer
# 6
In Oracle make the first letter capital if you wish the 
output names also capitalised. "Month" instead of "month"
 
Is This Answer Correct ?    10 Yes 5 No
Marco Birchler
 
  Re: How do we get month name in SQL Server 2000, Oracle, MS Access?
Answer
# 7
SELECT CONVERT(varchar,GETDATE(),0)
Return Value = Jun 6 2007
 
Is This Answer Correct ?    2 Yes 5 No
Anil Sharma
 
  Re: How do we get month name in SQL Server 2000, Oracle, MS Access?
Answer
# 8
select month(getdate()) 
select month(dateparametername) from tablename
---here u will get number of month
or 

select datename(month,getdate())
select datename(month,dateparametername) from tablename
to get name of month
 
Is This Answer Correct ?    1 Yes 2 No
Foram
 
  Re: How do we get month name in SQL Server 2000, Oracle, MS Access?
Answer
# 9
In Oracle 

select to_char(sysdate, 'dd/mm/yyy')as year from dual


EG:-

select ed.emp_date_of_birth,ed.first_name,ed.last_name 
from emp_details ed where
to_char(ed.emp_date_of_birth,'mm')=to_char(sysdate,'mm')
 
Is This Answer Correct ?    1 Yes 2 No
Kathiravan Jayachandran
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
What is the basic functions for master, msdb, tempdb databases? CSC2
Explain Trigger with an example?  1
could u plz explain about joins and views?  2
WHAT IS DIFFRENCE BETWEEN TRUNCATE AND DELETE STATEMENT CTS10
how to write the query to select the rows are in the order of either 1,3,5,7... or 2,4,6,8,... ADP5
how many joins we can write if at all we have n no of tables Tanla-Solutions4
What is a trigger?  3
Can you create UNIQUE and PRIMARY KEY constraints on computed columns in SQL Server 2000? Infosys1
How to find the last update record in SQL Server?  3
Let’s say the table in the database is named as TBL_Register. The fields in this table include: 1. User_Name, 2. User_Telephone, 3. Register_Date The field Register_Date stores the current date and time of the registration. Write the SQL statement that inserts the data into the table. Techno-Solutions2
one table has four field id,name,design,salary. i have to find maximum salary .  6
How to find the second largest salary in the emp database and also How to find 3rd,4th and so on ........ in the emp database plz mail the answer @ mak2786@gmail.com Oracle18
What is MSDE?  2
What is normalization in Database ?  4
What are the four main query statements?  3
What is the difference between login and a user? TCS7
i need some interview questions on sql server developer plz any onee send some links.  1
What are cursors?  8
What is the difference between 2-Tier architecture and 3-Tier architecture Oracle10
What is a join and their types? Challenger-Financial2
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com