Table student containing 2 columns,Join date,Employee name.
Under join date 4 rows r ter =1-jan-2008,2-feb-2008,3-mar-
2008,4-feb-2008.Under Employee name 4 difeerent names
jaison,robin,binoy,rahul

Result set is,
Table containing 4-column name=jan,feb,mar,april,,beneath
these months count is given as 1,2,1,0 means these counts
representing number of emplooyees joined in a month(january
1employee,february 2 employee,march 1 employee,april 0
employee)

Can you give me the required sql query

Answer Posted / pradip jain

select datename(mm,doj), count(studname) from student group
by doj

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is db stored procedure?

617


what is raid? : Sql server database administration

719


Explain sql delete command?

792


How can I tell if sql server is 32 or 64 bit?

707


Differentiate between delete and truncate.

749






What is the use of nvl work?

721


What are views used for?

779


What methods do you follow to protect from sql injection attack?

702


What are the properties of primary key?

715


What is difference between global temporary tables and local temporary tables?

878


Tell me in brief how sql server enhances scalability of the database system?

714


Which is the latest version of sql server and when it is released?

749


Define ACID properties in a Database?

805


What is the syntax to execute the sys.dm_db_missing_index_details?

744


Is foreign key unique?

748