Category
- Php
- JAVA
- DOTNET
- Vbscript
- C
- vb
- html
- Mysql
- Oracle
- sql
- Db
- Computer
- Commerce
- Business
- Arts
- Cashier
- Audit
- Banking
- Accounts
- Math
- Physics
- Biology
- Others
Home >> Asked Questions >> Mysql
Q. Having clause mysql
Answer :
SELECT ord.cust_id, c.name, MAX(ord.payment)
FROM orders AS ord, customers AS c
WHERE ord.custid = c.custid
GROUP BY o.custid;
FROM orders AS ord, customers AS c
WHERE ord.custid = c.custid
GROUP BY o.custid;
Posted By : app101
Most Viewed Questions