| how to write a query [message #319831] |
Tue, 13 May 2008 02:35  |
sharathmpatil Messages: 26 Registered: February 2008 Location: Bangalore |
Junior Member |

|
|
Hi,
i have a table called projects.
id name department
100 p1 d1
101 p1 d1
102 p1 d1
103 p2 d2
104 p2 d2
105 p3 d3.
the out put requred is like this
p1 3(how many times p1 d1 repeated)
how to write the query for this.
please help.
thanks in advance
|
|
|
|
| Re: how to write a query [message #319835 is a reply to message #319831 ] |
Tue, 13 May 2008 02:44   |
Littlefoot Messages: 6007 Registered: June 2005 Location: Croatia, Europe |
Senior Member |
|
|
Sounds like COUNT and GROUP BY question.
[EDIT] Looks like I was right.
Also, two wrongs don’t make a right, but two Wrights made an airplane.
[Updated on: Tue, 13 May 2008 02:46]
|
|
|
|
|
| Re: how to write a query [message #319848 is a reply to message #319845 ] |
Tue, 13 May 2008 03:48  |
Michel Cadot Messages: 16994 Registered: March 2007 Location: Nanterre, France, http://... |
Senior Member |
|
|
"u" is not member of this forum.
OP clearly said what he wants and question has been answered.
Regards
Michel
|
|
|