MySQL Forums
Forum List  »  MySQL Query Browser

MYSQL QUERY HELP!!
Posted by: Junard Oclarit
Date: September 27, 2011 12:51AM

how to do this query...Anyone can help me?

I have a table called "tbljobpost" and field "job_id Int , job_title Varchar(50), skill_cat_id varchar(50)"
and table called "tblappskills" and field "app_control Int, skill_cat_id Varchar(50)"

tbljobpost
+----------------------------------------------------------+
|-- job_id -|-- job_title --|------ skill_cat_id -------|
+----------------------------------------------------------+
|---- 1 ----|-- Programmer -|------ 1,2,3,4,5,6,7 --|
+----------------------------------------------------------+

tblappskills
+--------------------------------------------------+
|--- app_control -|------ skill_cat_id -------|
+--------------------------------------------------+
|------ 1 ---------|------- 1,2,4,5,6 ------------|
|------ 2 ---------|------- 1,2,3,7,4 ------------|
|------ 3 ---------|------- 1,2,3,4,5,6,7 -------|
|------ 4 ---------|------- 7,1,4,5,6,2,3 -------|
+--------------------------------------------------+

how i can query or filter the tblappskills that is the same skill_cat_id separated with comma from tbljobpost.
and the result will come like this..

+--------------------------------------------------+
|--- app_control -|------ skill_cat_id -------|
+--------------------------------------------------+
|------ 3 ---------|------- 1,2,3,4,5,6,7 -------|
|------ 4 ---------|------- 7,1,4,5,6,2,3 -------|
+--------------------------------------------------+

tnx in advance for helping...

Options: ReplyQuote


Subject
Written By
Posted
MYSQL QUERY HELP!!
September 27, 2011 12:51AM
September 30, 2011 12:18PM
September 30, 2011 10:22AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.