I am trying to create a query which will give me a product\'s value 开发者_运维技巧after a number of discounts have been taken off its initial value.
Is this possible? I have 2 tables, Customers and Orders. Now I want to fill a column in Customers with all order id\'s of that customer (comma separated).
I use Sphinx for fulltext search on my app. I use a view to filter the data from a products table and Sphinx indexes this view. Right now I have a hard coded field under the products table wit开发者_G
I\'ve spent a couple of days trying to solve this with limited success, I\'m sure there\'s a simple answer but with no luck so far despite quite a lot of research, I fear the problem is my limited SQL
I\'m trying to figure out how to GROUP BY on multiple columns开发者_开发知识库. I want to group items when the SSN or the address matches. For example, here are three records:
I have started on a script to generate statistics of how 开发者_如何学Pythonoften and when a particular article is called using
In SQL I have table t_test below: emp_code | period_month | company_code NIK001| 01| ALPHA NIK001| 02| ALPHA
I have a query like SELECT CONCAT(manufacturer, \':\', COUNT(*)) AS count FROM cars GROUP BY manufacturer which returns something like:
I have this following query: SELECT a.rank AS rank, concat( m.prenom, \' \', m.nom ) AS name, d.department
i want to arrange the output of my data in descending Here is my code: $result3 = mysql_query(\"SELECT grade1.Semester, curriculum.SCode, curriculum.SDesc, curriculum.Lec, curriculum.Lab, curriculum.