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
Define cursor locking
What do you mean by 'normalization'?
How to write a query with a left outer join in ms sql server?
What is instead of dml trigger?
What is 1nf normalization form?
What the different components of Replication and what is their use?
What is index in an assignment?
What are the new scripting capabilities of ssms? : sql server management studio
What is the difference between DataRow.Delete() and DataRow.Remove()?
Is a primary key unique?
Explain what is raid and what are different types of raid levels?
Explain index in sql server?
What are different types of join?
Where the sql logs gets stored?
Explain database normalization?