Microsoft
Software
Hardware
Network
Question : Order by within order by
I have this query below. I need to have an ORDER BY transac_id from ORDER BY t.idinvoice
SELECT
<output name="c.name" title="Name"/>,
<output name="c.reference" title="Reference" />,
<output name="t.transac_id" title="Transaction" />,
<output name="time" />AS Month,
<output name="t.idinvoice" title="Invoice ID" />,
<output name="t.idpayment" title="Payment ID" />,
<output name="amount" Xrenderer="Ext.util.Format
.change" />,
<output name="t.user" />
FROM transac t
LEFT JOIN address a ON a.idaddress = t.idaddress
LEFT JOIN client c ON c.idclient = a.idclient
WHERE a.idaddress = '<input name="idaddress" />'
ORDER BY t.idinvoice
Answer : Order by within order by
Just list the columns to sort by in the order you want them sorted.
ORDER BY transac_id, t.idinvoice
Random Solutions
What is Azure
Select pulldown box B based on selection made in pulldown box A or data from database using php and javascript
Office for MAC 2011
Microsoft Office 2010 trial won't reinstall (not time limit related)
Counting multiple fileds in a Report
CSS Javascript Conflict
Installed new 3rd party cert Exchange 2010 outlook web App and email not working after reboot
Group Policy even ID 1030 and 1058
Removing an orphaned server from Active Directory
Adding computers to WSUS without manual entry?