Presentation is loading. Please wait.

Presentation is loading. Please wait.

1  If a Record in a Parent Table Has a Related Child Record, Referential Integrity Prevents You From Deleting the Parent Record. إذا كان السجل فى الجدول.

Similar presentations


Presentation on theme: "1  If a Record in a Parent Table Has a Related Child Record, Referential Integrity Prevents You From Deleting the Parent Record. إذا كان السجل فى الجدول."— Presentation transcript:

1 1  If a Record in a Parent Table Has a Related Child Record, Referential Integrity Prevents You From Deleting the Parent Record. إذا كان السجل فى الجدول الرئيسى مرتبط بسجل بجدول فرعى فإن فرض التكامل يمنعك من حذف السجل الرئيسى  In Access, Referential Integrity Is Enforced by Typing in a Rule.  You Can Set Rules about referential integrity in a one table database.  Referential Integrity ensures that records in linked tables record are automatically updated when changes are made.  A child record cannot be entered unless it has a parent in the database if Referential Integrity is used. Which Two of These Statements About Referential Integrity Are True? أى من الجملتين الأتيتين عن التكامل المرجعى صواب - السجل الفرعى لا يمكنك الإضافة فيه إلا إذا كان السجل موجود فى الجدول الرئيسى إذا كان فرض التكامل المرجعى يستعمل

2 2 Select open an existing file → select c:\windows\desktop\car hire → ok → Type icoffey in the name box → ken*72 in the password box Log on the database named Car Hire with the username icoffey and password ken*72 إفتح قاعدة البيانات المسماة Car Hire وإستخدم إسم المستخدم icoffey وكلمة سر ken*72

3 3 File menu-------→ Select database → ok Create a new blank database. إنشئ قاعدة بيانات جديدة فارغة

4 4 Help → Microsoft access help → type decimal numbers → search Use the Microsoft access help to find information about decimal number إستخدم مساعد الأكسيس لإيجاد معلومات عن الأرقام العشرية

5 5  View menu-----Select Toolbars----- click formatting (form/Report)  OR Right click on toolbar → Click formatting (form/Report) Hide the formatting ( form / report ) toolbar. أخف شريط الأدوات formatting form / report

6 6 File menu----Choose Save------Type Sales------Click OK Save the above table and give it the name Sales. إحفظ هذا الجدول و سمه بإسم sales

7 7 Type Contact Name → Press Tab Enter the field name Contact Name into the empty row.When you Have finished,move the insertion point to the Data Type column أدخل حقلا إسمة contact name فى الصف الفرغ ثم تحرك لعمود ال data type عندما تنتهى

8 8 Select Dawson------Type Jack------Press Tab Change the entry in the Surname field of this record to Jack. Move to the next field in this record when you have finished عدل محتوى حقل اللقب لكلمة Jack ثم تحرك للحقل التالى فى نفس السجل

9 9 Click on the button Navigate quickly to the last record in this table. إنتقل بسرعة للسجل الأخير فى هذا الجدول

10 10

11 11 File menu------Choose Save----- File menu------Choose close Save and close this table إحفظ و إغلق الجدول

12 12 In the indexed box → choose yes (duplicates ok) The surname field will be used in a lot of searches ; so we should index it.Create a suitable index for this field. حقل ال surname يستخدم كثيرا فى عملية البحث إنشئ الفهرسة الملائمة لهذا الحقل

13 13 Put the insertion point in the Date of birth field------in the format box-------Select long date Specify that dates of birth in this table display in the format 8 December 2007. خصص حقل تاريخ الميلاد ليظهر باشكل التالى 12 November 2000

14 14  If u change the surname field size property to 10, exiting data will not change.  إذا تم تغيير حجم الحقل إلى 15 لا يحدث تغيير فى البيانات الحالية  If u decrease the surname field size ; data will not be lost.  You cannot change the surname field size because the table contains data.  If you increase the field size for surname field.the data will be processed faster. Which one of the following statements setting the field size property in a table are true. أى من العبارات التالية عن تعديل حجم الخط فى هذا الجدول صحيح

15 15 In the validation Rule box type >100 → Press Enter Enter a validation rule to ensure that entries into this field must be numbers greater than 100. Press Enter when you have finished. إدخل قاعدة التحقق من الصحة لتضمن أن المدخل فى هذا الحقل أرقام أكبر من 100

16 16 Each Author has written a number of books. Set up a one-to-many relationship between the Book and Author tables. كل مؤلف كتب عدد من الكتب إنشئ علاقة رأس بأطراف بين جدول الbook وجدول author The answer: Click on the Relationships tool in the database toolbar → click on the Author ID in the author table drag and drop it to the Author ID in the book table----Click Create

17 17 The payment table contains billing details for each patient. Edit the relationalship between the payment and patient tables to prevent a patient who has made a payment from being deleted. قم بتحرير العلاقة بين جدولى payment وجدول patient لمنع الحذف من الجدول ال patient Double click on the line between Patient table and Payment table ------ select Edit Relationship ….. Check the Enforce Referential Integrity → ok

18 18 Access the option that would enable you to create a new form without the help of a wizard قم بعرض الوظيفة التى تتيح إنشاء نموذج بدون إستخدام المعالج Select Forms from the objects pane → Double Click on the Create form in Design view

19 19 The doctor in record 4 is no longer available. Delete this record from the database. الدكتور الموجود فى السجل 4 أصبح غير متاح قم بحذف هذا السجل من قاعدة البيانات  Edit menu------Choose Delete Record-----Click Yes  OR :Click on this icon -----Click Yes

20 20 Alter the header text to Patient details and press Enter key when you have finished قم بتعديل النص الموجود فى رأس الصفحة إلى كلمة patient details ثم قم بالضغط على enter عند الإنتهاء Click on the Patient box -----Type details → Press Enter

21 21 Edit menu→ Choose Find → Type 3546-1236-7 in find what box → Click Find next button Use the search tools provided by Access to find the book with the Unique(ISBN) code 3546-1236-7 إستخدم أداة البحث لإيجاد الكتب التى كودها هو 3546-1236-7

22 22 In the First Name field----- select the S letter from the word seleman→ Click on this icon Use Filter By Selection to filter the records of all employees whose First Name begins with S. إستخدم التصفية بالتحديد لتصفية بيانات أسماء الموظفين التى تبدأ بحرف الs

23 23 Save the above query and give it name Doctors قم بحفظ الإستعلام الموجود أعلى الشاشة بإسم Doctors File menu →Choose Save---- Type Doctors → ok

24 24 Find all payment made on or after 20/7/2005 Press Enter when you have finished. إبحث عن كل المدفوعات فى أو بعد 20/07/2005 Type HERE >=20/7/2005--- Press Enter

25 25 Click on the Books by Americans → Edit menu---- select Delete → Click yes We no longer need the query, Books by Americans. Delete this query now. نحن لا نحتاج الإستعلام Books by Americans قم بحذفة الأن

26 26 Add the appropriate field from the Employee table to the 3 rd Column of the grid so that this query will be able to sort Employee Records according to their age Ans: Click HERE ---Select Birth Date قم بإضافة الحقل المناسب من جدول الEmployee إلى ثالث عمود من التخطيط و الذى يتيح لك ترتيب سجلات الموظفين تبعا لأعمارهم

27 27 Change this query so that it will just find books by Spanish authors, And then run the query قم بتغيير الإستعلام ليوجد فقط الكتب المؤلفة بواسطة المؤلفين الأسبان ثم شغل الإستعلام Click on this icon ------ use the back space to delete the word Russian and or ------ Click on this icon

28 28 Sort this query so that the most recent payments display at the Top of the datasheet. قم بترتيب هذا الإستعلام بحيث أن أغلب المدفوعات الحديثة تظهر أعلى الإستعلام Put the insertion point in the payment date field → Click on This icon

29 29 From the Tables/Queries drop down list select Table:Extract → Click on this icon ------- Click Next A wizard is being used to create a new report.Base this report on The Extract table.and add all the fields from the table to the report’s Design.Click the Next button when you finish قم بإنشاء هذا التقرير تبعا لجدول extract ثم قم بإضافة كل الحقول من الجدول ثم إضغط التالى

30 30 Group the patients in this report by Patients’ surname with First name displayed in alphabetical order. قم بعمل مستوى تجميع تبعا إلى حقل surname ثم قم بإظهار حقل title مرتب أبجديا ثم إضغط finish Select Surname----Click on this icon ------Click Next------ from the first drop down list Select First Name-----Click Finish

31 31 Change the orientation of the print output so that pages will be printed wider than they are tall. قم بتغيير إتجاه طباعة الصفحات لكى تطبع عرضها أكبر من طولها File menu-----Choose Page setup----Select the Page tab----- Select the Landscape------Click Ok

