hi, may i know what is the command to get abstract the
current month, current year and current day from a given
date.i want these three in a isolated way..seperatedly is
that any way in sql server 2000

Answer Posted / aravazhi

select month(getdate()) Curr_Mon,Year(getdate())
Curr_Year,day(getdate()) as Curr_day

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to write an inner join with the where clause in ms sql server?

557


What are different types of table joins?

557


As per your opinion what are the five top responsibilities of a dba? : sql server database administration

612


Explain how you can configure a running aggregate in SSRS?

111


explain the difference between oracle- sql and sql server sql ? if both are same y we r using 2 sw.s?

1983






Explain different types of Normalization.

599


Do you know sql server 2008 backup compression?

564


Explain datetime2 data type in sal server 2008?

547


what information is maintained within the msdb database? : Sql server administration

511


What is the function of sql server agent windows service?

539


What is data mart? : sql server analysis services, ssas

596


ow to bring suspect mode datbase online from scratch

1405


Define self join?

629


How to create a view and a stored procedure in ms sql server using "create view/procedure" statements?

512


What changes in the front end code is needed if mirroring is implemented for the high availability? : sql server database administration

608