الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

ساعدوني ضروري مره

مغلق
بدأه همس السحاب في 14 مايو 2002 · 2 رد · 430 مشاهدة · في مراجعة المواضيع
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

ابي احد يساعدني

وهذا هي اسئلتي واضحه ................

Table(1)

Hospital contains (hospital_ID, hospital_name,fax_number, website)

hospital_ID= primary key

Table(2)

HospitalPhone contains(hospital_ID,phone_number)

Both r primary keys

Q= I want 2 display each hospital with its phonenumbers with out repetetion

i used this stmt but i dont want each hospital 2 be displayed more than once.

stmt

sql text1= " SELECT a.hospital_name, a.fax_number, b.phone_number from hospital a , hospitaphone b WHERE a.hospital_ID = b.hospital_ID AND a.hospital_ID = " & list hosname.getvalue "

Table (3)

Department contains ( hospital_ID , Dep_ID, Dep_ name)

Hospital_Id , Dep_Id= primary key

Q= I have an advance search wich will choose a certain department along with other fields,

each hospital have many departments, so when i want 2 dispaly the hospital departments it will have repetion , what can i do??

Q= when i write an SQL stmt with 3 conditons using and operator ,it gives me an error how can i write it ??

#2

ما لمانع لو كانت الأسئلة بالعربي

فضلاً أنظر الرابط التالي الفقرة ب السطر الخامس

http://www.arabteam2000.com/vb/showthread....=&threadid=5827

#3
( hospital_ID ) in Table 2 Should not be Pr.Key  But indexed with Allow Dupl.

Regarding Q1 is it required in a Form or a Report ??

Q2 : Build a Select Query Based on Table1 & 3

Q3 : I believe u should show us the design so we can help !!

و يرجي الاكمال بالعربي

هذا الموضوع مغلق.

مواضيع مشابهة