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

لماذا لا أستطيع تنفيذ هذه الكويري؟

مغلق
بدأه علي العقيلي في 21 ديسمبر 2004 · 2 رد · 535 مشاهدة · في قواعد بيانات Microsoft Access
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم و رحمة الله و بركاته ، أيها الأحبة..

لقد تعبت من البحث عن الحل لهذه المشكلة ، فبالله عليكم ساعدوني إذا كان لديكم الحل.

لدي جدول يحتوي على بيانات يتم تجميعها من المرضى. هذا الجدول يحتوي على أكثر من سبعين عموداً ، ضخم جداً.

لدي مجموعة من المرضى رفضوا المشاركة ، و بالتالي فالحقول السبعون كلها فارغة ماعدا رقم المريض ، و رقم مدخل البيانات في آخر الجدول.

ما أريده هو أن أستخرج أرقام المرضى الذين رفضوا الإجابة ، أي كل صف في الجدول يحتوي فقط على رقم المريض ، ثم رقم المدخل ، و بقية الحقول كلها فارغة.

فكتبت هذه الكويري المضحكة:

SELECT Patient.ID, Patient.ENTRY
FROM Patient
WHERE (((Patient.ACCEPT) Is Null) AND ((Patient.I1) Is Null) AND ((Patient.I3) Is Null) AND ((Patient.I5HJ) Is Null) AND ((Patient.I5) Is Null) AND ((Patient.C1) Is Null) AND ((Patient.C2HJ) Is Null) AND ((Patient.C2) Is Null) AND ((Patient.C3) Is Null) AND ((Patient.C4) Is Null) AND ((Patient.C6) Is Null) AND ((Patient.C7) Is Null) AND ((Patient.C7S) Is Null) AND ((Patient.C8) Is Null) AND ((Patient.C9B) Is Null) AND ((Patient.C9D1) Is Null) AND ((Patient.C9D2) Is Null) AND ((Patient.C10) Is Null) AND ((Patient.C11) Is Null) AND ((Patient.S1A) Is Null) AND ((Patient.S1B) Is Null) AND ((Patient.S2A) Is Null) AND ((Patient.S2BYEAR) Is Null) AND ((Patient.S2BMONTH) Is Null) AND ((Patient.S2BWEEK) Is Null) AND ((Patient.S3A) Is Null) AND ((Patient.S3B) Is Null) AND ((Patient.S3C) Is Null) AND ((Patient.S3D) Is Null) AND ((Patient.S3SM) Is Null) AND ((Patient.S3E) Is Null) AND ((Patient.S3EOTHER) Is Null) AND ((Patient.S4) Is Null) AND ((Patient.S5A) Is Null) AND ((Patient.S5BYEAR) Is Null) AND ((Patient.S5BMONTH) Is Null) AND ((Patient.S5BWEEK) Is Null) AND ((Patient.S6A) Is Null) AND ((Patient.S6B) Is Null) AND ((Patient.S7A) Is Null) AND ((Patient.S7B) Is Null) AND ((Patient.S7C) Is Null) AND ((Patient.S7D) Is Null) AND ((Patient.S8) Is Null) AND ((Patient.D1A) Is Null) AND ((Patient.D1B) Is Null) AND ((Patient.D2A) Is Null) AND ((Patient.D2B) Is Null) AND ((Patient.D3) Is Null) AND ((Patient.D4A) Is Null) AND ((Patient.D4B) Is Null) AND ((Patient.P1) Is Null) AND ((Patient.P2) Is Null) AND ((Patient.P3A) Is Null) AND ((Patient.P3BMIN) Is Null) AND ((Patient.P3BHR) Is Null) AND ((Patient.P4) Is Null) AND ((Patient.P5A) Is Null) AND ((Patient.P5BMIN) Is Null) AND ((Patient.P5BHR) Is Null) AND ((Patient.P6) Is Null) AND ((Patient.P7) Is Null) AND ((Patient.P8A) Is Null) AND ((Patient.P8BMIN) Is Null) AND ((Patient.P8BHR) Is Null) AND ((Patient.P9) Is Null) AND ((Patient.P10) Is Null) AND ((Patient.P11A) Is Null) AND ((Patient.P11BMIN) Is Null) AND ((Patient.P11BHR) Is Null) AND ((Patient.P12) Is Null) AND ((Patient.P13A) Is Null) AND ((Patient.P13BMIN) Is Null) AND ((Patient.P13BHR) Is Null) AND ((Patient.P14AMIN) Is Null) AND ((Patient.P14AHR) Is Null) AND ((Patient.H1) Is Null) AND ((Patient.H2) Is Null) AND ((Patient.H3A) Is Null) AND ((Patient.H3B) Is Null) AND ((Patient.H3C) Is Null) AND ((Patient.H3D) Is Null) AND ((Patient.H3E) Is Null) AND ((Patient.H4) Is Null) AND ((Patient.H5) Is Null) AND ((Patient.H6) Is Null) AND ((Patient.H7) Is Null) AND ((Patient.H8A) Is Null) AND ((Patient.H8B) Is Null) AND ((Patient.H8C) Is Null) AND ((Patient.H8D) Is Null) AND ((Patient.H8E) Is Null) AND ((Patient.H8F) Is Null) AND ((Patient.H9) Is Null) AND ((Patient.H10) Is Null) AND ((Patient.M3) Is Null) AND ((Patient.M4) Is Null) AND ((Patient.M5) Is Null) AND ((Patient.M8) Is Null) AND ((Patient.M16) Is Null) AND ((Patient.M12A) Is Null) AND ((Patient.M12B) Is Null) AND ((Patient.M13A) Is Null) AND ((Patient.M13B) Is Null) AND ((Patient.M14A) Is Null) AND ((Patient.M14B) Is Null) AND ((Patient.M15) Is Null) AND ((Patient.B4MIN) Is Null) AND ((Patient.B4HR) Is Null) AND ((Patient.B5) Is Null) AND ((Patient.B5A) Is Null) AND ((Patient.B8) Is Null) AND ((Patient.B8A) Is Null) AND ((Patient.B11) Is Null) AND ((Patient.B11A) Is Null) AND ((Patient.B14) Is Null) AND ((Patient.B14A) Is Null) AND ((Patient.VALID) Is Null) AND ((Patient.AGEDT) Is Null) AND ((Patient.AGE)<>"False"));

وكانت النتيجة

Too Complex query!!

علما أن الجدول في آكسس ..

من يساعدني ؟

#2

جرب الصيغة التالية :

SELECT Patient.ID, Patient.ENTRY
FROM Patient
WHERE 'Patient.ACCEPT Is Null AND Patient.I1 Is Null'

طبعا بعد أن تتم بقية الحقول

تم تعديل هذه المشاركة بواسطة biskra في 21 ديسمبر 2004 في 20:58

#3

أخي الكريم .. ضع عنواناً مناسباً لموضوعك بدلاً من العناوين العامة

وفقك الله

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

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