Is this MySql Query Statement correct?

Posted by Stanley Ngumo on Stack Overflow See other posts from Stack Overflow or by Stanley Ngumo
Published on 2010-05-26T09:24:21Z Indexed on 2010/05/26 9:31 UTC
Read the original article Hit count: 195

Filed under:

Hi

I would like to know whether this MySql statement will be executed correctly,

"SELECT sum(price) FROM products WHERE productid IN (SELECT productid FROM shoppingcart WHERE sessionid=".$this->$sessionid.")"

And if not please give me pointers as to where I am wrong.

Thanks

© Stack Overflow or respective owner

Related posts about mysql