32 32 Print pages 4 to 6 in this form, using the current print settings. قم بطباعة الصفحات من 4 إلى 6 بإستخدام الإعدادات الحالية File menu----Choose Print---- Select Pages -----Type 4 in the first box -----Type 6 in the second box ---Click ok.

33 33 Modify the printer settings to print 2 copies of this report. عدل إعدادات عملية الطباعة لتشمل على طباعة نسختين من هذا التقرير File menu----Choose Print-----in number of copies use the arrows to select 2-----Click Ok

34 34 How many fields would be necessary to store this record and enable to maximum flexibility for data retrieval ? كم عدد الحقول اللازمة لتخزين هذا السجل بإستخدام المرونة القصوى Type 6 Mr Ahmed Sallam, 12 haron street, El Giza A135R

35 35 Which of theses fields would be best suited to use as the Primary key for this table? أى من هذه الحقول التالية الأكثر ملائمة ليكون مفتاح أساسى Click HERE

36 36 Create a database using the option that will enable you to build your database using pre-set options. إنشئ قاعدة بيانات مستخدما الوظيفة التى تتيح لك إنشاء قاعدة معدة مسبقا Select Access database wizards, pages, and projects---Click Ok

37 37 Switch to Design view. إنتقل إلى العرض التصميمى View menu-----Choose Design View OR :Click on this icon

38 38 Create a new table in Design view. إنشئ جدول جديد بطريقة عرض التصميم Double click on the Create table in Design view

39 39 Navigate directly to the first record in this table. قم بالتنقل إلى السجل الأول داخل هذا الجدول الذى تراه Click on this button

40 40 Edit menu----Choose Delete A business,Coffee Galore,has moved premises. Please delete the selected value, Camberwell Lane, from this record. قم بحذف القيمة المحددة comber well lane من هذا السجل

41 41 Make the most appropriate field the Primary key for this table. إجعل الحقل الأكثر ملائمة مفتاحا أساسيا Click Here ------ Click on this icon

42 42 Using Click-and-drag, Move the selected column to between the Gender and the Date of birth fields. بإستخدم وظيفة السحب و الإفلات قم بتحريك الحقل المحدد ليكون بين Gender, date of birth  Click on the header of the selected field and drag it t between the Date of birth and Gender.

43 43 Delete the One-to-many relationship between the Patient and Payment tables. قم بحذف العلاقة بين الجدولين patient and payment  Click here------Then Edit menu------- Select Delete---Click Yes

44 44 Click HERE-----Edit menu------Choose Delete-----File menu--- Choose Save Delete the text box Surname from this form. Save the changes without closing the form. قم بحذف صندوق النص class من هذا النموذج ثم إحفظ هذه التغييرات دون غلق النموذج

45 45 Navigate to the next record in this form. إنتقل مباشرة للسجل التالى فى هذا النموذج Click on this button

46 46 Make the Doctor and Patient tables the record source for this query. Close the Show Table dialog box When you finish إجعل جدول stock,customer مصدر لك فى الإستعلام ثم إغلق المربع الحوارى الخاص بالجدول Click add ---- Select Patient----Click Add------Click Close.

47 47 This query shows all patients born before 1962. Change it so that the date of birth will not be visible in the query results. هذا الإستعلام يوضح المرضى المولودين قبل عام 1962 قم بتغيير الإستعلام بحيث يكون حقل تاريخ الميلاد غير مرئى Click on the header of Date Of Birth field→ Choose Hide Column

48 48 Which two of the following statements about the layout of data fields and headers are true ? قم بإختيار إجابتين صحيحتين عن تخطيط حقول البيانات  To move a field and its heading, you just need to move the Page Header.  You can change the layout of a report in print preview.  You must use Design View to change the layout of a report.  The order in which you add field in the Wizard sets how they display in the report. - أنت ملزم بإستخدام عرض التصميم لإجراء أى تعديل فى تخطيط التقرير 2- الترتيب الذى تتم به إضافة الحقول ( فى طريقة المعالج ) يحدد كيف تظهر هذه الحقول فى التقرير

49 49 Print 1 copy of the first 5 records in this table using the default printer. إطبع نسخة واحدة من أول خمسة سجلات فى هذا الجدول مستخدما الإعدادات الحالية  Select the first 5 records-------File → print →In Print Range------- Check Selected Record -------Click ok

