Hello, i have two tables one of is users:
id int(11) NO PRI NULL auto_increment
membership_type tinyint(3) unsigned NO MUL NULL
username varchar(16) NO NULL
password char(40) NO NULL
email varchar(100) NO NULL
firstname varchar(40) NO NULL
lastname varchar(40) NO NULL
company varchar(120) NO NULL
birthday date NO NULL
country smallint(5) unsigned NO NULL
city smallint(5) NO NULL
address varchar(200) NO NULL
landphone char(10) NO NULL
mobilephone char(10) NO NULL
website varchar(150) NO NULL
feedback_score tinyint(4) NO NULL
created datetime NO NULL
last_login datetime NO NULL
last_ip varchar(15) NO NULL
another's name is user_cache:
user_id int(11) NO MUL NULL
cache_type int(50) NO NULL
value varchar(100) NO NULL
I want to select user data(membership, username, firstname, lastname etc..) and select related user's cache data(select * from user_cache where user_id = X). I select user with simple sql query then i use another sql query for get cache details. I want to join queries into one query. Is this possible ?