الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

مساعده في تصميم قاعده بيانات عياده اسنان

Featured Replies

بتاريخ:

الاستاذ امجد
انا ابغى اعتمد قاعده البيانات هذه في مشروعي عيادة الاسنان
اذا كان عندك ملاحظات
اوتعديلات عليها تفيدني انت وباقي الاعضاء بارك الله فيكم

CREATE TABLE Doctor ( DoctorNo Number(1) primary key, DoctorName Varchar2(40) NOT NULL, QualifidDoctor Varchar2(12) Check(QualifidDoctor in('packloria','magsteer','doctora')), DateOfGraduation Date NOT NULL, DateOfAppointed Date NOT NULL, DateOfBirth Date NOT NULL, Phone Number(9) Unique ) ;

CREATE TABLE Patients( PatientNo Number(5) Primary key, patientName Varchar2(40) NOT NULL, Date_of_hearth Date NOT NULL, Sex Varchar2(5) check(Sex in('male','famle')), Phone Number(9) Unique, VisitationNo Number(2) NOT NULL);

CREATE TABLE Operating( OperatingNo Number(4) primary key, OperatingType Varchar2(10) Check(operatingType in('pull out','setup','cleaning')), DateOperating Date , DoctorNo references Doctor(DoctorNo), PatientNo references Patients(PatientNo));

CREATE TABLE Secretary( SecretaryNo Number(1) primary key, SecretaryName Varchar2(40) NOT NULL, QualifiedSecretary Varchar2(12) Check(QualifiedSecretary in('Doplom','packloria')), DateOfGraduation Date NOT NULL, DateEmployed Date NOT NULL);

CREATE TABLE Revenues( BillNo Number(5) primary key, RevenuesType Varchar2(60), DateOfCollecting Date NOT NULL, SecretaryNo Number(1) referencessecretary(SecretaryNo) , patientNo references Patients(PatientNo) ) ;

 CREATE TABLE Reserve( ReserveNo Number(2) primary key, DateOfReserve Date NOT NULL, D_M_S Date NOT NULL, T_M_S date Unique, StateType Varchar2(10) check(StateType in('pull out','setup','cleaning')), T_A_P date Unique, SecretaryNo references Secretary(SecretaryNo), PatientNo references Patients(PatientNo ‏) ‏) ;
بتاريخ:

السلام عليكم ورحمة الله 

 

بداية الموضوع موجود بالمنتدى من قبل 

مساعدة في تصميم جداول مشروع عياده اسنان

http://www.araboug.org/ib/index.php?showtopic=50151

 

ومع ذلك 

 

تم التصحيح لبعض الأخطاء وإضافة العلاقات بين الجداول 

 

ما المقصود بالجدول RESERVE

--افترضت ان  RESERVE هو جدول حجز المواعيد والعمليات للمرضى وتم ربط الجداول الأخرى به  

- يمكن التطوير والإضافه للجداول حسب نطاق العمل في مشروعك 

- توجد مشاركات اخرى بمنتدى تحليل النظم عن هذا الموضوع يمكنك الإطلاع عليها 

create table DOCTOR 
(
   DOCTORNO             Number(3)            not null,
   DOCTORNAME           Varchar2(40)         not null,
   QUALIFIDDOCTOR       Varchar2(12)        
      constraint CKC_QUALIFIDDOCTOR_DOCTOR check (QUALIFIDDOCTOR is null or (QUALIFIDDOCTOR in ('packloria','magsteer','doctora'))),
   DATEOFGRADUATION     Date                 not null,
   DATEOFAPPOINTED      Date                 not null,
   DATEOFBIRTH          Date                 not null,
   PHONE                Number(9),
   constraint PK_DOCTOR primary key (DOCTORNO),
   constraint AK_KEY_2_DOCTOR unique (PHONE)
);


create table OPERATING 
(
   OPERATINGNO          Number(4)            not null,
   RESERVENO            Number(2)            not null,
   OPERATINGTYPE        Varchar2(10)        
      constraint CKC_OPERATINGTYPE_OPERATIN check (OPERATINGTYPE is null or (OPERATINGTYPE in ('pull out','setup','cleaning'))),
   DATEOPERATING        Date,
   constraint PK_OPERATING primary key (OPERATINGNO)
);


create table PATIENTS 
(
   PATIENTNO            Number(5)            not null,
   PATIENTNAME          Varchar2(40)         not null,
   DATE_OF_HEARTH       Date                 not null,
   SEX                  Varchar2(5)         
      constraint CKC_SEX_PATIENTS check (SEX is null or (SEX in ('male','famle'))),
   PHONE                Number(9),
   VISITATIONNO         Number(2)            not null,
   constraint PK_PATIENTS primary key (PATIENTNO),
   constraint AK_KEY_2_PATIENTS unique (PHONE)
);


create table RESERVE 
(
   RESERVENO            Number(2)            not null,
   DATEOFRESERVE        Date                 not null,
   D_M_S                Date                 not null,
   T_M_S                date,
   STATETYPE            Varchar2(10)        
      constraint CKC_STATETYPE_RESERVE check (STATETYPE is null or (STATETYPE in ('pull out','setup','cleaning'))),
   T_A_P                date,
   SECRETARYNO          Number(3)            not null,
   PATIENTNO            Number(5)            not null,
   DOCTORNO             Number(3)            not null,
   constraint PK_RESERVE primary key (RESERVENO),
   constraint AK_KEY_2_RESERVE unique (T_M_S),
   constraint AK_KEY_3_RESERVE unique (T_A_P)
);


create table REVENUES 
(
   BILLNO               Number(5)            not null,
   RESERVENO            Number(2)            not null,
   REVENUESTYPE         Varchar2(60),
   DATEOFCOLLECTING     Date                 not null,
   constraint PK_REVENUES primary key (BILLNO)
);


create table SECRETARY 
(
   SECRETARYNO          Number(3)            not null,
   SECRETARYNAME        Varchar2(40)         not null,
   QUALIFIEDSECRETARY   Varchar2(12)        
      constraint CKC_QUALIFIEDSECRETAR_SECRETAR check (QUALIFIEDSECRETARY is null or (QUALIFIEDSECRETARY in ('Doplom','packloria'))),
   DATEOFGRADUATION     Date                 not null,
   DATEEMPLOYED         Date                 not null,
   constraint PK_SECRETARY primary key (SECRETARYNO)
);


alter table OPERATING
   add constraint FK_OPERATIN_REFERENCE_RESERVE foreign key (RESERVENO)
      references RESERVE (RESERVENO);


alter table RESERVE
   add constraint FK_RESERVE_REFERENCE_SECRETAR foreign key (SECRETARYNO)
      references SECRETARY (SECRETARYNO);


alter table RESERVE
   add constraint FK_RESERVE_REFERENCE_PATIENTS foreign key (PATIENTNO)
      references PATIENTS (PATIENTNO);


alter table RESERVE
   add constraint FK_RESERVE_REFERENCE_DOCTOR foreign key (DOCTORNO)
      references DOCTOR (DOCTORNO);


alter table REVENUES
   add constraint FK_REVENUES_REFERENCE_RESERVE foreign key (RESERVENO)
      references RESERVE (RESERVENO);

dental_erd_image.png

dental_pdm_image.png

  • بعد 2 أسابيع...
بتاريخ:
  • كاتب الموضوع

مشكورر بش مهندس امجد كثر خيرك

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.