Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

sum

0
votes
3 answers
57 views

Problem summing floats from SQLite database for android app

I'm having a problem with summing floats properly from my SQLite database. I have created my table as follows where I have set the column 'amount'…
asked June 24, 2011 6:49 am CDT
Aaron
1
vote
2 answers
38 views

MySql SUM(), grouping by month, Months with '0' don't appear

I have this MySql query: SELECT YEAR(date), MONTHNAME(date), SUM(block_time) FROM flights WHERE operator = 'PSD' GROUP BY YEAR(date), MONTH(date)…
asked June 16, 2011 5:23 pm CDT
Lazy8
0
votes
1 answer
44 views

Calculate sum from three tables

I have 3 mysql tables: Client_courses Client_courses_id Client_id Course_id 1 1 2 2 1 3 3 2 1 Client Client_id Name 1 Tom 2 John Courses Course_id…
asked June 14, 2011 2:51 pm CDT
Lina
0
votes
2 answers
36 views

Constraints on SUM function in MySQL query

I'm working on developing a basic search engine in MySQL. the search is based on keywords, and each searchable item has a number of keywords…
asked June 14, 2011 12:30 pm CDT
Izbitzer
0
votes
1 answers
29 views

Returning Column valuses and Sum() of column valuses in one MySQL query.

I have a table: id, cust#, payment, date 1, cus1, 508, 2010-01-01 2, cus2, 40, 2010-01-01 3, cus1, 13, 2010-01-02 I have this for my query. select…
asked June 9, 2011 11:58 am CDT
user791371
0
votes
2 answers
36 views

How to sum values of a view in a date range using couchdb?

If I have a map function emitting a timestamp as key ad a number as document, how to get sum of values selecting a date range?
asked June 9, 2011 9:50 am CDT
fdb
0
votes
1 answer
28 views

MySQL Sum on matching set of data

Hi, This is my first post in this forum. I normally find ans to my problems when search but this is the first time I needed to post this question.…
asked June 5, 2011 6:40 am CDT
aamir
0
votes
0 answers
38 views

The mysql function sum() is showing unexpected result!

I use the sum() function for provision in my mysql database, in this case query fetches only 1 result, it is 29.9 So sum(provision) is 29.8 I dont…
asked June 1, 2011 6:15 am CDT
TooCooL
0
votes
2 answers
33 views

Multiple Joins Mysql Doubles SUM values

Im trying to make a a query, but its doubling the Sum values SELECT cidades.id AS id, cidades.name AS municipio, Sum(conjuntos.n_uhs) AS uh,…
asked May 31, 2011 8:17 am CDT
Rodrigo Ranieri
1
vote
1 answer
34 views

How to sum values at the same time getting all rows in mysql

İ have a video table named videos and here these are the columns : vid v_uid v_view v_title v_info 1 45 56487 foo foo 2 45 455 3 45 98989 ... My…
asked May 26, 2011 4:26 am CDT
Murat
0
votes
1 answers
45 views

Problem with query to sum two columns

I have this query, a table transaction with value1, value2, and other columns var result = (from t in db.Transaction group t by t.TransactionId into…
asked May 25, 2011 11:52 am CDT
k-dev
0
votes
2 answers
21 views

SQL how do I get a SUM of the checkins?

SELECT promotions.`sms_promo_id`, places.`id`, places.`name`, insights.`checkins`, insights.`likes`, insights.`place_id` FROM promotions INNER JOIN…
asked May 24, 2011 2:29 am CDT
JZ
0
votes
0 answers
41 views

MySQL-PHP Query - SUM subtotal and Total - Correct way to approach...?

I have three tables - players, round_one and round_two. In my query, I have SUM functions for pulling out point totals from round_one and round_two,…
asked May 22, 2011 8:16 pm CDT
Philip Black
2
votes
2 answers
31 views

MYSQL Sum results of a calculation

Hi All, I am building a query in mysql 5.0 to calculate a student semester grade. The initial table (studentItemGrades) contains the list of…
asked May 17, 2011 1:28 pm CDT
Max H
0
votes
1 answer
26 views

Count products and sum prices from different tables

I have these three tables: Products ID NAME 1 Notebook 2 Keyboard Base1 PRODUCT_ID PRICE 1 2 1 2 1 2 2 3 Base2 PRODUCT_ID PRICE 1 2 1 2 1 2 1 2 2 3…
asked May 17, 2011 5:36 am CDT
xerox
2
votes
1 answer
32 views

Count and Avg the number of records in MySQL

Hey guys, I need some help with this. I have a table with about 100k records. Each row is referenced by an ID. Here is an example Keyword | Domain |…
asked May 16, 2011 9:51 am CDT
Rohit Chopra
0
votes
4 answers
40 views

Mysql - How to create column that automatically sums rows?

I have searched for hours about this on google, stackoverflow, etc., and have found nothing. I would greatly appreciate any help! I have a mysql…
asked May 15, 2011 12:18 am CDT
Stanvrl
0
votes
1 answers
27 views

Problem with one of my LEFT JOIN and SUM the result of it

So I got a question about LEFT JOIN , this code returns different values for totalPoints depending on if the user got the group or not. (if user…
asked May 14, 2011 4:50 am CDT
Pontus
0
votes
2 answers
26 views

Mysql queries issue

Hi!I have 3 tables in my mysql DB to query. Users_rates (fields: id,userid,raterid,rate,eventid) containing all of the rates(rate) that have been…
asked April 25, 2011 4:33 am CDT
luca
1
vote
2 answers
38 views

MYSQL: JOIN makes SUM double

Hi. This should be really easy. Believe me, I've been researching this for hours. My query: SELECT not_piece.pid, part.name AS 'Part Name',…
asked April 15, 2011 4:31 pm CDT
Slim Volume
Pages : 1 | 2 | 3 >
44

sum

Tagged: sum
Related Tags
mysql × 39
query × 8
php × 7
sql × 6
join × 5
group-by × 5
count × 3
select × 3
postgresql × 2
subquery × 2
distinct × 2
sqlite × 2
left-join × 2
redis × 1
aggregate × 1
columns × 1
grouping × 1
android × 1
casting × 1
float × 1
sortedset × 1
subtotal × 1
max × 1
xml × 1
row × 1
date × 1