sql - The result of a scalar fullselect, SELECT INTO statement, or VALUES INTO statement is more than one row -


i have problem query , dont know it.here query.and error take.

select prd.product_id,prd.prd_name ,prd.prd_longname ,prd.prd_brand ,prd.prd_picture ,prd.market_comment ,prd.categ ,prd.status_id ,prd.status ,prd.active_stock ,prd.slot_date ,prd.currency ,prd.selling_price ,prd.old_price ,prd.type_of_sell ,prd.catalog_id ,prd.catalog_name ,prd.demo ,prd.demo_id,      (select coalesce(count(prd_attribute_id),0) prd_attribute status_id = 1 , product_id = prd.product_id , batch_code <> '0000') attr_cnt  ,     (select prd_attribute_id prd_attribute product_id = prd.product_id , batch_code = '0000' , status_id = 1),     (select categ_url dbname.prd_category  parameter_id = prd.categ_id)||'/'||    (select prd_url dbname.product_url product_id = prd.product_id) categ_url  temp_web_prd prd  order slotdate desc fetch first 12 rows 

error:

 [ibm][cli driver][db2/aix64] sql0811n  result of scalar fullselect, select    statement, or values statement more 1 row.  sqlstate=21000 

the error message pretty self-explanatory. 1 of sub-selects returning more 1 row back, , database doesn't know how handle that. i'm guessing database db2 on linux/unix/windows, based on error message, here's info center article on error.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -