Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 trigger and different types of Triggers?

1069


What is it unwise to create wide clustered index keys?

953


Explain forward - only cursors?

981


What is self contained multi valued query?

949


What information is maintained within the msdb database?

925


Explain the difference between cross join and full outer join?

924


Why the trigger fires multiple times in single login?

1153


How you can change the database name in SQL SERVER?

1132


what method you can use to reduce the overhead of Reporting Services data sources?

234


How to transfer data from a cursor to variables with a "fetch" statement?

1020


What is the difference between char and varchar2 datatype in sql?

1007


Write a SQL queries on Self Join and Inner Join.

985


what's the difference between a primary key and a unique key? : Sql server database administration

892


What the different components of Replication and what is their use?

1015


What are cascading parameters in ssrs reports?

212