שאלה בשאילתות SQL
השאלה היא ככה: הציגו דוח אשר נותן כתובת מלאה של כל מחלקה, כולל עיר וארץ (מידע בטבלאות locations, countries) הינה הטבלה שלו http://img641.imageshack.us/img641/1539/48541148.jpg לי יש שתי פתרונות.. אני צריך שתיגדו לי מה נכון.. או ששניהם נכונים.. אפשרות אחת Select Locations.*,Coutries_name From Locations, Coutries where Locations.location_id = (select Departments.location_id From Departments) and Locations.country_id=(select country_id From Coutries) אפשרות שניה select locations.*,countries.* from locations, countries Where deparments.location_id=locations.location_id And locations.country_id= countries.country_id תודה מראש רועי..
השאלה היא ככה: הציגו דוח אשר נותן כתובת מלאה של כל מחלקה, כולל עיר וארץ (מידע בטבלאות locations, countries) הינה הטבלה שלו http://img641.imageshack.us/img641/1539/48541148.jpg לי יש שתי פתרונות.. אני צריך שתיגדו לי מה נכון.. או ששניהם נכונים.. אפשרות אחת Select Locations.*,Coutries_name From Locations, Coutries where Locations.location_id = (select Departments.location_id From Departments) and Locations.country_id=(select country_id From Coutries) אפשרות שניה select locations.*,countries.* from locations, countries Where deparments.location_id=locations.location_id And locations.country_id= countries.country_id תודה מראש רועי..