Question: Can I embed an XML file in HTML without using iFrames?
I want to show XSL-transformed XML(which, is HTML as a result of transformation) as a part of my HTML document. Hope this makes it clearer.

If my description of problem is unclear, please tell me and I will try to explain it more.

Answer: 
While it doesn't address your question of reasonable design, here's a query that gets you both counts at once:

```
select
    sum(case when score = 1 then 1 else 0 end) 'positive'
,   sum(case when score = -1 then 1 else 0 end) 'negative'
,   objectId
from
    ratings
where
    objectId = @objectId ...
group by
    objectId

```
```
select object_id, 
       sum(case when score = 1 then 1 else 0) upvotes, 
       sum(case when score = -1 then -1 else 0) downvotes,
       sum(score)
from ratings
group by object_id 

```

Perhaps something like that.