שאלה בשאילתות SQL

DFSAF6

New member
שאלה בשאילתות 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 תודה מראש רועי..
 

pitoach

New member
אתה מצפה שאנחנו עכשיו נבנה את הטבלאות

והקשרים לבד רק כדי להבין את השאלה?!? אנא צרף DDL+DML
 

pitoach

New member
טעות קישור


DDL+DML http://ariely.info/dnn/Blog/newForumsFAQ/ForumsFAQ349/tabid/157
 
למעלה