Viewing 7 posts - 1 through 7 (of 7 total)
as per your input above in if there is a data in table 2 if table 1 and table 3 is empty do i need to make it full join?...
April 21, 2011 at 8:02 am
nope i did not correct them, i just put what you have given me, as you know i am real noob in SQL, what is the correct alias btw? and...
April 21, 2011 at 7:51 am
the system got stuck and i waited for around 5 mins then tried it again same thing.
April 21, 2011 at 7:19 am
Dan.Humphries (4/20/2011)
SELECT
p.employee,
p.first_name,
p.last_name,
d.description,
b.expired_date,
u1.description,
u2.description,
u3.description
FROM
person p
left join badge b on b.person_id = p.id
left join department d on d.id = p.department
left join person_user u1...
April 21, 2011 at 5:15 am
thank you very much, i will try it out on the site, hopefully it works.
April 20, 2011 at 10:29 am
I will try to explain it in the best i can as i am not on the site, basically the person_user are user field ex. user1 user2 user3 and u.description...
April 20, 2011 at 9:50 am
My query is giving this output:
SELECT
p.employee,
p.first_name,
p.last_name,
d.description,
b.expired_date,
u.description
FROM person p
left join badge b on b.person_id = p.id
left join department d on d.id = p.department
left join person_user u...
April 20, 2011 at 9:39 am
Viewing 7 posts - 1 through 7 (of 7 total)