50 50 Which data type is most appropriate for a postal code field such as A258X ? أى نوع بيانات أكثر ملائمة لحقل كود بريدى مثل M54WT  Number  Auto Number  Text  Date / time

51 51 Which two of this statement about indexes are true ? قم بإختيار إجابتين صحيحتين عن الفهرسة  An index is used to list all the fields in a data base  You can index any field no matter what its data type is  You should index a field that is frequently sorted  If an index is used it slows down data base searches.  Indexing is especially useful when working with large tables ينبغى فهرسة الحقل الذى سيفرز كثيرا ( مرارا ) عملية الفهرسة مفيدة خاصة عند التعاملمع الجدول الضخمة

52 52 Which two of these statement about relational data base are true ? أى الجملتين صحيحتين عن قواعد البيانات المحتوية عى علاقات  A non-relational database can be searched more efficiently than a relational database.  A relational database is easier to maintain than a non-relational one.  قواعد البيانات المحتوية على علاقات أسهل فى تنظيمها من تلك التى لاتتضمن علاقات.  Smaller linked tables are harder to manage than one big one.  A relational database is one that contains linked tables.  قواعد البيانات المشتملة على علاقات هى تلك التى تتضمن جداول مترابطة.

53 53 Which one of these criteria will find employees born before 31/12/70 ? إسحب أنسب معيار لمكان المعيار المناسب وذلك لإيجاد الموطفين الذين و لدوا قبل 31/12/1970 ووضعها فى المعيار 1.< 31 Dec 1970. 2.>= Dec 31 1970. 3.> 31 Dec 1970. 4.<= Dec 31 1970. Drag this criteria to HERE

54 54 A Filter by Selection has been applied to this table. Remove the filter. تمت عملية التصفية بالتحديد..... أزل هذه التصفية Click on this icon

55 55 Use Filter By Selection to filter the records of all employees who Have not taken any days sick leave. إستخدم خاصية التصفية فى عمل تصفية للبيانات بحيث يعرض الموظفين الذين لم يإخذوا أجازة مرضية In the Days Sick field----- select 0 → Click on this icon

56 56 Save this database as HOSPITAL into the My Documents folder. إحفظ قاعدة البيانات بالأسم HOSPITAL فى المجلد My Documents Select My Documents-----Type HOSPITAL in the file name------ Press Create.

57 57 Close the HOSPITAL database without closing Microsoft Access. بدون غلق الأكسس أغلق قاعدة البيانات HOSPITAL File menu-----Choose Close.

58 58 Add an empty field above the First Name field in this table. إدرج صف خالى فوق حقل الأسم الأول فى هذا الجدول Click here-----Insert menu -----Select rows.

59 59 Navigate directly to record 25 in this table. توجه مباشرة للسجل الخامس و العشرين Put the cursor in this box -----Select 1 ---Type 25----Press Enter

60 60 Enter a validation rule to ensure entries into this field must be either the words Cash or Credit. Press Enter when you finished. إدخل قاعدة تحقق لتأكيد أن مدخلات هذا الحقل تكون فقط أيا من الكلمتين Credit - أو Cash ثم إضغط enter Put the cursor in the validation rule-----Type Cash or Credit Press Enter.

61 61 Delete both the label and text box Surname from this form. Save the changes without closing the form. إحذف كلا من عنوان وصندوق نص ال Surname ثم إحفظ هذا التغيير بدون غلق النموذج Click Here-----Edit menu-----Choose Delete----File menu--- Choose Save

62 62 This query has been designed to find all patients who have made payments since January 1, 2003. Run this query now. هذا الإستعلام تم تصميمة لإيجاد المرضى الذين دفعوا مدفوعات منذ 1/1/2003 شغل هذا الإستعلام Click on this icon

63 63 Choose the correct statement from the following:  Changing the field size property for the Surname field to 7 won’t change the existing data.  Data will be processed faster if you increase the field size for the Surname field.  You cannot change the Surname field size because data has already been entered in the table.  Changing the Surname field size property to 40 will not change existing data.

64 64 One extract from each book is stored in the extract table. Set up a one-to-one relationship between Book and Extract tables The answer: Click on the Relationships tool → click on the Book ID in the Extract table drag and drop it to the Book ID in the Book table----Click Create

65 65  Type here <> Russian → Press Enter Find books by all authors who are not Russian. Press Enter When you finished

