Multi SELECT statement problem subquery issue need help urgentlyhttp://forums.asp.net/t/1577280.aspx/1?Multi+SELECT+statement+problem+subquery+issue+need+help+urgentlyWed, 14 Jul 2010 11:53:22 -040015772803964585http://forums.asp.net/p/1577280/3964585.aspx/1?Multi+SELECT+statement+problem+subquery+issue+need+help+urgentlyMulti SELECT statement problem subquery issue need help urgently <p>I want to return the count of a tag in a sub routine that corresponds to single result set like so.</p> <p></p> <pre class="prettyprint">SELECT sys_Objects_Tags.TagID, sys_Tags.TagName, (SELECT COUNT(*) FROM sys_Objects_Tags INNER JOIN sys_Tags ON sys_Objects_Tags.TagID = sys_Tags.TagID WHERE sys_Objects_Tags.SystemObjectID = @BlogID GROUP BY sys_Objects_Tags.TagName ) Count // &lt;- this column here need to be called &quot;Count&quot; I just need the count here of how many times the tag occures From sys_Objects_Tags INNER JOIN sys_Tags ON sys_Objects_Tags.TagID = sys_Tags.TagID WHERE sys_Objects_Tags.SystemObjectID = @BlogID AND sys_Objects_Tags.SystemObjectRecordID = @BlogEntryID AND sys_Objects_Tags.TableName = 'Blog' GROUP BY sys_Objects_Tags.TagID, sys_Tags.TagName</pre> <p><br> <br> </p> <p></p> 2010-07-09T04:57:48-04:003966071http://forums.asp.net/p/1577280/3966071.aspx/1?Re+Multi+SELECT+statement+problem+subquery+issue+need+help+urgentlyRe: Multi SELECT statement problem subquery issue need help urgently <p>Hi Sir ,</p> <p>can give us a schema about the fields those&nbsp;you're working on &nbsp;.</p> <p>&nbsp;</p> 2010-07-09T23:32:39-04:003972307http://forums.asp.net/p/1577280/3972307.aspx/1?Re+Multi+SELECT+statement+problem+subquery+issue+need+help+urgentlyRe: Multi SELECT statement problem subquery issue need help urgently <p>Please refer this&nbsp;areticle, I think it can&nbsp;help you solve this issue,</p> <p><a href="http://forge.mysql.com/wiki/TagSchema">http://forge.mysql.com/wiki/TagSchema</a>&nbsp;</p> 2010-07-14T11:53:22-04:00