Hello friend, I want to make a query that will give the result on order by using two columns. I made query like this.
select
el.*,
lb.LabName,lb.LabType,
lb.LabDescription
from encounterlab el
INNER JOIN
labs lb
ON
lb.LabType=el.LabType
where
PatientAcctNo=4 ORDER BY el.DataOfService,lb.LabName DESC
It gives the results.But My aim is IF in the DataOfService contain the same date I want to make the Order depending upon the LabName and this should be ASC