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
ESX 4.0 & Windows 07 Dual Boot
I have it in ASP but I wonder how can I write this in PHP
Change text input field value with dropdown menu selection.
Nonqualified transactions are being rolled back.
why don't we feel the force??
HTTP 403 Forbidden error in WordPress installation
get a remote windows server OS version and IP address without access permission on that server
SBS2008 create public mailbox
Delete rows in excel
How Do I Generate An MS Word (.doc) File On The Fly Using PHP