Hi! Can somebody help me making a query for this: I have one table with 3 columns (a,b,c). a := id (reference to the second table) (key) b := userid (key) c := "amount of units" and another table with two columns (a,d) a := id (key) d := price I want a query which gives me the total bill for each userid. My problem is to multiply c and d. Then I have to sum it all and group it by username. Can I do that in one query? // Christian -- www: http://www.ivc-sep.kt.dtu.dk/ --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php