Dang, blonde moment.
Thanks,

Virgil


-----Original Message-----
From: ProFox [mailto:[email protected]] On Behalf Of Richard Kaye
Sent: Wednesday, September 24, 2014 1:39 PM
To: [email protected]
Subject: RE: [NF] view results of cursor in php

If you can change the query string just alias the column:

SELECT H, COUNT(H) AS hcount FROM `wp_lca_2013` where left(m,2) = '11' GROUP
BY H order by count(H) desc;

In VFP & SQL the AS is optional so:

SELECT H, COUNT(H) hcount FROM `wp_lca_2013` where left(m,2) = '11' GROUP BY
H order by count(H) desc;

--

rk
-----Original Message-----
From: ProfoxTech [mailto:[email protected]] On Behalf Of Virgil
Bierschwale
Sent: Wednesday, September 24, 2014 2:33 PM
To: [email protected]
Subject: [NF] view results of cursor in php

SELECT H, COUNT(H) FROM `wp_lca_2013` where left(m,2) = '11' GROUP BY H
order by count(H) desc;

 How do I find out what the column name is for that second column.


[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to