mysql - SQL query that won't execute -


i new sql , @ loss why piece of code won't execute. know errors no results. no matter how long wait, code keeps processing. know problem has specific database, wondering if there overt errors.

additionally, if has call making in database, how go debugging since no formal errors?

select cr.communications_id answer_id, cr.consumer_id viewer_id,         cr.action_log_id, nc.parent_communications_id question_id,        cirm.consumer_rating viewer_interest,         cim.consumer_interest_expert_id domain (        select 234 consumer_id, action_log_id, communications_id          consumer_action_log          comm_type_id=4       ) cr     join network_communications nc on          cr.communications_id=nc.communications_id     join communication_interest_mapping cim on         nc.parent_communications_id=cim.communication_id     join consumer_interest_rating_mapping cirm on         cr.consumer_id=cirm.consumer_id ,                   cim.consumer_interest_expert_id=cirm.consumer_interest_id; 

the derived column in subquery may throwing mysql off. try query instead same results

select cr.communications_id answer_id, cirm.consumer_id viewer_id,         cr.action_log_id, nc.parent_communications_id question_id,        cirm.consumer_rating viewer_interest,         cim.consumer_interest_expert_id domain (        select action_log_id, communications_id          consumer_action_log          comm_type_id=4       ) cr     join network_communications nc on          cr.communications_id=nc.communications_id     join communication_interest_mapping cim on         nc.parent_communications_id=cim.communication_id     join consumer_interest_rating_mapping cirm on         cim.consumer_interest_expert_id=cirm.consumer_interest_id cirm.consumer_id = 234 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -