Welcome Guest, Not a member yet? Register   Sign In
can we use two 'AND' operator in mysql......................
#1

[eluser]noname525[/eluser]
vv
#2

[eluser]bgreene[/eluser]
well the query condition is valid ie "where a = b and between x and y" is ok so the fault lies elsewhere
#3

[eluser]Aken[/eluser]
Try giving your SUM() function an alias, so it can actually return a column name.
Code:
SELECT SUM(charge) AS total_charges

Also please post in the appropriate forum sections in the future Wink




Theme © iAndrew 2016 - Forum software by © MyBB