Click here to Skip to main content
15,896,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have gridview. I want to disply total number of photo,video,songs according to profile_id. This fields are in different table.mns photo in photo table,audio in different table etc and profile_id also in all table. Bt I want to show in same gridview.

gridview should be in following format:
profile_id| no of photo|no of audio,no of video

[edit]SHOUTING removed - OriginalGriff[/edit]
Posted
Updated 7-Dec-12 22:38pm
v4
Comments
OriginalGriff 8-Dec-12 4:38am    
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.
Member 9027346 8-Dec-12 4:47am    
k.i dont want to shout.. bymistake i wrote in capital letters..sry for that...n thanks for telling me.

See this thread...
 
Share this answer
 
v2
This is the way you will get total count of photo, video and songs table in single query.
SQL
select Count(*) as 'Photo ', count(*)as 'Video', count(*) as 'Songs' 
from photo,video,Songs
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900