Jigs
Registered User.
- Local time
- Tomorrow, 01:01
- Joined
- May 19, 2005
- Messages
- 40
Hi All,
I have 2 tables in my website project.
[1] Country - which consists of fields like Zonecode, countryname, locations
as shown below:
ZoneCode Country Locations
------------------------------------
Zone1 Australia LocAus01
Zone1 Australia LocAus02
Zone1 Australia LocAus03
Zone1 Australia LocAus04
Zone2 Canada LocCan01
Zone2 Canada LocCan02
Zone2 Canada LocCan03
Zone2 Canada LocCan04
[2] Cars - which consists of the all the cars available in the zonecode as shown below :
ZoneCode CarType Car Description
---------------------------------------------
Zone1 CarA aaaaaaaaaaa
Zone1 CarB bbbbbbbbbbb
Zone1 CarC ccccccccccc
Zone2 CarA aaaaaaaaaaa
Zone2 CarG ggggggggggg
Zone2 CarH hhhhhhhhhhh
Now, I want to have the report where it should display Countryname along with the cartype as shown below:
ZoneCode Country CarType Car Description
------------------------------------------------------------
Zone1 Australia CarA aaaaaaaaaaaa
Zone1 Australia CarB bbbbbbbbbbbbb
Zone1 Australia CarC cccccccccccc
Zone2 Canada CarG gggggggggggg
Zone2 Canada CarH hhhhhhhhhhhhh
I only knows that the query will have joins in it. But I do now know how to use it.
Can anybody please help me ?
Thanks in advance,
Jigs
I have 2 tables in my website project.
[1] Country - which consists of fields like Zonecode, countryname, locations
as shown below:
ZoneCode Country Locations
------------------------------------
Zone1 Australia LocAus01
Zone1 Australia LocAus02
Zone1 Australia LocAus03
Zone1 Australia LocAus04
Zone2 Canada LocCan01
Zone2 Canada LocCan02
Zone2 Canada LocCan03
Zone2 Canada LocCan04
[2] Cars - which consists of the all the cars available in the zonecode as shown below :
ZoneCode CarType Car Description
---------------------------------------------
Zone1 CarA aaaaaaaaaaa
Zone1 CarB bbbbbbbbbbb
Zone1 CarC ccccccccccc
Zone2 CarA aaaaaaaaaaa
Zone2 CarG ggggggggggg
Zone2 CarH hhhhhhhhhhh
Now, I want to have the report where it should display Countryname along with the cartype as shown below:
ZoneCode Country CarType Car Description
------------------------------------------------------------
Zone1 Australia CarA aaaaaaaaaaaa
Zone1 Australia CarB bbbbbbbbbbbbb
Zone1 Australia CarC cccccccccccc
Zone2 Canada CarG gggggggggggg
Zone2 Canada CarH hhhhhhhhhhhhh
I only knows that the query will have joins in it. But I do now know how to use it.
Can anybody please help me ?

Thanks in advance,

Jigs