I decided to resend this thread because I was struggling making my point clear.
I will like to see my output formatted like this:
t.lname #Unsigned t.id t.fname t.spec t.docid
Jim 91 13 eddy 15 30
This is what I have:
select distinct t.lname, sum(t.id) as '# Unsigned', t.fname, t.spec, t.docid
from t
where t.comp = 4
and t.rej = 2
group by t.lastname, t.id, t.firstname, t.specialty, t.docid
Please help!
I will like to see my output formatted like this:
t.lname #Unsigned t.id t.fname t.spec t.docid
Jim 91 13 eddy 15 30
This is what I have:
select distinct t.lname, sum(t.id) as '# Unsigned', t.fname, t.spec, t.docid
from t
where t.comp = 4
and t.rej = 2
group by t.lastname, t.id, t.firstname, t.specialty, t.docid
Please help!