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
VM printing to wireless printer prints multiple copies of same document
Google Analytics
Raid 5 and LInux
How do you edit the GPO for WSUS in 2008 R2
Removing IDVault on 8.5 Domino server
php5 classes and lazy loading
Lookup and Copy the content from another workbook
Stored Procedure Loops etc
SCCM Site Boundries
Right-click extremely slow on Windows XP