66 66 Sort these records so that Doctors with surnames beginning with A would display at the top of the datasheet. قم بفرز هذه السجلات بحيث يظهر الكتاب اللذين تبدأ ألقابهم بحرف A فى قائمة الجدول Click in the Surname field------Click on this icon

67 67 Delete the control for the Date from this report. إحذف تحكم التاريخ من هذا التقرير  Select ------Edit menu--------Delete

68 68 Open the Patient report in Print Preview.  Select the payments by patient → Click on Preview  Or click on payments by patient----- File menu------- Print Preview

69 69  Put the Cursor HERE ------- In the field size box use the drop down list → Select single Carry out the necessary steps to ensure that you can enter half- days in the Days leave field. قم بالخطوات اللآزمة للتمكن من إدخال أنصاف الأيام فى حقل الdays leave

70 70  Select Queries from the objects pane → double click on Create query in design view Access the option that would enable you to create a new query without the help of the Simple Query Wizard. إستعرض الخاصية التى ستمكنك من إنشاء إستعلام جديد بدون إستخدام المعالج

71 71 Database Not a Database Encyclopedia Sales Catalogue Student register Novel Shopping list Customer Records Encyclopedia Sales Catalogue Student register Novel Shopping list Customer Records موسوعة رواية قائمة تسويق دليل مبيعاتِ سجلّ طالبِ سجلات زبونِ

72 72  <100 will find values that are greater than 100.  >= 10 will find values that are greater than or equal to 10  >=Sep 30 1950 will find dates that are equal to or before Sep 30 th 1950  <=Oct 31 1956 will find dates that are equal to or after Oct 31 th 1956  Dec 31 1963 will find all dates in 1964 Which two of the following statements are true?

73 73  In the data type column → use the drop down list and select Auto number → Press tab Select the data type that will automatically assign a unique Customer ID number to each new Customer. Move the next cell when you have finished قم بإختيار نوع البيانات الذى يجعل الحقل بعبأ تلقائيا بالرقم التعريفى الفريد للعميل ثم قم بالتحريك إلى الخلية التالية عندما تنتهى

74 74  Put the cursor in the indexed box → from the drop down list select yes (No Duplicates) The Product code field contains a unique reference for each Product.This field will be used in a lot of searches, so we should index it.Create a suitable index for this field. حقل product code يتضمن مرجع فريد لكل منتج. فهرس هذا الحقل الفهرسة المناسبة

75 75  Select Queries from the objects pane → Double click on Create Query by using Wizard Create a new query using the Simple Query Wizard. إنشاء إستعلام جديد مستخدما المعالج

76 76 Which one of the following is not a database? أى من هذه العبارات لا يعتبر قاعدة بيانات  A sales Catalogue دليل مبيعاتِ  A newsletter صحيفة أونشرة تحمل أخبار و معلومات  A Price list قائمة أسعار  A telephone directory دليل هاتف

77 77 Enter a record for a full-time student named Brian Blaire into This table.Move to the next row in this table when you have finished Click on this icon -------Type Brian in the fname field----Press Tab ----Type Blaire in the lname field-----Press Tab----Type full-time in status Field-----Click on this icon

78 78 Enter the name Mary into the First Name Field. Move to the next field when you have finished Type Mary-----Press Tab

79 79 Each patient has been billed a number of times.Set up a one-to- Many relationship between the patient and payment tables. The answer: Click on the Relationships tool → ---- Click on the Patient ID in Patient Table drag and drop it to the Patient ID in Payment Table ----Click Create

80 80 You need to create a new form.Launch the Form Wizard now.  Select Forms from the objects pane → Double click on Create Form by using Wizard

81 81 Click in any cell in the date of birth field----Edit menu→ Choose Find → Type 30/06/1963 in find what box → Click Find next button Use the search tools provided by Access to find a patient with the Date of birth 30/06/1963

82 82 Use Filter By Selection to filter the records of all employees who Were born in 1956 In the Date of Birth field----- select the 56 --- Click on this icon

83 83 Which two of the following are databases?  Student register سجلّ طالبِ  Bank Statementكشف الحساب المصرفي  Mail Order catalogue قائمة بريد  Newsletter صحيفة  Novel رواية


Download ppt "1  If a Record in a Parent Table Has a Related Child Record, Referential Integrity Prevents You From Deleting the Parent Record. إذا كان السجل فى الجدول."

Similar presentations


Ads by Google