SlideShare a Scribd company logo
Abdullatif Tarakji
abdotarakji@gmail.com
Create a query ‫استعالم‬ ‫إنشاء‬-
Creating action queries
To create and run a make-table query
Appending records by using a query
Updating and deleting records by using a query
Viewing data in a crosstab query
Using the Crosstab Query wizard
Creating crosstab queries in Design view
Managing multiple tables and joins
‫اإلجرائية‬ ‫االستعالمات‬ ‫إنشاء‬
‫جدول‬ ‫تكوين‬ ‫استعالم‬ ‫تشغيل‬ ‫و‬ ‫إنشاء‬
‫االستعالم‬ ‫باستخدام‬ ‫سجالت‬ ‫الحاق‬
‫استعالم‬ ‫باستخدام‬ ‫السجالت‬ ‫حذف‬ ‫و‬ ‫تحديث‬
‫جدولي‬ ‫استعالم‬ ‫في‬ ‫البيانات‬ ‫عرض‬
‫االستعالم‬ ‫معالج‬ ‫استخدام‬‫الجدولي‬
‫التصميم‬ ‫عرض‬ ‫في‬ ‫جدولية‬ ‫استعالمات‬ ‫إنشاء‬
‫ربطها‬ ‫و‬ ‫متعددة‬ ‫جداول‬ ‫إدارة‬
Abdullatif Tarakji
abdotarakji@gmail.com Creating action queries
‫االجرائية‬ ‫االستعالمات‬ ‫إنشاء‬• The next three sections describe different types of action
queries:
a make-table query, an append query, and update and
delete queries. Action queries are often used to help
manage the records in a database. For example, you can
use a select query to retrieve records for all discontinued
products. You can use a make-table or an append query to
archive those records, and then run a delete query on the
products table to remove the records for those products.
Using make-table queries
• When you run a make-table query, Access creates a table
(in the current database or in another database you
designate) that’s defined by the fields included in the
query. A make-table query has at least a couple of
functions.
• A make-table query can improve performance when you
find yourself frequently running a select query that’s
based on several tables whose data doesn’t change.
Access can run the select query more quickly if it is based
on a single table (created by the make-table query) instead
of on multiple tables.
• You can use a make-table query to build your data
archives. For example, use a make-table query to store all
the orders for the past year and use the Orders table only
for current orders.
•‫األقسام‬ ‫تشرح‬‫اإلجرائية‬ ‫االستعالمات‬ ‫من‬ ‫مختلفة‬ ‫أنواع‬ ‫المقبلة‬ ‫الثالثة‬:
‫استعالم‬‫جدول‬ ‫تكوين‬،‫إلحاقي‬ ‫استعالم‬،‫الحذف‬ ‫و‬ ‫التحديث‬ ‫استعالمات‬ ‫و‬.
‫غالبا‬‫في‬ ‫السجالت‬ ‫إدارة‬ ‫في‬ ‫للمساعدة‬ ‫اإلجرائية‬ ‫االستعالمات‬ ‫تستخدم‬ ‫ما‬‫قاعدة‬
‫البيانات‬.‫السترداد‬ ‫تحديد‬ ‫استعالم‬ ‫استخدام‬ ‫يمكنك‬ ،‫المثال‬ ‫سبيل‬ ‫على‬‫السجالت‬
‫المنتجات‬ ‫لجميع‬‫المتوقفة‬.‫استخدام‬ ‫يمكنك‬-‫إلح‬ ‫استعالم‬ ‫أو‬ ‫جدول‬ ‫تكوين‬‫ألرشفة‬ ‫اقي‬
‫إلزالة‬ ‫المنتجات‬ ‫جدول‬ ‫على‬ ‫حذف‬ ‫استعالم‬ ‫بتشغيل‬ ‫قم‬ ‫ثم‬ ،‫السجالت‬ ‫تلك‬‫سجالت‬
‫المنتجات‬ ‫لتلك‬.
‫جدول‬ ‫تكوين‬ ‫استعالمات‬ ‫باستخدام‬
•،‫جدول‬ ‫تكوين‬ ‫استعالم‬ ‫تشغيل‬ ‫عند‬‫جدول‬ ‫بإنشاء‬ ‫األكسيس‬ ‫يقوم‬(‫ق‬ ‫في‬‫البيانات‬ ‫اعدة‬
‫بتعيينها‬ ‫تقوم‬ ‫أخرى‬ ‫بيانات‬ ‫قاعدة‬ ‫في‬ ‫أو‬ ‫الحالية‬)‫في‬ ‫تعرف‬ ‫التي‬‫الح‬‫قول‬‫المضمنة‬
‫االستعالم‬ ‫في‬.‫الوظائف‬ ‫من‬ ‫زوجين‬ ‫األقل‬ ‫على‬ ‫لديه‬ ‫جدول‬ ‫تكوين‬ ‫استعالم‬.
•‫استعالم‬‫أن‬ ‫يمكن‬ ‫جدول‬ ‫تكوين‬‫يحسن‬‫م‬ ‫كثير‬ ‫في‬ ‫نفسك‬ ‫تجد‬ ‫عندما‬ ‫األداء‬‫األحيان‬ ‫ن‬
‫تشغل‬‫يتغ‬ ‫ال‬ ‫التي‬ ‫البيانات‬ ‫جداول‬ ‫عدة‬ ‫على‬ ‫يعتمد‬ ‫الذي‬ ‫تحديد‬ ‫استعالم‬‫ير‬.‫يمكن‬
‫تحديد‬ ‫استعالم‬ ‫تشغيل‬ ‫يمكنه‬ ‫األكسيس‬ ‫برنامج‬‫قا‬ ‫كان‬ ‫إذا‬ ‫أكبر‬ ‫بسرعة‬‫على‬ ‫ئما‬
‫واحد‬ ‫جدول‬(‫جدول‬ ‫تكوين‬ ‫استعالم‬ ‫بواسطة‬ ‫إنشاؤه‬ ‫تم‬)‫متعدد‬ ‫جداول‬ ‫من‬ ‫بدال‬‫ة‬.
•‫يمكنك‬‫ب‬ ‫الخاصة‬ ‫البيانات‬ ‫أرشيف‬ ‫لبناء‬ ‫جدول‬ ‫تكوين‬ ‫استعالم‬ ‫استخدام‬‫ك‬.
‫على‬‫جميع‬ ‫لتخزين‬ ‫جدول‬ ‫تكوين‬ ‫استعالم‬ ‫استخدام‬ ،‫المثال‬ ‫سبيل‬‫الطلب‬‫للعام‬ ‫يات‬
‫واستخدام‬ ‫الماضي‬‫الطلبيات‬ ‫جدول‬‫فقط‬‫للطلبيات‬‫الحالية‬.
Abdullatif Tarakji
abdotarakji@gmail.com
• A table created by a make-table query inherits field
names and data types but not all settings specified for
other field properties. Also, the new table does not
include a primary key. You need to open the new table
in Design view to update field properties and assign a
primary key.
• A make-table query is based on a select query. To be
sure that the table Access creates includes the correct
records, run the select query to first review the
records, and then run the make-table query.
• When you click Make Table in the Query Type group,
Access displays the Make Table dialog box. In addition
to naming the table (or selecting one from the list),
you need to specify whether to include the table in
the current database or in a different database. If you
choose Another Database, enter the file name for the
database or click Browse to select the database file.
• By clicking OK in the Make Table dialog box, you set up
the query. To run the query and create the table, click
Run in the Results group. After you save the make-
table query, you can run it again by double-clicking the
query in the Navigation pane. When you run a make-
table query in the Navigation pane (after running it at
least one other time to create the table), the existing
table is deleted.
•‫الح‬ ‫أسماء‬ ‫يرث‬ ‫جدول‬ ‫تكوين‬ ‫استعالم‬ ‫بواسطة‬ ‫إنشاؤه‬ ‫تم‬ ‫الذي‬ ‫والجدول‬‫قول‬
‫األخ‬ ‫الحقل‬ ‫لخصائص‬ ‫المحددة‬ ‫اإلعدادات‬ ‫كل‬ ‫ليس‬ ‫ولكن‬ ‫البيانات‬ ‫وأنواع‬‫رى‬.
‫أساسي‬ ‫مفتاح‬ ‫الجديد‬ ‫الجدول‬ ‫يتضمن‬ ‫ال‬ ،‫أيضا‬.‫الج‬ ‫فتح‬ ‫إلى‬ ‫تحتاج‬‫الجديد‬ ‫دول‬
‫مفتا‬ ‫وتعيين‬ ‫الحقل‬ ‫خصائص‬ ‫لتحديث‬ ‫التصميم‬ ‫عرض‬ ‫طريقة‬ ‫في‬‫أساسي‬ ‫ح‬.
•‫تحديد‬ ‫استعالم‬ ‫على‬ ‫جدول‬ ‫تكوين‬ ‫استعالم‬ ‫ويستند‬.‫للتأكد‬‫أن‬ ‫من‬‫ج‬‫دول‬
‫يتضمن‬ ‫المنشئ‬ ‫االكسيس‬‫استعال‬ ‫بتشغيل‬ ‫قم‬ ،‫الصحيحة‬ ‫السجالت‬‫تحديد‬ ‫م‬
‫جدول‬ ‫تكوين‬ ‫استعالم‬ ‫بتشغيل‬ ‫قم‬ ‫ثم‬ ،‫أوال‬ ‫السجالت‬ ‫لمراجعة‬.
•‫يعرض‬ ،‫االستعالم‬ ‫نوع‬ ‫المجموعة‬ ‫في‬ ‫الجدول‬ ‫جعل‬ ‫فوق‬ ‫النقر‬ ‫عند‬‫اكس‬‫يس‬
‫مربع‬‫جدول‬ ‫تكوين‬ ‫الحوار‬.‫الجدول‬ ‫تسمية‬ ‫إلى‬ ‫باإلضافة‬(‫و‬ ‫اختيار‬ ‫أو‬‫من‬ ‫احد‬
‫القائمة‬)‫إذا‬ ‫ما‬ ‫تحديد‬ ‫إلى‬ ‫تحتاج‬ ،‫لتشمل‬ ‫تريد‬ ‫كنت‬‫قاعدة‬ ‫في‬ ‫الجدول‬‫البيانات‬
‫مختلفة‬ ‫بيانات‬ ‫قاعدة‬ ‫في‬ ‫أو‬ ‫الحالية‬.‫أ‬ ،‫أخرى‬ ‫بيانات‬ ‫قاعدة‬ ‫اخترت‬ ‫إذا‬‫دخل‬
‫الب‬ ‫قاعدة‬ ‫ملف‬ ‫لتحديد‬ ‫استعراض‬ ‫فوق‬ ‫انقر‬ ‫أو‬ ‫بيانات‬ ‫قاعدة‬ ‫ملف‬ ‫اسم‬‫يانات‬.
•‫االس‬ ‫بإعداد‬ ‫تقوم‬ ،‫جدول‬ ‫تكوين‬ ‫الحوار‬ ‫مربع‬ ‫في‬ ‫موافق‬ ‫فوق‬ ‫بالنقر‬‫تعالم‬.
‫ال‬ ‫مجموعة‬ ‫في‬ ‫تشغيل‬ ‫فوق‬ ‫انقر‬ ،‫الجدول‬ ‫وإنشاء‬ ‫االستعالم‬ ‫لتشغيل‬‫نتائج‬.
‫بعد‬‫طريق‬ ‫عن‬ ‫أخرى‬ ‫مرة‬ ‫تشغيله‬ ‫يمكنك‬ ،‫جدول‬ ‫تكوين‬ ‫استعالم‬ ‫حفظ‬‫النقر‬
‫التنقل‬ ‫جزء‬ ‫في‬ ‫االستعالم‬ ‫فوق‬ ‫المزدوج‬.‫تكو‬ ‫استعالم‬ ‫تشغيل‬ ‫عند‬‫جدول‬ ‫ين‬
‫التنقل‬ ‫جزء‬ ‫في‬(‫األقل‬ ‫على‬ ‫واحدة‬ ‫مرة‬ ‫تشغيله‬ ‫بعد‬‫إلنشاء‬‫الجدول‬)،
‫يتم‬‫الموجود‬ ‫الجدول‬ ‫حذف‬.
Abdullatif Tarakji
abdotarakji@gmail.comTo create and run a make-table query
‫جدول‬ ‫تكوين‬ ‫استعالم‬ ‫تشغيل‬ ‫و‬ ‫إلنشاء‬
1. Create a select query on which to base the
make-table query.
2. With the select query open in Design view,
click Run in the Results group.
3. Review the records returned by the select
query. In the Views group, click View, Design
View to return the query to Design view.
4. On the Query Tools Design tool tab, in the
Query Type group, click Make Table.
5. In the Make Table dialog box, enter a name
for the table, and then specify whether
Access should create the table in the current
database or in another database. If you click
Another Database, enter the file name or
click Browse to locate the file, and then click
OK.
6. In the Results group, click Run.
7. Click Yes in the message boxes Access
displays to confirm the operation.
.1‫تكوي‬ ‫الستعالم‬ ‫أساسي‬ ‫سيكون‬ ‫الذي‬ ‫و‬ ‫تحديد‬ ‫استعالم‬ ‫أنشئ‬‫جدول‬ ‫ن‬.
.2‫التصميم‬ ‫عرض‬ ‫في‬ ‫افتحه‬ ‫التحديد‬ ‫استعالم‬ ‫في‬,‫على‬ ‫اضغط‬‫تشغيل‬
‫النتائج‬ ‫مجموعة‬ ‫من‬.
.3‫التحديد‬ ‫استعالم‬ ‫من‬ ‫استردادها‬ ‫تم‬ ‫التي‬ ‫السجالت‬ ‫راجع‬,‫مج‬ ‫في‬‫موعة‬
‫عرض‬,‫عرض‬ ‫اضغط‬,‫الى‬ ‫االستعالم�� ‫إلعادة‬ ‫التصميم‬ ‫عرض‬
‫التصميم‬ ‫عرض‬.
.4‫االستعالم‬ ‫أدوات‬ ‫من‬ ‫التصميم‬ ‫أدوات‬ ‫تبويب‬ ‫من‬,‫أنواع‬ ‫مجموعة‬ ‫من‬
‫االستعالم‬,‫جدول‬ ‫تكوين‬ ‫اضغط‬.
.5‫جدول‬ ‫تكوين‬ ‫حوار‬ ‫مربع‬ ‫في‬,‫اذ‬ ‫فيما‬ ‫حدد‬ ‫ثم‬ ‫و‬ ‫الجدول‬ ‫اسم‬ ‫أدخل‬‫ا‬
‫قاعدة‬ ‫في‬ ‫أو‬ ‫الحالية‬ ‫البيانات‬ ‫قاعدة‬ ‫في‬ ‫الجدول‬ ‫ستنشئ‬ ‫كنت‬‫بيانات‬
‫أخرى‬,‫الملف‬ ‫موقع‬ ‫لتحديد‬ ‫استعراض‬ ‫اضغط‬ ‫او‬ ‫الملف‬ ‫اسم‬ ‫أدخل‬,‫ثم‬
‫موافق‬ ‫اضغط‬.
.6‫نتائج‬ ‫مجموعة‬ ‫في‬,‫تشغيل‬ ‫اضغط‬.
.7‫لتأكي‬ ‫األكسيس‬ ‫يظهرها‬ ‫التي‬ ‫الرسالة‬ ‫صندوق‬ ‫في‬ ‫نعم‬ ‫اضغط‬‫د‬
‫العملية‬.
Abdullatif Tarakji
abdotarakji@gmail.com
4
5
6
7
Abdullatif Tarakji
abdotarakji@gmail.com Appending records by using a query
‫االستعالم‬ ‫باستخدام‬ ‫سجالت‬ ‫الحاق‬
• Another action you can perform by using a
query is to append records to a table. An
append query is similar to a make-table query,
but instead of creating a table, an append
query adds records to a table that’s already
defined. Append queries are also useful tools
for archiving records. For example, you could
create a table named Completed Projects, and
then design a query based on the Projects
table and related tables to select the records
you want. By running this query periodically as
an append query, you create an archive of
completed projects.
• When you design an append query, keep in
mind that the data you insert by running the
query must conform to the design of the
destination table. For example, the data types
of matching fields must be compatible, and
the source data must conform to any
validation rules defined for the destination
table or the fields that the table contains.
•‫القيام‬ ‫يمكنك‬ ‫آخر‬ ‫إجراء‬‫االستعالم‬ ‫باستخدام‬ ‫به‬‫سج‬ ‫إلحاق‬ ‫هو‬‫الت‬
‫جدول‬ ‫إلى‬.‫ولك‬ ،‫جدول‬ ‫تكوين‬ ‫استعالم‬ ‫يشبه‬ ‫إلحاقي‬ ‫استعالم‬‫بدال‬ ‫ن‬
‫استعالم‬ ‫يضيف‬ ،‫جدول‬ ‫إنشاء‬ ‫من‬‫إلحاق‬‫إلى‬ ‫السجالت‬‫جدول‬
‫معرف‬‫مسبقا‬.‫ألرشفة‬ ‫مفيدة‬ ‫أدوات‬ ‫أيضا‬ ‫االستعالمات‬ ‫إلحاق‬
‫السجالت‬.‫مشا‬ ‫يسمى‬ ‫جدول‬ ‫إنشاء‬ ‫يمكنك‬ ،‫المثال‬ ‫سبيل‬ ‫على‬‫تم‬ ‫ريع‬
‫المشاريع‬ ‫جدول‬ ‫إلى‬ ‫يستند‬ ‫استعالم‬ ‫تصميم‬ ‫ثم‬ ‫ومن‬ ،‫انجازها‬
‫تريدها‬ ‫التي‬ ‫السجالت‬ ‫لتحديد‬ ‫الصلة‬ ‫ذات‬ ‫والجداول‬.‫طري‬ ‫عن‬‫ق‬
‫يمك‬ ،‫إلحاقي‬ ‫استعالم‬ ‫كما‬ ‫دوري‬ ‫بشكل‬ ‫االستعالم‬ ‫هذا‬ ‫تشغيل‬‫نك‬
‫المنجزة‬ ‫المشاريع‬ ‫من‬ ‫أرشيف‬ ‫إنشاء‬.
•‫البي‬ ‫أن‬ ‫االعتبار‬ ‫في‬ ‫نضع‬ ‫أن‬ ،‫إلحاقي‬ ‫استعالم‬ ‫تصميم‬ ‫عند‬‫التي‬ ‫انات‬
‫تص‬ ‫مع‬ ‫تتفق‬ ‫أن‬ ‫يجب‬ ‫االستعالم‬ ‫تشغيل‬ ‫طريق‬ ‫عن‬ ‫تضاف‬‫ميم‬
‫الوجهة‬ ‫الجدول‬.‫البي‬ ‫أنواع‬ ‫تكون‬ ‫أن‬ ‫يجب‬ ،‫المثال‬ ‫سبيل‬ ‫على‬‫انات‬
‫الحقول‬ ‫من‬‫أن‬ ‫يجب‬ ‫مطابقة‬،‫متوافقة‬ ‫تكون‬‫و‬‫البيانات‬ ‫مصدر‬
‫مطابقة‬‫لقواعد‬‫أو‬ ‫الوجهة‬ ‫للجدول‬ ‫تعريف‬ ‫أي‬ ‫صحة‬ ‫من‬ ‫التحقق‬
‫الجدول‬ ‫على‬ ‫تحتوي‬ ‫التي‬ ‫الحقول‬.
Abdullatif Tarakji
abdotarakji@gmail.com
• As with make-table queries, you build an append
query by first defining a select query. After setting up
the select query, verify that it returns the records you
need by running it. If the results are correct, display
the query in Design view again and then click Append
in the Query Type group. In the Append dialog box,
use the Table Name list to select the table you want
to append records to in the current database, or click
Another Database to append records to a table in a
different database.
• When you click OK in the Append dialog box, Access
adds the Append To row to the query design grid.
Based on the table you selected in the Append dialog
box, Access selects and displays a matching field in
the Append To row. You can change the matching
fields that Access provides, but the data type and
other properties of the field specified in the Append
To row must be compatible with the field in the
query.
• Save the query, and then run it by double-clicking the
query in the Navigation pane or by opening the query
in Design view and then clicking Run on the Query
Tools Design tool tab. After you run the query, you
can open the table that the records were appended
to and verify that the records were added correctly.
•‫مع‬ ‫الحال‬ ‫هو‬ ‫كما‬‫تكوين‬ ‫استعالمات‬‫إلحاق‬ ‫استعالم‬ ‫بناء‬ ‫عليك‬ ،‫جدول‬‫من‬ ‫ي‬
‫خالل‬‫تحديد‬‫استعالم‬‫ا‬‫ال‬‫أو‬ ‫تحديد‬.‫تحق‬ ،‫تحديد‬ ‫استعالم‬ ‫إعداد‬ ‫بعد‬‫أن‬ ‫من‬ ‫ق‬
‫تشغيله‬ ‫خالل‬ ‫من‬ ‫تحتاجها‬ ‫التي‬ ‫السجالت‬ ‫بإرجاع‬ ‫تقوم‬.‫ال‬ ‫كانت‬ ‫إذا‬‫نتائج‬
،‫صحيحة‬‫اعرض‬‫ث‬ ‫أخرى‬ ‫مرة‬ ‫التصميم‬ ‫عرض‬ ‫طريقة‬ ‫في‬ ‫االستعالم‬‫انقر‬ ‫م‬
‫االستعالم‬ ‫نوع‬ ‫المجموعة‬ ‫في‬ ‫إلحاق‬ ‫فوق‬.‫اس‬ ،‫إلحاق‬ ‫الحوار‬ ‫مربع‬ ‫في‬‫تخدم‬
‫القائمة‬‫اسم‬ ‫لتحديد‬‫الجدول‬‫الذي‬‫إلحاق‬ ‫تريد‬‫لقاعدة‬ ‫السجالت‬‫البي‬‫انات‬
‫ف‬ ‫جدول‬ ‫إلى‬ ‫سجالت‬ ‫إللحاق‬ ‫أخرى‬ ‫بيانات‬ ‫قاعدة‬ ‫فوق‬ ‫انقر‬ ‫أو‬ ،‫الحالية‬‫ي‬
‫مختلفة‬ ‫بيانات‬ ‫قاعدة‬.
•،‫إلحاق‬ ‫الحوار‬ ‫مربع‬ ‫في‬ ‫موافق‬ ‫فوق‬ ‫النقر‬ ‫عند‬‫األك‬ ‫برنامج‬ ‫يضيف‬‫سيس‬
‫إلحاق‬‫إلى‬‫في‬ ‫الصف‬‫االستعالم‬ ‫تصميم‬ ‫شبكة‬.‫الجد‬ ‫إلى‬ ‫واستنادا‬‫الذي‬ ‫ول‬
‫يحدد‬ ،‫إلحاق‬ ‫الحوار‬ ‫مربع‬ ‫في‬ ‫حددته‬‫ويعرض‬ ‫األكسيس‬‫ف‬ ‫مطابق‬ ‫حقل‬‫ي‬
‫الصف‬ ‫إلى‬ ‫إلحاق‬.‫الحقول‬ ‫تغيير‬ ‫يمكنك‬‫المطابقة‬‫التي‬‫األ‬ ‫يوفرها‬،‫كسيس‬
‫من‬ ‫وغيرها‬ ‫البيانات‬ ‫نوع‬ ‫يكون‬ ‫أن‬ ‫يجب‬ ‫ولكن‬‫للحقل‬ ‫الخصائص‬‫ال‬‫محدد‬
‫مع‬ ‫متوافق‬ ‫صف‬ ‫إلى‬ ‫إلحاق‬ ‫في‬‫الحقل‬‫االستعالم‬ ‫في‬.
•‫احفظ‬‫ثم‬ ،‫االستعالم‬‫على‬ ‫بنقرتين‬ ‫شغله‬‫الت‬ ‫جزء‬ ‫في‬ ‫االستعالم‬‫عن‬ ‫أو‬ ‫نقل‬
‫فوق‬ ‫النقر‬ ‫ثم‬ ‫التصميم‬ ‫عرض‬ ‫طريقة‬ ‫في‬ ‫االستعالم‬ ‫فتح‬ ‫طريق‬‫في‬ ‫تشغيل‬
‫المزدوج‬ ‫النقر‬ ‫تصميم‬ ‫أداة‬ ‫التبويب‬ ‫استعالم‬ ‫أدوات‬.‫ا‬ ‫تشغيل‬ ‫بعد‬،‫الستعالم‬
‫السجالت‬ ‫إلحاق‬ ‫تم‬ ‫الذي‬ ‫الجدول‬ ‫فتح‬ ‫يمكنك‬‫اليه‬‫تم‬ ‫أنه‬ ‫من‬ ‫وتحقق‬‫إضافة‬
‫صحيح‬ ‫بشكل‬ ‫السجالت‬.
Abdullatif Tarakji
abdotarakji@gmail.com To create and run an append query
‫االلحاق‬ ‫استعالم‬ ‫تشغيل‬ ‫و‬ ‫إلنشاء‬
1. Create a select query on which to base the
append query.
2. With the select query open in Design view,
click Run in the Results group.
3. Review the records returned by the select
query. In the Views group, click View,
Design View to return the query to Design
view.
4. On the Query Tools Design tool tab, click
Append in the Query Type group.
5. In the Append dialog box, select the table
you want to add the records to. If you click
Another Database, enter the file name or
click Browse to locate the file, and then click
OK.
6. In the Results group, click Run.
7. Click Yes in the messages Access displays to
confirm the operation.
.1‫ا‬ ‫الستعالم‬ ‫ا‬‫ا‬‫أساسي‬ ‫سيكون‬ ‫الذي‬ ‫و‬ ‫تحديد‬ ‫استعالم‬ ‫أنشئ‬‫اللحاق‬.
.2‫التصميم‬ ‫عرض‬ ‫في‬ ‫افتحه‬ ‫التحديد‬ ‫استعالم‬ ‫في‬,‫ع‬ ‫اضغط‬‫لى‬
‫النتائج‬ ‫مجموعة‬ ‫من‬ ‫تشغيل‬.
.3‫تحديد‬ ‫استعالم‬ ‫في‬ ‫استرجاعها‬ ‫تم‬ ‫التي‬ ‫السجالت‬ ‫مراجعة‬.‫م‬‫ن‬
‫عرض‬ ‫مجموعة‬,‫عرض‬ ‫اضغط‬,‫السترداد‬ ‫التصميم‬ ‫عرض‬
‫التصميم‬ ‫عرض‬ ‫في‬ ‫االستعالم‬.
.4‫االستعالم‬ ‫أدوات‬ ‫في‬ ‫التصميم‬ ‫أدوات‬ ‫تبويب‬ ‫من‬,‫ال‬ ‫اضغط‬‫حاق‬
‫االستعالم‬ ‫نوع‬ ‫مجموعة‬ ‫في‬.
.5‫الحاق‬ ‫حوار‬ ‫مربع‬ ‫من‬,‫السجال‬ ‫إضافة‬ ‫تريد‬ ‫الذي‬ ‫الجدول‬ ‫اختر‬‫ت‬
‫اليه‬.‫أخرى‬ ‫بيانات‬ ‫قاعدة‬ ‫على‬ ‫ضغطت‬ ‫اذا‬,‫ملف‬ ‫اسم‬ ‫أدخل‬
‫ا‬ ‫موقع‬ ‫لتحديد‬ ‫استعراض‬ ‫اضغط‬ ‫أو‬ ‫األخرى‬ ‫البيانات‬ ‫قاعدة‬‫لملف‬
‫موافق‬ ‫اضغط‬ ‫ثم‬.
.6‫تشغيل‬ ‫اضغط‬ ‫النتائج‬ ‫مجموعة‬ ‫من‬.
.7‫العم‬ ‫لتأكيد‬ ‫األكسيس‬ ‫يظهرها‬ ‫التي‬ ‫الرسالة‬ ‫من‬ ‫نعم‬ ‫اضغط‬‫لية‬.
Abdullatif Tarakji
abdotarakji@gmail.com
4
5
6
7
Abdullatif Tarakji
abdotarakji@gmail.com Updating and deleting records by using a query
‫استعالم‬ ‫باستخدام‬ ‫السجالت‬ ‫حذف‬ ‫و‬ ‫تحديث‬
• Action queries can also be used to update or delete
records. You can use an update query to increase
the values in a price field by a specified percentage
or to perform date arithmetic (by adding seven days
to a date, for example).
A delete query lets you remove the set of records
that meets criteria you define. You can use a delete
query to remove all products marked Discontinued,
for example.
• To create an update query (or a delete query), start
by creating a select query. After the select query is
set up as you want it, click Update in the Query
Type group. Access adds the Update To row to the
design grid. In the Update To row for the field or
fields you want to modify, enter the expression that
will update the field’s current values. For example,
to add 30 days to the ExpirationDate field, you could
enter the expression [ExpirationDate]+30 in the
Update To row. When you run the update query,
Access displays a message box telling you how many
rows (records) will be updated. Click Yes to
complete the operation.
•‫اإلجرائية‬ ‫االستعالمات‬‫يمكن‬‫تستخدم‬ ‫أن‬ ‫أيضا‬‫أ‬ ‫سجالت‬ ‫لتحديث‬‫حذفها‬ ‫و‬.
‫يمكنك‬‫ب‬ ‫السعر‬ ‫حقل‬ ‫في‬ ‫القيم‬ ‫لزيادة‬ ‫تحديث‬ ‫استعالم‬ ‫استخدام‬‫مئوية‬ ‫نسبة‬
‫الحساب‬ ‫تاريخ‬ ‫ألداء‬ ‫أو‬ ‫محددة‬(‫تاريخ‬ ‫إلى‬ ‫أيام‬ ‫سبعة‬ ‫بإضافة‬ ‫وذلك‬‫على‬ ،
‫المثال‬ ‫سبيل‬.)
‫استعالم‬‫معا‬ ‫تلبي‬ ‫التي‬ ‫السجالت‬ ‫من‬ ‫مجموعة‬ ‫إزالة‬ ‫لك‬ ‫يتيح‬ ‫حذف‬‫يير‬
‫تحددها‬.‫التي‬ ‫المنتجات‬ ‫جميع‬ ‫إلزالة‬ ‫حذف‬ ‫استعالم‬ ‫استخدام‬ ‫يمكنك‬‫توقف‬
،‫انتاجها‬‫المثال‬ ‫سبيل‬ ‫على‬.
•‫تحديث‬ ‫استعالم‬ ‫إلنشاء‬(‫حذف‬ ‫استعالم‬ ‫أو‬)‫اس‬ ‫إنشاء‬ ‫خالل‬ ‫من‬ ‫تبدأ‬ ،‫تعالم‬
‫تحديد‬.‫بعد‬‫استعالم‬ ‫إعداد‬‫تحديد‬‫كما‬‫ف‬ ‫تحديث‬ ‫فوق‬ ‫انقر‬ ،‫تريد‬‫ي‬
‫االستعالم‬ ‫نوع‬ ‫المجموعة‬.‫األكسيس‬ ‫يضيف‬‫إل‬ ‫صف‬ ‫إلى‬ ‫التحديث‬‫شبكة‬ ‫ى‬
‫تصميم‬.‫تع‬ ‫تريد‬ ‫التي‬ ‫الحقول‬ ‫أو‬ ‫الحقل‬ ‫إلى‬ ‫تحديث‬ ‫الصف‬ ‫في‬‫أدخل‬ ،‫ديلها‬
‫للحقل‬ ‫الحالية‬ ‫القيم‬ ‫تحديث‬ ‫سيتم‬ ‫الذي‬ ‫التعبير‬.‫سبيل‬ ‫على‬‫إلضافة‬ ،‫المثال‬
30‫إلى‬ ‫يوما‬‫حقل‬EXPIRATIONDATE،‫التعبير‬ ‫إدخال‬ ‫تستطيع‬
EXPIRATIONDATE +30‫في‬‫إلى‬ ‫تحديث‬ ‫الصف‬.‫استع‬ ‫تشغيل‬ ‫عند‬‫الم‬
‫يعرض‬ ،‫التحديث‬Access‫مربع‬‫ال‬ ‫تحديث‬ ‫سيتم‬ ‫كيف‬ ‫تخبرك‬ ‫رسالة‬‫عديد‬
‫الصفوف‬ ‫من‬(‫سجالت‬.)‫العملية‬ ‫إلكمال‬ ‫نعم‬ ‫فوق‬ ‫انقر‬.
Abdullatif Tarakji
abdotarakji@gmail.com To create and run an update query
‫تحديث‬ ‫استعالم‬ ‫تشغيل‬ ‫و‬ ‫إلنشاء‬
1. On the Create tab, in the Queries group, click
Query Design.
2. In the Show Table dialog box, select the table you
want to use in the query. Click Add to add the
table to the Query Designer, and then click Close.
3. From the table field list, drag the fields you want
to include in the query to the Field row in the
query design grid.
Or Select fields from the list Access displays when you
click in the Field row in the query design grid.
4. Define any selection criteria for the query in the
Criteria row.
5. In the Query Type group, click Update.
6. In the Update To row for the field or fields you
want to update, enter an expression that
calculates the updated values.
7. In the Results group on the Query Tools Design
tool tab, click Run. Click Yes in the warning box
Access displays to complete the operation.
.1‫إنشاء‬ ‫تبويب‬ ‫من‬,‫استعالمات‬ ‫مجموعة‬ ‫في‬,‫االست‬ ‫تصميم‬ ‫عرض‬ ‫اضغط‬‫عالم‬.
.2‫جدول‬ ‫إظهار‬ ‫حوار‬ ‫صندوق‬ ‫من‬,‫في‬ ‫استخدامه‬ ‫تريد‬ ‫الذي‬ ‫الجدول‬ ‫اختر‬
‫االستعالم‬.‫االستعالم‬ ‫مصمم‬ ‫الى‬ ‫جدول‬ ‫إلضافة‬ ‫إضافة‬ ‫اضغط‬,‫اغ‬ ‫اضغط‬‫الق‬.
.3‫الجدول‬ ‫حقول‬ ‫قائمة‬ ‫من‬,‫االست‬ ‫الى‬ ‫تضمينها‬ ‫تريد‬ ‫التي‬ ‫الحقول‬ ‫اسحب‬‫في‬ ‫عالم‬
‫االستعالم‬ ‫تصميم‬ ‫شبكة‬ ‫في‬ ‫الحقل‬ ‫سطر‬.
‫ال‬ ‫سطر‬ ‫في‬ ‫تضغط‬ ‫عندما‬ ‫األكسيس‬ ‫يظهرها‬ ‫التي‬ ‫القائمة‬ ‫من‬ ‫الحقول‬ ‫اختر‬ ‫أو‬‫حقل‬
‫االستعالم‬ ‫تصميم‬ ‫شبكة‬ ‫في‬.
.4‫المعايير‬ ‫سطر‬ ‫في‬ ‫لالستعالم‬ ‫محدد‬ ‫معيار‬ ‫أي‬ ‫عرف‬.
.5‫االستعالم‬ ‫نوع‬ ‫مجموعة‬ ‫من‬,‫تحديث‬ ‫اضغط‬.
.6‫تحديثها‬ ‫تريد‬ ‫التي‬ ‫الحقول‬ ‫أو‬ ‫للحقل‬ ‫الى‬ ‫تحديث‬ ‫سطر‬ ‫في‬,‫الت‬ ‫أدخل‬‫الذي‬ ‫عبير‬
‫التحديث‬ ‫قيم‬ ‫يحسب‬.
.7‫االستعالم‬ ‫أدوات‬ ‫في‬ ‫التصميم‬ ‫أدوات‬ ‫تبويب‬ ‫في‬ ‫النتائج‬ ‫مجموعة‬ ‫من‬,‫ا‬‫ضغط‬
‫تشغيل‬.‫إلكمال‬ ‫األكسيس‬ ‫يظهره‬ ‫الذي‬ ‫التحذير‬ ‫صندوق‬ ‫في‬ ‫نعم‬ ‫اضغط‬‫العملية‬.
Abdullatif Tarakji
abdotarakji@gmail.com
123
45
6
Abdullatif Tarakji
abdotarakji@gmail.com To create and run a delete query
‫حذف‬ ‫استعالم‬ ‫تشغيل‬ ‫و‬ ‫إلنشاء‬
1. On the Create tab, in the Queries group, click
Query Design.
2. In the Show Table dialog box, select the table
you want to use in the query. Click Add to add
the tables to the Query Designer, and then
click Close.
3. From the table field list, drag the fields you
want to include in the query to the Field row
in the query design grid.
Or Select fields from the list Access displays when
you click in the Field row in the query design grid.
4. In the Query Type group, click Delete.
5. In the Criteria row, specify the criteria for
selecting the records you want to delete.
6. In the Results group on the Design tool tab,
click Run. Click Yes in the message box Access
displays to complete the operation.
.1‫إنشاء‬ ‫تبويب‬ ‫من‬,‫استعالمات‬ ‫مجموعة‬ ‫في‬,‫تصمي‬ ‫عرض‬ ‫اضغط‬‫م‬
‫االستعالم‬.
.2‫جدول‬ ‫إظهار‬ ‫حوار‬ ‫صندوق‬ ‫من‬,‫استخدامه‬ ‫تريد‬ ‫الذي‬ ‫الجدول‬ ‫اختر‬
‫االستعالم‬ ‫في‬.‫االستعال‬ ‫مصمم‬ ‫الى‬ ‫جدول‬ ‫إلضافة‬ ‫إضافة‬ ‫اضغط‬‫م‬,‫ثم‬
‫اغالق‬ ‫اضغط‬.
.3‫الجدول‬ ‫حقول‬ ‫قائمة‬ ‫من‬,‫الى‬ ‫تضمينها‬ ‫تريد‬ ‫التي‬ ‫الحقول‬ ‫اسحب‬
‫االستعالم‬ ‫تصميم‬ ‫شبكة‬ ‫في‬ ‫الحقل‬ ‫سطر‬ ‫في‬ ‫االستعالم‬.
‫في‬ ‫تضغط‬ ‫عندما‬ ‫األكسيس‬ ‫يظهرها‬ ‫التي‬ ‫القائمة‬ ‫من‬ ‫الحقول‬ ‫اختر‬ ‫أو‬‫سطر‬
‫االستعالم‬ ‫تصميم‬ ‫شبكة‬ ‫في‬ ‫الحقل‬.
.4‫من‬‫االستعالم‬ ‫نوع‬ ‫مجموعة‬,‫اضغط‬‫حذف‬.
.5‫المعايير‬ ‫سطر‬ ‫في‬,‫ح‬ ‫تريد‬ ‫التي‬ ‫المحددة‬ ‫للسجالت‬ ‫المعيار‬ ‫حدد‬‫ذفها‬.
.6‫االس‬ ‫أدوات‬ ‫في‬ ‫التصميم‬ ‫أدوات‬ ‫تبويب‬ ‫في‬ ‫النتائج‬ ‫مجموعة‬ ‫من‬‫تعالم‬,
‫تشغيل‬ ‫اضغط‬.‫األ‬ ‫يظهره‬ ‫الذي‬ ‫التحذير‬ ‫صندوق‬ ‫في‬ ‫نعم‬ ‫اضغط‬‫كسيس‬
‫العملية‬ ‫إلكمال‬.
Abdullatif Tarakji
abdotarakji@gmail.com
Abdullatif Tarakji
abdotarakji@gmail.com Viewing data in a crosstab query
‫جدولي‬ ‫استعالم‬ ‫في‬ ‫البيانات‬ ‫عرض‬
• A crosstab query uses Sum, Avg, or
another aggregate function to group a
query’s results. In Datasheet view, a
crosstab query looks something like a
spreadsheet or a PivotTable in Microsoft
Excel. The query’s data is grouped by two
sets of values. One set appears down the
left side of the datasheet, and the other
appears across the top.
• Access provides a wizard you can use to
create a crosstab query, or you can use the
Query Designer to specify the fields for the
query and to define the calculations you
want the query to perform. When you add
fields to a crosstab query, you specify
which fields to use as row headings (you
can use as many as three fields), which
field appears in the columns across the
top, and which field is used for the
summary values.
•‫جدولي‬ ‫استعالم‬ ‫يستخدم‬‫الحس‬ ‫المتوسط‬ ‫و‬ ،‫الجمع‬ ‫داالت‬،‫ابي‬
‫أو‬‫لتجميع‬ ‫االخرى‬ ‫التجميع‬ ‫داالت‬‫استعالم‬ ‫نتائج‬.‫في‬‫عرض‬
‫يبدو‬ ‫جدولي‬ ‫استعالم‬ ،‫البيانات‬ ‫ورقة‬‫كج‬ ‫الشيء‬ ‫بعض‬‫دول‬
‫أو‬ ‫بيانات‬‫اكس‬ ‫مايكروسوفت‬ ‫برنامج‬ ‫في‬ ‫محوري‬ ‫كجدول‬‫يل‬.
‫تجميع‬ ‫يتم‬‫بيانات‬‫ال‬ ‫من‬ ‫مجموعتين‬ ‫خالل‬ ‫من‬ ‫االستعالم‬‫قيم‬.
‫مجموعة‬‫الجانب‬ ‫من‬ ‫األسفل‬ ‫في‬ ‫تظهر‬ ‫أولى‬‫ورق‬ ‫من‬ ‫األيسر‬‫ة‬
،‫البيانات‬‫تظهر‬ ‫األخرى‬ ‫المجموعة‬ ‫و‬‫في‬‫أعلى‬.
•‫يوفر‬‫استخدامه‬ ‫يمكنك‬ ‫الذي‬ ‫المعالج‬ ‫األكسيس‬‫ا‬ ‫إلنشاء‬‫ستعالم‬
‫أو‬ ،‫جدولي‬‫يمكن‬‫مجاال‬ ‫لتحديد‬ ‫االستعالم‬ ‫مصمم‬ ‫استخدام‬‫ت‬
‫االستعالم‬ ‫تريد‬ ‫التي‬ ‫الحسابات‬ ‫وتحديد‬ ‫لالستعالم‬‫ل‬‫تنفيذها‬.
‫عند‬‫تحديد‬ ‫يمكنك‬ ،‫جدولي‬ ‫استعالم‬ ‫إلى‬ ‫حقول‬ ‫إضافة‬‫أي‬
‫الحقول‬‫التي‬‫كعناوين‬ ‫ستستخدمها‬‫الصفوف‬(‫ا‬ ‫يمكنك‬‫ستخدام‬
‫حقول‬ ‫ثالثة‬ ‫إلى‬ ‫يصل‬ ‫ما‬)،‫سيظهر‬ ‫حقل‬ ‫أي‬‫ف‬ ‫األعمدة‬ ‫في‬‫ي‬
،‫أعلى‬‫حقل‬ ‫وأي‬‫الذي‬‫لقيم‬ ‫سيستخدم‬‫التلخيص‬.
Abdullatif Tarakji
abdotarakji@gmail.com Using the Crosstab Query wizard
‫االستعالم‬ ‫معالج‬ ‫استخدام‬‫الجدولي‬
One approach to creating a crosstab query is to use the Crosstab Query
wizard to set up the basic query and then open the query in Design view
to modify it. You can select fields from only one table or query when you
use the Crosstab Query wizard. To work around this limitation, create a
select query that includes fields from the tables you need to use, and
then choose the select query as the record source when you work in the
Crosstab Query wizard.
‫طريقة‬‫واحدة‬‫إلنشاء‬‫استعالم‬‫جدولي‬‫هو‬‫استخدام‬‫معالج‬‫استعالم‬‫جدولي‬‫إلعداد‬‫االستعالم‬‫األس‬‫اسي‬‫ثم‬
‫قم‬‫بفتح‬‫االستعالم‬‫في‬‫طريقة‬‫عرض‬‫التصميم‬‫لتعديله‬.‫يمكنك‬‫تحديد‬‫الحقول‬‫من‬‫جدول‬‫و‬‫احد‬‫فقط‬‫أو‬
‫االستعالم‬‫عند‬‫استخدام‬‫معالج‬‫استعالم‬‫جدولي‬.‫كمحاولة‬‫للتغلب‬‫على‬‫هذا‬،‫القيد‬‫إنشاء‬‫استع‬‫الم‬‫تحديد‬
‫يتضمن‬‫الحقول‬‫من‬‫الجداول‬‫التي‬‫تحتاج‬‫إلى‬،‫استخدام‬‫ومن‬‫ثم‬‫اختيار‬‫استعالم‬‫تحديد‬‫كمص‬‫در‬‫السجل‬
‫عند‬‫العمل‬‫في‬‫المعالج‬‫استعالم‬‫جدولي‬.
Abdullatif Tarakji
abdotarakji@gmail.com
In the wizard, you need to identify the following information:
• The table or query on which to base the crosstab query.
• The field or fields (up to three fields) you want to use as
row headings. If you use more than one field, Access sorts
the query’s records in the order in which you select the
fields. Keep in mind that using more than one field makes
the query more difficult to read.
• The field you want to use for the column headings. It’s
generally good practice to choose a field that includes only
a few values for the column heading field.
• The interval for grouping date/time information in the
column headings (if you choose a Date/Time field for the
column heading). You can choose Year, Quarter, Month,
Date, or Date/Time.
• The field whose value you want to summarize and the
function you want to apply. Different functions are
available depending on the field’s data type. This page of
the wizard also includes the option Yes, Include Row Sums.
Select this check box to insert a row heading in the query
that uses the same field and function as the field value.
A row sum also inserts a column that summarizes the
remaining columns.
• The name you want to assign to the query.
When you click Finish in the Crosstab Query wizard, Access
opens the query in Datasheet view.
‫التالية‬ ‫المعلومات‬ ‫على‬ ‫التعرف‬ ‫إلى‬ ‫تحتاج‬ ،‫المعالج‬ ‫في‬:
•‫يستند‬ ‫التي‬ ‫االستعالم‬ ‫أو‬ ‫الجدول‬‫إليه‬‫االستعالم‬‫الجدولي‬.
•‫الحقول‬ ‫أو‬ ‫الحقل‬(‫حقول‬ ‫ثالثة‬ ‫إلى‬ ‫تصل‬)‫استخدامها‬ ‫تريد‬ ‫التي‬‫كسطر‬‫عناوين‬.
،‫واحد‬ ‫حقل‬ ‫من‬ ‫أكثر‬ ‫تستخدم‬ ‫كنت‬ ‫إذا‬‫سجالت‬ ‫يفرز‬ ‫األكسيس‬ ‫برنامج‬‫اال‬‫ستعالم‬
‫قمت‬ ‫الذي‬ ‫الترتيب‬ ‫في‬‫الحقول‬ ‫بتحديد‬ ‫به‬.‫اس‬ ‫أن‬ ‫اعتبارنا‬ ‫في‬ ‫نضع‬‫أكثر‬ ‫تخدام‬
‫صعوبة‬ ‫أكثر‬ ‫االستعالم‬ ‫يجعل‬ ‫واحد‬ ‫حقل‬ ‫من‬‫القراءة‬ ‫في‬.
•‫األعمدة‬ ‫لعناوين‬ ‫استخدامه‬ ‫تريد‬ ‫الذي‬ ‫الحقل‬.‫هي‬‫الح‬ ‫الختيار‬ ‫عموما‬ ‫جيدة‬‫قل‬
‫يشمل‬ ‫الذي‬‫فقط‬‫العمود‬ ‫عنوان‬ ‫لحقل‬ ‫القيم‬ ‫من‬ ‫قليل‬ ‫عدد‬.
•‫المعلومات‬ ‫لتجميع‬ ‫الزمني‬ ‫الفاصل‬‫التاريخ‬/‫الوقت‬‫األعمدة‬ ‫عناوين‬ ‫في‬
(‫اخترت‬ ‫إذا‬‫تاريخ‬ ‫حقل‬/‫لعنوان‬ ‫وقت‬‫العمود‬.)‫الرب‬ ،‫السنة‬ ‫اختيار‬ ‫يمكنك‬‫شهر‬ ،‫ع‬
‫أو‬ ،‫والتاريخ‬‫التاريخ‬/‫الوقت‬.
•‫الحقل‬‫تريد‬ ‫الذي‬‫تطبيقها‬ ‫تريد‬ ‫التي‬ ‫الدالة‬ ‫و‬ ‫للجمع‬ ‫قيمته‬.‫تتوفر‬‫داالت‬‫مختلفة‬
‫الحقل‬ ‫بيانات‬ ‫نوع‬ ‫على‬ ‫اعتمادا‬.‫خ‬ ‫أيضا‬ ‫يتضمن‬ ‫المعالج‬ ‫من‬ ‫الصفحة‬ ‫هذه‬‫يار‬
‫وتشمل‬ ،‫نعم‬‫المجموع‬ ‫سطر‬.‫إلدراج‬ ‫هذه‬ ‫االختيار‬ ‫خانة‬ ‫حدد‬‫صف‬ ‫عنوان‬‫في‬
‫االستعالم‬‫نفس‬ ‫يستخدم‬ ‫الذي‬‫كقيمة‬ ‫الدالة‬ ‫و‬ ‫الحقل‬‫الحقل‬.‫المجم‬ ‫سطر‬‫وع‬‫أيضا‬
‫يدرج‬‫المتبقية‬ ‫األعمدة‬ ‫يلخص‬ ‫الذي‬ ‫العمود‬.
•‫االستعالم‬ ‫إلى‬ ‫تعيين‬ ‫تريد‬ ‫الذي‬ ‫االسم‬.
،‫جدولي‬ ‫استعالم‬ ‫المعالج‬ ‫في‬ ‫إنهاء‬ ‫فوق‬ ‫النقر‬ ‫عند‬‫األكسيس‬ ‫برنامج‬‫يفت‬‫االستعالم‬ ‫ح‬
‫البيانات‬ ‫ورقة‬ ‫عرض‬ ‫طريقة‬ ‫في‬.
Abdullatif Tarakji
abdotarakji@gmail.com Creating crosstab queries in Design view
‫التصميم‬ ‫عرض‬ ‫في‬ ‫جدولية‬ ‫استعالمات‬ ‫إنشاء‬
• As mentioned earlier, when you use the Crosstab
Query wizard, you can base the query on only a
single table or a single query. When you work in
Design view, you can include multiple tables or
queries as the crosstab query’s record source. You
can also first create a select query that returns the
records you want, and then use that query as the
sole record source for the crosstab query.
• To set up a crosstab query in Design view, click
Query Design on the Create tab, and then use the
Show Table dialog box to add the tables and
queries you want to use as the record source for
the crosstab query. Then, in the Query Type group,
click Crosstab.
• The design grid for a crosstab query contains a Total
row and a Crosstab row (in addition to the Sort,
Criteria, and Or rows you work with in other types
of queries). You use the Crosstab row to specify
which field or fields to use as row headings, which
field to use for the query’s column headings, and
which field to summarize for the query’s values. In
the Total row, you specify the summary function
that the query applies.
•،‫جدولي‬ ‫استعالم‬ ‫المعالج‬ ‫استخدام‬ ‫عند‬ ،‫سابق‬ ‫وقت‬ ‫في‬ ‫ذكر‬ ‫كما‬‫يم‬‫كن‬
‫تأسيس‬‫واحد‬ ‫استعالم‬ ‫أو‬ ‫فقط‬ ‫واحد‬ ‫جدول‬ ‫على‬ ‫االستعالم‬.‫العم‬ ‫عند‬‫في‬ ‫ل‬
‫أو‬ ‫متعددة‬ ‫جداول‬ ‫تضمين‬ ‫يمكنك‬ ،‫التصميم‬ ‫عرض‬ ‫طريقة‬‫استعالم‬‫ات‬
‫االستعالم‬ ‫سجل‬ ‫كمصدر‬‫الجدولي‬.‫استعال‬ ‫إنشاء‬ ‫أوال‬ ‫أيضا‬ ‫يمكنك‬‫تحديد‬ ‫م‬
‫كمصدر‬ ‫االستعالم‬ ‫هذا‬ ‫استخدام‬ ‫ثم‬ ‫ومن‬ ،‫تريد‬ ‫التي‬ ‫السجالت‬ ‫إرجاع‬
‫جدولي‬ ‫لالستعالم‬ ‫الوحيد‬ ‫السجل‬.
•‫تص‬ ‫فوق‬ ‫انقر‬ ،‫التصميم‬ ‫عرض‬ ‫طريقة‬ ‫في‬ ‫جدولي‬ ‫استعالم‬ ‫إلنشاء‬‫ميم‬
‫الح‬ ‫مربع‬ ‫استخدام‬ ‫ثم‬ ‫ومن‬ ،‫إنشاء‬ ‫التبويب‬ ‫عالمة‬ ‫ضمن‬ ‫االستعالم‬‫وار‬
‫استخدامه‬ ‫تريد‬ ‫الذي‬ ‫واالستعالمات‬ ‫الجداول‬ ‫إلضافة‬ ‫جدول‬ ‫إظهار‬
‫جدولي‬ ‫لالستعالم‬ ‫السجل‬ ‫كمصدر‬.‫االستعال‬ ‫نوع‬ ‫المجموعة‬ ‫في‬ ،‫ثم‬‫انقر‬ ،‫م‬
‫جدولي‬ ‫فوق‬.
•‫تصميم‬ ‫شبكة‬‫االستعالم‬‫الجدولي‬‫وع‬ ‫اإلجمالي‬ ‫صف‬ ‫على‬ ‫تحتوي‬‫لى‬‫سطر‬
‫جدولي‬(‫تعم‬ ‫التي‬ ‫الصفوف‬ ‫وأو‬ ،‫معايير‬ ،‫ترتيب‬ ‫إلى‬ ‫باإلضافة‬‫في‬ ‫مع‬ ‫ل‬
‫من‬ ‫أخرى‬ ‫أنواع‬‫االستعالمات‬.)‫استخدام‬ ‫يمكنك‬‫سطر‬‫لتحديد‬ ‫جدولي‬‫أي‬
،‫الصفوف‬ ‫عناوين‬ ‫الستخدام‬ ‫حقول‬ ‫أو‬ ‫حقل‬‫الحقل‬‫الذي‬‫ستستخدم‬‫ه‬
،‫االستعالم‬ ‫في‬ ‫األعمدة‬ ‫لعناوين‬‫والحقل‬‫لتلخيص‬‫قيم‬‫االستعالم‬.‫في‬‫سطر‬
‫تحديد‬ ‫يمكنك‬ ،‫المجموع‬‫الجمع‬ ‫دالة‬‫التي‬‫تطبق‬‫االستعالم‬.
Abdullatif Tarakji
abdotarakji@gmail.com
To create a crosstab query by using the Crosstab Query wizard
‫االستعالم‬ ‫معالج‬ ‫باستخدام‬ ‫جدولي‬ ‫استعالم‬ ‫إلنشاء‬‫الجدولي‬
1. On the Create tab, in the Queries group, click
Query Wizard.
2. In the New Query dialog box, select Crosstab
Query Wizard, and then click OK.
3. On the wizard’s first page, select the table or query
on which to base the crosstab query, and then click
Next.
4. Specify the field or fields (up to three fields) you
want to use as row headings, and then click Next.
5. Select the field you want to use for the column
headings, and then click Next.
6. If you chose a Date/Time field for the column
heading in step 5, specify the interval for grouping
date/time information in the column headings, and
then click Next.
7. Select the field whose value you want to
summarize and the function you want to apply, and
then click Next.
8. Enter a name for the query, and then click Finish.
.1‫إنشاء‬ ‫تبويب‬ ‫من‬,‫استعالمات‬ ‫مجموعة‬ ‫في‬,
‫االستعالم‬ ‫معالج‬ ‫على‬ ‫اضغط‬.
.2‫جديد‬ ‫استعالم‬ ‫حوار‬ ‫مربع‬ ‫من‬,‫جدولي‬ ‫استعالم‬ ‫معالج‬ ‫اختر‬,
‫موافق‬ ‫اضغط‬ ‫ثم‬.
.3‫األولى‬ ‫المعالج‬ ‫صفحة‬ ‫من‬,‫ت‬ ‫الذي‬ ‫االستعالم‬ ‫او‬ ‫الجدول‬ ‫اختر‬‫ريده‬
‫لالستعالم‬ ‫كأساس‬‫الجدولي‬,‫التالي‬ ‫اضغط‬ ‫ثم‬.
.4‫استخدامها‬ ‫تريد‬ ‫التي‬ ‫الحقول‬ ‫او‬ ‫الحقل‬ ‫حدد‬(‫ح‬ ‫لثالثة‬ ‫فقط‬‫قول‬)
‫صف‬ ‫كعناوين‬ ‫استخدامها‬ ‫تريد‬ ‫التي‬,‫التالي‬ ‫اضغط‬ ‫ثم‬.
.5‫عمود‬ ‫كعنوان‬ ‫استخدامه‬ ‫تريد‬ ‫الذي‬ ‫الحقل‬ ‫اختر‬,‫الت‬ ‫اضغط‬ ‫ثم‬‫الي‬.
.6‫تاريخ‬ ‫حقل‬ ‫اخترت‬ ‫اذا‬/‫الخطوة‬ ‫في‬ ‫عمود‬ ‫كعنوان‬ ‫وقت‬5,‫حدد‬
‫تاريخ‬ ‫معلومات‬ ‫لمجموعة‬ ‫الزمني‬ ‫الفاصل‬/‫عناوين‬ ‫في‬ ‫وقت‬
‫التالي‬ ‫اضغط‬ ‫ثم‬ ‫العمود‬.
.7‫ت‬ ‫تريد‬ ‫التي‬ ‫الدالة‬ ‫و‬ ‫قيمته‬ ‫تجميع‬ ‫تريد‬ ‫الذي‬ ‫الحقل‬ ‫اختر‬‫طبيقها‬,‫ثم‬
‫التالي‬ ‫اضغط‬.
.8‫لالستعالم‬ ‫اسم‬ ‫أدخل‬,‫انهاء‬ ‫اضغط‬ ‫ثم‬.
Abdullatif Tarakji
abdotarakji@gmail.com
12
3
4
Abdullatif Tarakji
abdotarakji@gmail.com
56
7
8
Abdullatif Tarakji
abdotarakji@gmail.com To create a crosstab query in Design view
‫التصميم‬ ‫عرض‬ ‫طريقة‬ ‫في‬ ‫جدولي‬ ‫استعالم‬ ‫إلنشاء‬
1. On the Create tab, in the Queries group,
click Query Design.
2. In the Show Table dialog box, select the tables or
queries you want to use in the query. Click Add to
add the tables to the Query Designer,
and then click Close.
3. From the table field lists, drag the fields you want to
include in the query to the Field row in the query
design grid.
4. Define any selection criteria for the query in the
Criteria row.
5. In the Query Type group, click Crosstab.
6. In the Crosstab row, specify the field or fields you
want to use for row headings, column headings, and
the query’s values.
7. In the Total row for the value field, select the
summary function you want to apply.
8. In the Results group, click Run to display
the query’s results.
.1‫إنشاء‬ ‫تبويب‬ ‫من‬,‫استعالمات‬ ‫مجموعة‬ ‫في‬,
‫اضغط‬‫االستعالم‬ ‫تصميم‬ ‫عرض‬.
.2‫جدول‬ ‫إظهار‬ ‫حوار‬ ‫صندوق‬ ‫من‬,‫في‬ ‫استخدامه‬ ‫تريد‬ ‫الذي‬ ‫الجدول‬ ‫اختر‬
‫االستعالم‬.‫االستعالم‬ ‫مصمم‬ ‫الى‬ ‫جدول‬ ‫إلضافة‬ ‫إضافة‬ ‫اضغط‬,
‫ثم‬‫اغالق‬ ‫اضغط‬.
.3‫الجدول‬ ‫حقول‬ ‫قائمة‬ ‫من‬,‫الى‬ ‫تضمينها‬ ‫تريد‬ ‫التي‬ ‫الحقول‬ ‫اسحب‬
‫االستعالم‬ ‫تصميم‬ ‫شبكة‬ ‫في‬ ‫الحقل‬ ‫سطر‬ ‫في‬ ‫االستعالم‬.
.4‫المعايير‬ ‫سطر‬ ‫في‬ ‫لالستعالم‬ ‫محدد‬ ‫معيار‬ ‫أي‬ ‫عرف‬.
.5‫االستعالم‬ ‫نوع‬ ‫مجموعة‬ ‫من‬,‫جدولي‬ ‫اضغط‬.
.6‫سطر‬ ‫في‬‫الجدولي‬,‫ك‬ ‫استخدامها‬ ‫تريد‬ ‫التي‬ ‫الحقول‬ ‫او‬ ‫الحقل‬ ‫حدد‬‫عناوين‬
‫صف‬,‫أعمدة‬ ‫كعناوين‬,‫االستعالم‬ ‫قيم‬ ‫و‬.
.7‫القيمة‬ ‫لحقل‬ ‫المجاميع‬ ‫سطر‬ ‫في‬,‫تري‬ ‫التي‬ ‫التلخيص‬ ‫دالة‬ ‫اختر‬‫تطبيقها‬ ‫د‬.
.8‫النتائج‬ ‫مجموعة‬ ‫في‬,‫االستعالم‬ ‫نتائج‬ ‫إلظهار‬ ‫تشغيل‬ ‫اضغط‬.
Abdullatif Tarakji
abdotarakji@gmail.com
Abdullatif Tarakji
abdotarakji@gmail.com Managing multiple tables and joins
‫ربطها‬ ‫و‬ ‫متعددة‬ ‫جداول‬ ‫إدارة‬
• As you saw in examples earlier in this chapter,
you use the Show Table dialog box to select
multiple tables and other queries to include as
a query’s record source. To display the Show
Table dialog box, you need to open a query in
Design view.
• A join is a link between two related tables in a
query. To retrieve the records you need in a
query, you use either an inner join or an outer
join. The default join is an inner join. With an
inner join, a query returns only records with
matching rows in both tables. For example, a
query that joins a projects table and a tasks
table doesn’t return records for projects that
don’t yet have any tasks assigned. This query
also doesn’t return records for tasks that aren’t
assigned to a specific project. By using an outer
join in this query, you could retrieve the set of
matching records (projects and their assigned
tasks) in addition to projects without tasks (all
projects) or tasks without projects (all tasks).
•‫يمكنك‬ ،‫سابق‬ ‫وقت‬ ‫في‬ ‫الفصل‬ ‫هذا‬ ‫في‬ ‫األمثلة‬ ‫في‬ ‫رأيتم‬ ‫كما‬‫استخدام‬
‫متعددة‬ ‫جداول‬ ‫لتحديد‬ ‫الجدول‬ ‫الحوار‬ ‫مربع‬ ‫إظهار‬‫استعالمات‬ ‫و‬
‫أخرى‬‫االستعالم‬ ‫في‬ ‫سجل‬ ‫كمصدر‬ ‫لتشمل‬.‫الحوا‬ ‫مربع‬ ‫لعرض‬‫ر‬
‫التص‬ ‫عرض‬ ‫طريقة‬ ‫في‬ ‫استعالم‬ ‫فتح‬ ‫إلى‬ ‫تحتاج‬ ،‫جدول‬ ‫إظهار‬‫ميم‬.
•‫بين‬ ‫ارتباط‬ ‫هو‬ ‫الصلة‬‫استعالم‬ ‫في‬ ‫الصلة‬ ‫ذات‬ ‫جدولين‬.‫الست‬‫رداد‬
‫في‬ ‫إليها‬ ‫تحتاج‬ ‫التي‬ ‫السجالت‬‫االستعالم‬‫إ‬ ‫استخدام‬ ‫يمكنك‬ ،‫ما‬‫صلة‬
‫داخلية‬‫أو‬‫خارجية‬ ‫صلة‬.‫داخلية‬ ‫صلة‬ ‫هي‬ ‫االفتراضية‬ ‫الصلة‬.
‫السجال‬ ‫فقط‬ ‫باسترجاع‬ ‫يقوم‬ ‫االستعالم‬ ،‫الداخلية‬ ‫الصلة‬ ‫مع‬‫ت‬‫مع‬
‫في‬ ‫المطابقة‬ ‫السجالت‬‫الجداول‬ ‫من‬ ‫كل‬.‫اس‬ ،‫المثال‬ ‫سبيل‬ ‫على‬‫تعالم‬
‫يربط‬ ‫الذي‬‫المشاريع‬ ‫جدول‬‫سجالت‬ ‫يرجع‬ ‫ال‬ ‫المهام‬ ‫وجدول‬
‫الموكلة‬ ‫المهام‬ ‫أي‬ ‫بعد‬ ‫لديها‬ ‫ليس‬ ‫التي‬ ‫لمشروعات‬.
‫هذا‬‫تعي‬ ‫يتم‬ ‫لم‬ ‫التي‬ ‫للمهام‬ ‫سجالت‬ ‫يرجع‬ ‫ال‬ ‫أيضا‬ ‫االستعالم‬‫ينها‬
‫معين‬ ‫لمشروع‬.
‫الخارجية‬ ‫الصلة‬ ‫باستخدام‬،‫االستعالم‬ ‫هذا‬ ‫في‬‫يمكن‬‫م‬ ‫استرداد‬‫جموعة‬
‫من‬‫المطابقة‬ ‫السجالت‬(‫إليها‬ ‫المسندة‬ ‫والمهام‬ ‫المشاريع‬)،
‫باإلضافة‬‫المهام‬ ‫دون‬ ‫مشاريع‬ ‫إلى‬(‫المشاريع‬ ‫جميع‬)
‫أو‬‫مشاريع‬ ‫دون‬ ‫المهام‬(‫المهام‬ ‫جميع‬.)
Abdullatif Tarakji
abdotarakji@gmail.com
Whenever you have relationships defined
between two tables, Access automatically
joins the tables by using the fields in the
defined relationships. Access also includes an
option named Enable AutoJoin (which
appears on the Object Designers page in the
Access Options dialog box). This option is
enabled by default, so when you create a
query that includes tables that aren’t directly
related, Access tries to link the tables for you
by examining the primary key fields for each
table and then looking for a field with the
same name and data type in one of the other
tables in the query. If Access doesn’t find a
match, you can link the tables by selecting the
linking field in one table and then dragging it
to the field you want to link to in the second
table. By joining the tables in this way, you
link them for the purposes of designing and
running the query. You don’t create a
permanent relationship that you can view and
edit in the Relationships window.
‫كان‬ ‫اذا‬ ‫فيما‬،‫جدولين‬ ‫بين‬ ‫المعرفة‬ ‫العالقات‬ ‫لديك‬‫برنام‬‫ج‬
‫الم‬ ‫الحقول‬ ‫باستخدام‬ ‫الجداول‬ ‫يربط‬ ‫ا‬‫ا‬‫تلقائي‬ ‫األكسيس‬‫للعالقة‬ ‫عرفة‬.
‫خيار‬ ‫يتضمن‬ ‫ا‬‫ا‬‫أيض‬ ‫األكسيس‬‫تمكين‬ ‫اسمه‬‫الربط‬
‫التلقائي‬AutoJoin(‫الذي‬‫على‬ ‫يظهر‬‫الكائن‬ ‫مصمم‬ ‫صفحة‬‫في‬
‫خيارات‬ ‫الحوار‬ ‫مربع‬‫األكسيس‬.)‫الخيار‬ ‫هذا‬ ‫تمكين‬ ‫يتم‬
‫ال‬ ‫الجداول‬ ‫يتضمن‬ ‫استعالم‬ ‫إنشاء‬ ‫عند‬ ‫لذلك‬ ،‫افتراضيا‬‫ال‬ ‫تي‬
‫يحاول‬ ،‫مباشر‬ ‫بشكل‬ ‫ترتبط‬‫ربط‬ ‫األكسيس‬‫الجداول‬‫لك‬‫عن‬
‫تبح‬ ‫ثم‬ ‫جدول‬ ‫لكل‬ ‫األساسي‬ ‫المفتاح‬ ‫حقول‬ ‫فحص‬ ‫طريق‬‫عن‬ ‫ث‬
‫الج‬ ‫أحد‬ ‫في‬ ‫البيانات‬ ‫ونوع‬ ‫االسم‬ ‫نفس‬ ‫يحمل‬ ‫الذي‬ ‫الحقل‬‫داول‬
‫االستعالم‬ ‫في‬ ‫األخرى‬.
،‫الربط‬ ‫يجد‬ ‫لم‬ ‫األكسيس‬ ‫برنامج‬ ‫اذا‬‫ع‬ ‫الجداول‬ ‫ربط‬ ‫يمكنك‬‫ن‬
‫اختيار‬ ‫طريق‬‫حقل‬‫ال‬ ‫إلى‬ ‫سحبه‬ ‫ثم‬ ‫واحد‬ ‫جدول‬ ‫في‬ ‫الربط‬‫حقل‬
‫الثاني‬ ‫الجدول‬ ‫في‬ ‫به‬ ‫االرتباط‬ ‫تريد‬ ‫الذي‬.
‫الجداول‬ ‫ربط‬ ‫بواسطة‬‫ألغر‬ ‫ربطها‬ ‫يمكنك‬ ،‫الطريقة‬ ‫هذه‬ ‫في‬‫اض‬
‫االستعالم‬ ‫وتشغيل‬ ‫تصميم‬.‫دائمة‬ ‫عالقة‬ ‫بإنشاء‬ ‫تقم‬ ‫لم‬‫التي‬
‫وتحريرها‬ ‫عرضها‬ ‫من‬ ‫تمكنك‬‫العالقات‬ ‫إطار‬ ‫في‬.
Abdullatif Tarakji
abdotarakji@gmail.com
You can create a “left” outer join or a “right”
outer join to retrieve all the records from
one of the tables. Left and right refer to how
the tables are identified in the Join
Properties dialog box, which you open by
right-clicking the line linking two tables in the
Query Designer and then clicking Join
Properties. To use an outer join to return all
records from one table and matching records
from another, click option 2 or 3, depending
on which table’s records you want to view.
To set up an outer join for tables in a query
1. In the Query Designer, right-click the line
linking the tables, and then click Join
Properties.
2. In the Join Properties dialog box, click
the option for the outer join you want to
use.
‫إنشاء‬ ‫يمكنك‬‫خارجية‬ ‫صلة‬«‫يسرى‬»‫أو‬‫خارجية‬ ‫صلة‬«‫يمنى‬»
‫الجداول‬ ‫أحد‬ ‫من‬ ‫السجالت‬ ‫كافة‬ ‫السترداد‬.‫واليمين‬ ‫اليسار‬‫تش‬‫ير‬‫إلى‬
‫الص‬ ‫خصائص‬ ‫الحوار‬ ‫مربع‬ ‫في‬ ‫الجداول‬ ‫على‬ ‫التعرف‬ ‫كيفية‬،‫لة‬
‫والتي‬‫بفتحها‬ ‫تقوم‬‫ر‬ ‫خط‬ ‫فوق‬ ‫األيمن‬ ‫الماوس‬ ‫بزر‬ ‫بالنقر‬‫جدولين‬ ‫بط‬
‫الصلة‬ ‫خصائص‬ ‫فوق‬ ‫النقر‬ ‫ثم‬ ‫االستعالم‬ ‫مصمم‬ ‫في‬.‫الست‬‫صلة‬ ‫خدام‬
‫خارجية���‫السترجاع‬‫وا‬ ‫سجل‬ ‫ومطابقة‬ ‫الجدول‬ ‫من‬ ‫السجالت‬ ‫كافة‬‫حد‬
‫الخيار‬ ‫فوق‬ ‫انقر‬ ،‫آخر‬ ‫من‬2‫أو‬3‫الجدول‬ ‫سجالت‬ ‫على‬ ‫اعتمادا‬ ،
‫تريد‬ ‫الذي‬‫عرضها‬.
‫إنشاء‬‫استعالم‬ ‫في‬ ‫للجداول‬ ‫خارجية‬ ‫صلة‬
.1‫الخط‬ ‫فوق‬ ‫األيمن‬ ‫الماوس‬ ‫بزر‬ ‫انقر‬ ‫االستعالم‬ ‫مصمم‬ ‫في‬‫الذي‬
‫الصلة‬ ‫خصائص‬ ‫فوق‬ ‫انقر‬ ‫ثم‬ ‫ومن‬ ،‫الجداول‬ ‫بين‬ ‫يربط‬.
.2‫لص‬ ‫الخيار‬ ‫فوق‬ ‫انقر‬ ،‫تاريخ‬ ‫خصائص‬ ‫الحوار‬ ‫مربع‬ ‫في‬‫لة‬
‫استخدامها‬ ‫تريد‬ ‫خارجية‬.
Abdullatif Tarakji
abdotarakji@gmail.com

More Related Content

What's hot

Lesson2 Manage relationships and keys
Lesson2 Manage relationships and keysLesson2 Manage relationships and keys
Lesson2 Manage relationships and keys
Abdullatif Tarakji
 
Lesson7 Format tables
Lesson7 Format tablesLesson7 Format tables
Lesson7 Format tables
Abdullatif Tarakji
 
Lesson19 Format Reports
Lesson19 Format ReportsLesson19 Format Reports
Lesson19 Format Reports
Abdullatif Tarakji
 
Lesson3 Navigate through databases
Lesson3 Navigate through databases Lesson3 Navigate through databases
Lesson3 Navigate through databases
Abdullatif Tarakji
 
School database
School databaseSchool database
School database
Abdullatif Tarakji
 
Lesson17 Create Reports
Lesson17 Create ReportsLesson17 Create Reports
Lesson17 Create Reports
Abdullatif Tarakji
 
Lesson18 Set Report Controls
Lesson18 Set Report ControlsLesson18 Set Report Controls
Lesson18 Set Report Controls
Abdullatif Tarakji
 
Excelكيفية استعمال برنامج ال
Excelكيفية استعمال برنامج ال Excelكيفية استعمال برنامج ال
Excelكيفية استعمال برنامج ال
BedourAli1
 
خطوات البحث في قاعدة بيانات الإبسكو
خطوات البحث في قاعدة بيانات الإبسكوخطوات البحث في قاعدة بيانات الإبسكو
خطوات البحث في قاعدة بيانات الإبسكو
Mostafa Gawdat
 

What's hot (9)

Lesson2 Manage relationships and keys
Lesson2 Manage relationships and keysLesson2 Manage relationships and keys
Lesson2 Manage relationships and keys
 
Lesson7 Format tables
Lesson7 Format tablesLesson7 Format tables
Lesson7 Format tables
 
Lesson19 Format Reports
Lesson19 Format ReportsLesson19 Format Reports
Lesson19 Format Reports
 
Lesson3 Navigate through databases
Lesson3 Navigate through databases Lesson3 Navigate through databases
Lesson3 Navigate through databases
 
School database
School databaseSchool database
School database
 
Lesson17 Create Reports
Lesson17 Create ReportsLesson17 Create Reports
Lesson17 Create Reports
 
Lesson18 Set Report Controls
Lesson18 Set Report ControlsLesson18 Set Report Controls
Lesson18 Set Report Controls
 
Excelكيفية استعمال برنامج ال
Excelكيفية استعمال برنامج ال Excelكيفية استعمال برنامج ال
Excelكيفية استعمال برنامج ال
 
خطوات البحث في قاعدة بيانات الإبسكو
خطوات البحث في قاعدة بيانات الإبسكوخطوات البحث في قاعدة بيانات الإبسكو
خطوات البحث في قاعدة بيانات الإبسكو
 

Viewers also liked

Trabalho fitos digitais
Trabalho fitos digitaisTrabalho fitos digitais
Trabalho fitos digitais
Guilherme Matias de Medeiros
 
التحدى 6 الإستعلام بطريقة المعالج
التحدى 6 الإستعلام بطريقة المعالجالتحدى 6 الإستعلام بطريقة المعالج
التحدى 6 الإستعلام بطريقة المعالج
bosy sadek
 
MarketLine Country Statistics Database
MarketLine Country Statistics DatabaseMarketLine Country Statistics Database
MarketLine Country Statistics Database
MarketLine
 
Oracle hard and soft parsing
Oracle hard and soft parsingOracle hard and soft parsing
Oracle hard and soft parsing
Ishaan Guliani
 
Chapter 11new
Chapter 11newChapter 11new
Chapter 11new
Weinberghere
 
الوحدة التاسعة - قاعدة البيانات وادارتها
الوحدة التاسعة - قاعدة البيانات وادارتهاالوحدة التاسعة - قاعدة البيانات وادارتها
الوحدة التاسعة - قاعدة البيانات وادارتها
Amin Abu Hammad
 
Performance Tuning Azure SQL Database
Performance Tuning Azure SQL DatabasePerformance Tuning Azure SQL Database
Performance Tuning Azure SQL Database
Grant Fritchey
 
Performance tuning in sql server
Performance tuning in sql serverPerformance tuning in sql server
Performance tuning in sql server
Antonios Chatzipavlis
 
Oracle 11g PL/SQL proqramlamlaşdırma yenilikləri
Oracle 11g PL/SQL proqramlamlaşdırma yenilikləri Oracle 11g PL/SQL proqramlamlaşdırma yenilikləri
Oracle 11g PL/SQL proqramlamlaşdırma yenilikləri
Ramin Orujov
 
أساسيات التأمين
أساسيات التأمينأساسيات التأمين
Top frinds-انشاء-استعلام-بطريقه-المعالج-6-copy
Top frinds-انشاء-استعلام-بطريقه-المعالج-6-copyTop frinds-انشاء-استعلام-بطريقه-المعالج-6-copy
Top frinds-انشاء-استعلام-بطريقه-المعالج-6-copy
top friends
 
SQL Server Tuning to Improve Database Performance
SQL Server Tuning to Improve Database PerformanceSQL Server Tuning to Improve Database Performance
SQL Server Tuning to Improve Database Performance
Mark Ginnebaugh
 
Database system concepts and architecture
Database system concepts and architectureDatabase system concepts and architecture
Database system concepts and architecture
Mahmoud Almadhoun
 
Performance Tuning And Optimization Microsoft SQL Database
Performance Tuning And Optimization Microsoft SQL DatabasePerformance Tuning And Optimization Microsoft SQL Database
Performance Tuning And Optimization Microsoft SQL Database
Tung Nguyen Thanh
 
Webinar: Performance Tuning + Optimization
Webinar: Performance Tuning + OptimizationWebinar: Performance Tuning + Optimization
Webinar: Performance Tuning + Optimization
MongoDB
 
الوحدة الخامسة - قاعدة البيانات وادارتها
الوحدة الخامسة - قاعدة البيانات وادارتهاالوحدة الخامسة - قاعدة البيانات وادارتها
الوحدة الخامسة - قاعدة البيانات وادارتها
Amin Abu Hammad
 
الوحدة الثامنة - قاعدة البيانات وادارتها
الوحدة الثامنة - قاعدة البيانات وادارتهاالوحدة الثامنة - قاعدة البيانات وادارتها
الوحدة الثامنة - قاعدة البيانات وادارتها
Amin Abu Hammad
 
أنظمة ادارة قواعد البيانات
أنظمة ادارة قواعد البياناتأنظمة ادارة قواعد البيانات
أنظمة ادارة قواعد البيانات
Mahmoud Almadhoun
 
Database Performance Tuning
Database Performance Tuning Database Performance Tuning
Database Performance Tuning
Arno Huetter
 
الوحدة السابعة - قاعدة البيانات وادارتها
الوحدة السابعة - قاعدة البيانات وادارتهاالوحدة السابعة - قاعدة البيانات وادارتها
الوحدة السابعة - قاعدة البيانات وادارتها
Amin Abu Hammad
 

Viewers also liked (20)

Trabalho fitos digitais
Trabalho fitos digitaisTrabalho fitos digitais
Trabalho fitos digitais
 
التحدى 6 الإستعلام بطريقة المعالج
التحدى 6 الإستعلام بطريقة المعالجالتحدى 6 الإستعلام بطريقة المعالج
التحدى 6 الإستعلام بطريقة المعالج
 
MarketLine Country Statistics Database
MarketLine Country Statistics DatabaseMarketLine Country Statistics Database
MarketLine Country Statistics Database
 
Oracle hard and soft parsing
Oracle hard and soft parsingOracle hard and soft parsing
Oracle hard and soft parsing
 
Chapter 11new
Chapter 11newChapter 11new
Chapter 11new
 
الوحدة التاسعة - قاعدة البيانات وادارتها
الوحدة التاسعة - قاعدة البيانات وادارتهاالوحدة التاسعة - قاعدة البيانات وادارتها
الوحدة التاسعة - قاعدة البيانات وادارتها
 
Performance Tuning Azure SQL Database
Performance Tuning Azure SQL DatabasePerformance Tuning Azure SQL Database
Performance Tuning Azure SQL Database
 
Performance tuning in sql server
Performance tuning in sql serverPerformance tuning in sql server
Performance tuning in sql server
 
Oracle 11g PL/SQL proqramlamlaşdırma yenilikləri
Oracle 11g PL/SQL proqramlamlaşdırma yenilikləri Oracle 11g PL/SQL proqramlamlaşdırma yenilikləri
Oracle 11g PL/SQL proqramlamlaşdırma yenilikləri
 
أساسيات التأمين
أساسيات التأمينأساسيات التأمين
أساسيات التأمين
 
Top frinds-انشاء-استعلام-بطريقه-المعالج-6-copy
Top frinds-انشاء-استعلام-بطريقه-المعالج-6-copyTop frinds-انشاء-استعلام-بطريقه-المعالج-6-copy
Top frinds-انشاء-استعلام-بطريقه-المعالج-6-copy
 
SQL Server Tuning to Improve Database Performance
SQL Server Tuning to Improve Database PerformanceSQL Server Tuning to Improve Database Performance
SQL Server Tuning to Improve Database Performance
 
Database system concepts and architecture
Database system concepts and architectureDatabase system concepts and architecture
Database system concepts and architecture
 
Performance Tuning And Optimization Microsoft SQL Database
Performance Tuning And Optimization Microsoft SQL DatabasePerformance Tuning And Optimization Microsoft SQL Database
Performance Tuning And Optimization Microsoft SQL Database
 
Webinar: Performance Tuning + Optimization
Webinar: Performance Tuning + OptimizationWebinar: Performance Tuning + Optimization
Webinar: Performance Tuning + Optimization
 
الوحدة الخامسة - قاعدة البيانات وادارتها
الوحدة الخامسة - قاعدة البيانات وادارتهاالوحدة الخامسة - قاعدة البيانات وادارتها
الوحدة الخامسة - قاعدة البيانات وادارتها
 
الوحدة الثامنة - قاعدة البيانات وادارتها
الوحدة الثامنة - قاعدة البيانات وادارتهاالوحدة الثامنة - قاعدة البيانات وادارتها
الوحدة الثامنة - قاعدة البيانات وادارتها
 
أنظمة ادارة قواعد البيانات
أنظمة ادارة قواعد البياناتأنظمة ادارة قواعد البيانات
أنظمة ادارة قواعد البيانات
 
Database Performance Tuning
Database Performance Tuning Database Performance Tuning
Database Performance Tuning
 
الوحدة السابعة - قاعدة البيانات وادارتها
الوحدة السابعة - قاعدة البيانات وادارتهاالوحدة السابعة - قاعدة البيانات وادارتها
الوحدة السابعة - قاعدة البيانات وادارتها
 

Similar to Lesson11 Create Query

Lesson16 Format Forms
Lesson16 Format FormsLesson16 Format Forms
Lesson16 Format Forms
Abdullatif Tarakji
 
access complet.pptx
access complet.pptxaccess complet.pptx
access complet.pptx
GmachImen
 
قواعد البيانات
قواعد البياناتقواعد البيانات
قواعد البيانات
Moselhy Hussein
 
Oracle d2000devomentpresentations.pptppt
Oracle d2000devomentpresentations.pptpptOracle d2000devomentpresentations.pptppt
Oracle d2000devomentpresentations.pptppt
issagalal
 
developer-2000.ppt
developer-2000.pptdeveloper-2000.ppt
developer-2000.ppt
MithaqAbdullah
 
مراحل بناء قاعدة البيانات
مراحل بناء قاعدة البياناتمراحل بناء قاعدة البيانات
مراحل بناء قاعدة البيانات
gueste5de3d
 
Lesson13 Utilize calculated fields
Lesson13 Utilize calculated fieldsLesson13 Utilize calculated fields
Lesson13 Utilize calculated fields
Abdullatif Tarakji
 
Lesson12 Modify Queries
Lesson12 Modify QueriesLesson12 Modify Queries
Lesson12 Modify Queries
Abdullatif Tarakji
 
مقدمة في قواعد البيانات
مقدمة في قواعد البياناتمقدمة في قواعد البيانات
مقدمة في قواعد البيانات
DrMohammed Qassim
 
Lesson15 Set Form Controls
Lesson15 Set Form ControlsLesson15 Set Form Controls
Lesson15 Set Form Controls
Abdullatif Tarakji
 
10_2019_01_13!10_51_54_PM (1).pptx
10_2019_01_13!10_51_54_PM (1).pptx10_2019_01_13!10_51_54_PM (1).pptx
10_2019_01_13!10_51_54_PM (1).pptx
GmachImen
 
غادة1
غادة1غادة1
غادة1
ghadasaad
 
معمار المرشدي دجلة بالمز
معمار المرشدي دجلة بالمز معمار المرشدي دجلة بالمز
معمار المرشدي دجلة بالمز
دجلة بالمز
 
acces presentation 1].ppt
acces presentation 1].pptacces presentation 1].ppt
acces presentation 1].ppt
GmachImen
 
Access_Tables.ppt
Access_Tables.pptAccess_Tables.ppt
Access_Tables.ppt
GmachImen
 
Access_Tables (1).ppt
Access_Tables (1).pptAccess_Tables (1).ppt
Access_Tables (1).ppt
GmachImen
 
acces presentation 1].ppt
acces presentation 1].pptacces presentation 1].ppt
acces presentation 1].ppt
GmachImen
 
School database - Abdullatif Tarakji - www.abdtarakji.com
School database - Abdullatif Tarakji - www.abdtarakji.comSchool database - Abdullatif Tarakji - www.abdtarakji.com
School database - Abdullatif Tarakji - www.abdtarakji.com
Abdullatif Tarakji
 
Google drive presentation
Google drive presentationGoogle drive presentation
Google drive presentation
shaikha90
 

Similar to Lesson11 Create Query (20)

Lesson16 Format Forms
Lesson16 Format FormsLesson16 Format Forms
Lesson16 Format Forms
 
access complet.pptx
access complet.pptxaccess complet.pptx
access complet.pptx
 
قواعد البيانات
قواعد البياناتقواعد البيانات
قواعد البيانات
 
Oracle d2000devomentpresentations.pptppt
Oracle d2000devomentpresentations.pptpptOracle d2000devomentpresentations.pptppt
Oracle d2000devomentpresentations.pptppt
 
developer-2000.ppt
developer-2000.pptdeveloper-2000.ppt
developer-2000.ppt
 
مراحل بناء قاعدة البيانات
مراحل بناء قاعدة البياناتمراحل بناء قاعدة البيانات
مراحل بناء قاعدة البيانات
 
Lesson13 Utilize calculated fields
Lesson13 Utilize calculated fieldsLesson13 Utilize calculated fields
Lesson13 Utilize calculated fields
 
Access
AccessAccess
Access
 
Lesson12 Modify Queries
Lesson12 Modify QueriesLesson12 Modify Queries
Lesson12 Modify Queries
 
مقدمة في قواعد البيانات
مقدمة في قواعد البياناتمقدمة في قواعد البيانات
مقدمة في قواعد البيانات
 
Lesson15 Set Form Controls
Lesson15 Set Form ControlsLesson15 Set Form Controls
Lesson15 Set Form Controls
 
10_2019_01_13!10_51_54_PM (1).pptx
10_2019_01_13!10_51_54_PM (1).pptx10_2019_01_13!10_51_54_PM (1).pptx
10_2019_01_13!10_51_54_PM (1).pptx
 
غادة1
غادة1غادة1
غادة1
 
معمار المرشدي دجلة بالمز
معمار المرشدي دجلة بالمز معمار المرشدي دجلة بالمز
معمار المرشدي دجلة بالمز
 
acces presentation 1].ppt
acces presentation 1].pptacces presentation 1].ppt
acces presentation 1].ppt
 
Access_Tables.ppt
Access_Tables.pptAccess_Tables.ppt
Access_Tables.ppt
 
Access_Tables (1).ppt
Access_Tables (1).pptAccess_Tables (1).ppt
Access_Tables (1).ppt
 
acces presentation 1].ppt
acces presentation 1].pptacces presentation 1].ppt
acces presentation 1].ppt
 
School database - Abdullatif Tarakji - www.abdtarakji.com
School database - Abdullatif Tarakji - www.abdtarakji.comSchool database - Abdullatif Tarakji - www.abdtarakji.com
School database - Abdullatif Tarakji - www.abdtarakji.com
 
Google drive presentation
Google drive presentationGoogle drive presentation
Google drive presentation
 

Recently uploaded

4-Stress and how to coping mechanisms pdf
4-Stress and how to coping mechanisms pdf4-Stress and how to coping mechanisms pdf
4-Stress and how to coping mechanisms pdf
t9kvs9p6dy
 
الباب الأول من كتاب مدخل إلى أخلاقيات مهنة الهندسة.pdf
الباب الأول من كتاب مدخل إلى أخلاقيات مهنة الهندسة.pdfالباب الأول من كتاب مدخل إلى أخلاقيات مهنة الهندسة.pdf
الباب الأول من كتاب مدخل إلى أخلاقيات مهنة الهندسة.pdf
IdrisAlfassi1
 
سلسلة الكامل / 28 / الكامل في أحاديث خُلقت المرأة من ضلع أعوج فدارها تعش بها ...
سلسلة الكامل / 28 / الكامل في أحاديث خُلقت المرأة من ضلع أعوج فدارها تعش بها ...سلسلة الكامل / 28 / الكامل في أحاديث خُلقت المرأة من ضلع أعوج فدارها تعش بها ...
سلسلة الكامل / 28 / الكامل في أحاديث خُلقت المرأة من ضلع أعوج فدارها تعش بها ...
Ahmed Hosam
 
1 Agile.pdf bv 1 Agile.pdf pmp agile
1 Agile.pdf bv 1 Agile.pdf      pmp agile1 Agile.pdf bv 1 Agile.pdf      pmp agile
1 Agile.pdf bv 1 Agile.pdf pmp agile
DrmagedAlazony
 
نموذج خطة زمنية مقسمة لاتتعدي ال18دقيقة_2.pdf
نموذج خطة زمنية مقسمة لاتتعدي ال18دقيقة_2.pdfنموذج خطة زمنية مقسمة لاتتعدي ال18دقيقة_2.pdf
نموذج خطة زمنية مقسمة لاتتعدي ال18دقيقة_2.pdf
team882406
 
نموذج خطة زمنية لبرنامج التدريب على نظام إدارة الجودة مركز الإرشاد المهني مقس...
نموذج خطة زمنية لبرنامج التدريب على نظام إدارة الجودة مركز الإرشاد المهني مقس...نموذج خطة زمنية لبرنامج التدريب على نظام إدارة الجودة مركز الإرشاد المهني مقس...
نموذج خطة زمنية لبرنامج التدريب على نظام إدارة الجودة مركز الإرشاد المهني مقس...
team882406
 
نظام_إدارة_الجودة المادة التدريبية ايزو 9001
نظام_إدارة_الجودة المادة التدريبية ايزو 9001نظام_إدارة_الجودة المادة التدريبية ايزو 9001
نظام_إدارة_الجودة المادة التدريبية ايزو 9001
team882406
 
دليل اختبار القدرات 2024 لطلاب الثانوية العامة
دليل اختبار القدرات 2024 لطلاب الثانوية العامةدليل اختبار القدرات 2024 لطلاب الثانوية العامة
دليل اختبار القدرات 2024 لطلاب الثانوية العامة
amany0011
 

Recently uploaded (8)

4-Stress and how to coping mechanisms pdf
4-Stress and how to coping mechanisms pdf4-Stress and how to coping mechanisms pdf
4-Stress and how to coping mechanisms pdf
 
الباب الأول من كتاب مدخل إلى أخلاقيات مهنة الهندسة.pdf
الباب الأول من كتاب مدخل إلى أخلاقيات مهنة الهندسة.pdfالباب الأول من كتاب مدخل إلى أخلاقيات مهنة الهندسة.pdf
الباب الأول من كتاب مدخل إلى أخلاقيات مهنة الهندسة.pdf
 
سلسلة الكامل / 28 / الكامل في أحاديث خُلقت المرأة من ضلع أعوج فدارها تعش بها ...
سلسلة الكامل / 28 / الكامل في أحاديث خُلقت المرأة من ضلع أعوج فدارها تعش بها ...سلسلة الكامل / 28 / الكامل في أحاديث خُلقت المرأة من ضلع أعوج فدارها تعش بها ...
سلسلة الكامل / 28 / الكامل في أحاديث خُلقت المرأة من ضلع أعوج فدارها تعش بها ...
 
1 Agile.pdf bv 1 Agile.pdf pmp agile
1 Agile.pdf bv 1 Agile.pdf      pmp agile1 Agile.pdf bv 1 Agile.pdf      pmp agile
1 Agile.pdf bv 1 Agile.pdf pmp agile
 
نموذج خطة زمنية مقسمة لاتتعدي ال18دقيقة_2.pdf
نموذج خطة زمنية مقسمة لاتتعدي ال18دقيقة_2.pdfنموذج خطة زمنية مقسمة لاتتعدي ال18دقيقة_2.pdf
نموذج خطة زمنية مقسمة لاتتعدي ال18دقيقة_2.pdf
 
نموذج خطة زمنية لبرنامج التدريب على نظام إدارة الجودة مركز الإرشاد المهني مقس...
نموذج خطة زمنية لبرنامج التدريب على نظام إدارة الجودة مركز الإرشاد المهني ��قس...نموذج خطة زمنية لبرنامج التدريب على نظام إدارة الجودة مركز الإرشاد المهني مقس...
نموذج خطة زمنية لبرنامج التدريب على نظام إدارة الجودة مركز الإرشاد المهني مقس...
 
نظام_إدارة_الجودة المادة التدريبية ايزو 9001
نظام_إدارة_الجودة المادة التدريبية ايزو 9001نظام_إدارة_الجودة المادة التدريبية ايزو 9001
نظام_إدارة_الجودة المادة التدريبية ايزو 9001
 
دليل اختبار القدرات 2024 لطلاب الثانوية العامة
دليل اختبار القدرات 2024 لطلاب الثانوية العامةدليل اختبار القدرات 2024 لطلاب الثانوية العامة
دليل اختبار القدرات 2024 لطلاب الثانوية العامة
 

Lesson11 Create Query

  • 1. Abdullatif Tarakji abdotarakji@gmail.com Create a query ‫استعالم‬ ‫إنشاء‬- Creating action queries To create and run a make-table query Appending records by using a query Updating and deleting records by using a query Viewing data in a crosstab query Using the Crosstab Query wizard Creating crosstab queries in Design view Managing multiple tables and joins ‫اإلجرائية‬ ‫االستعالمات‬ ‫إنشاء‬ ‫جدول‬ ‫تكوين‬ ‫استعالم‬ ‫تشغيل‬ ‫و‬ ‫إنشاء‬ ‫االستعالم‬ ‫باستخدام‬ ‫سجالت‬ ‫الحاق‬ ‫استعالم‬ ‫باستخدام‬ ‫السجالت‬ ‫حذف‬ ‫و‬ ‫تحديث‬ ‫جدولي‬ ‫استعالم‬ ‫في‬ ‫البيانات‬ ‫عرض‬ ‫االستعالم‬ ‫معالج‬ ‫استخدام‬‫الجدولي‬ ‫التصميم‬ ‫عرض‬ ‫في‬ ‫جدولية‬ ‫استعالمات‬ ‫إنشاء‬ ‫ربطها‬ ‫و‬ ‫متعددة‬ ‫جداول‬ ‫إدارة‬
  • 2. Abdullatif Tarakji abdotarakji@gmail.com Creating action queries ‫االجرائية‬ ‫االستعالمات‬ ‫إنشاء‬• The next three sections describe different types of action queries: a make-table query, an append query, and update and delete queries. Action queries are often used to help manage the records in a database. For example, you can use a select query to retrieve records for all discontinued products. You can use a make-table or an append query to archive those records, and then run a delete query on the products table to remove the records for those products. Using make-table queries • When you run a make-table query, Access creates a table (in the current database or in another database you designate) that’s defined by the fields included in the query. A make-table query has at least a couple of functions. • A make-table query can improve performance when you find yourself frequently running a select query that’s based on several tables whose data doesn’t change. Access can run the select query more quickly if it is based on a single table (created by the make-table query) instead of on multiple tables. • You can use a make-table query to build your data archives. For example, use a make-table query to store all the orders for the past year and use the Orders table only for current orders. •‫األقسام‬ ‫تشرح‬‫اإلجرائية‬ ‫االستعالمات‬ ‫من‬ ‫مختلفة‬ ‫أنواع‬ ‫المقبلة‬ ‫الثالثة‬: ‫استعالم‬‫جدول‬ ‫تكوين‬،‫إلحاقي‬ ‫استعالم‬،‫الحذف‬ ‫و‬ ‫التحديث‬ ‫استعالمات‬ ‫و‬. ‫غالبا‬‫في‬ ‫السجالت‬ ‫إدارة‬ ‫في‬ ‫للمساعدة‬ ‫اإلجرائية‬ ‫االستعالمات‬ ‫تستخدم‬ ‫ما‬‫قاعدة‬ ‫البيانات‬.‫السترداد‬ ‫تحديد‬ ‫استعالم‬ ‫استخدام‬ ‫يمكنك‬ ،‫المثال‬ ‫سبيل‬ ‫على‬‫السجالت‬ ‫المنتجات‬ ‫لجميع‬‫المتوقفة‬.‫استخدام‬ ‫يمكنك‬-‫إلح‬ ‫استعالم‬ ‫أو‬ ‫جدول‬ ‫تكوين‬‫ألرشفة‬ ‫اقي‬ ‫إلزالة‬ ‫المنتجات‬ ‫جدول‬ ‫على‬ ‫حذف‬ ‫استعالم‬ ‫بتشغيل‬ ‫قم‬ ‫ثم‬ ،‫السجالت‬ ‫تلك‬‫سجالت‬ ‫المنتجات‬ ‫لتلك‬. ‫جدول‬ ‫تكوين‬ ‫استعالمات‬ ‫باستخدام‬ •،‫جدول‬ ‫تكوين‬ ‫استعالم‬ ‫تشغيل‬ ‫عند‬‫جدول‬ ‫بإنشاء‬ ‫األكسيس‬ ‫يقوم‬(‫ق‬ ‫في‬‫البيانات‬ ‫اعدة‬ ‫بتعيينها‬ ‫تقوم‬ ‫أخرى‬ ‫بيانات‬ ‫قاعدة‬ ‫في‬ ‫أو‬ ‫الحالية‬)‫في‬ ‫تعرف‬ ‫التي‬‫الح‬‫قول‬‫المضمنة‬ ‫االستعالم‬ ‫في‬.‫الوظائف‬ ‫من‬ ‫زوجين‬ ‫األقل‬ ‫على‬ ‫لديه‬ ‫جدول‬ ‫تكوين‬ ‫استعالم‬. •‫استعالم‬‫أن‬ ‫يمكن‬ ‫جدول‬ ‫تكوين‬‫يحسن‬‫م‬ ‫كثير‬ ‫في‬ ‫نفسك‬ ‫تجد‬ ‫عندما‬ ‫األداء‬‫األحيان‬ ‫ن‬ ‫تشغل‬‫يتغ‬ ‫ال‬ ‫التي‬ ‫البيانات‬ ‫جداول‬ ‫عدة‬ ‫على‬ ‫يعتمد‬ ‫الذي‬ ‫تحديد‬ ‫استعالم‬‫ير‬.‫يمكن‬ ‫تحديد‬ ‫استعالم‬ ‫تشغيل‬ ‫يمكنه‬ ‫األكسيس‬ ‫برنامج‬‫قا‬ ‫كان‬ ‫إذا‬ ‫أكبر‬ ‫بسرعة‬‫على‬ ‫ئما‬ ‫واحد‬ ‫جدول‬(‫جدول‬ ‫تكوين‬ ‫استعالم‬ ‫بواسطة‬ ‫إنشاؤه‬ ‫تم‬)‫متعدد‬ ‫جداول‬ ‫من‬ ‫بدال‬‫ة‬. •‫يمكنك‬‫ب‬ ‫الخاصة‬ ‫البيانات‬ ‫أرشيف‬ ‫لبناء‬ ‫جدول‬ ‫تكوين‬ ‫استعالم‬ ‫استخدام‬‫ك‬. ‫على‬‫جميع‬ ‫لتخزين‬ ‫جدول‬ ‫تكوين‬ ‫استعالم‬ ‫استخدام‬ ،‫المثال‬ ‫سبيل‬‫الطلب‬‫للعام‬ ‫يات‬ ‫واستخدام‬ ‫الماضي‬‫الطلبيات‬ ‫جدول‬‫فقط‬‫للطلبيات‬‫الحالية‬.
  • 3. Abdullatif Tarakji abdotarakji@gmail.com • A table created by a make-table query inherits field names and data types but not all settings specified for other field properties. Also, the new table does not include a primary key. You need to open the new table in Design view to update field properties and assign a primary key. • A make-table query is based on a select query. To be sure that the table Access creates includes the correct records, run the select query to first review the records, and then run the make-table query. • When you click Make Table in the Query Type group, Access displays the Make Table dialog box. In addition to naming the table (or selecting one from the list), you need to specify whether to include the table in the current database or in a different database. If you choose Another Database, enter the file name for the database or click Browse to select the database file. • By clicking OK in the Make Table dialog box, you set up the query. To run the query and create the table, click Run in the Results group. After you save the make- table query, you can run it again by double-clicking the query in the Navigation pane. When you run a make- table query in the Navigation pane (after running it at least one other time to create the table), the existing table is deleted. •‫الح‬ ‫أسماء‬ ‫يرث‬ ‫جدول‬ ‫تكوين‬ ‫استعالم‬ ‫بواسطة‬ ‫إنشاؤه‬ ‫تم‬ ‫الذي‬ ‫والجدول‬‫قول‬ ‫األخ‬ ‫الحقل‬ ‫لخصائص‬ ‫المحددة‬ ‫اإلعدادات‬ ‫كل‬ ‫ليس‬ ‫ولكن‬ ‫البيانات‬ ‫وأنواع‬‫رى‬. ‫أساسي‬ ‫مفتاح‬ ‫الجديد‬ ‫الجدول‬ ‫يتضمن‬ ‫ال‬ ،‫أيضا‬.‫الج‬ ‫فتح‬ ‫إلى‬ ‫تحتاج‬‫الجديد‬ ‫دول‬ ‫مفتا‬ ‫وتعيين‬ ‫الحقل‬ ‫خصائص‬ ‫لتحديث‬ ‫التصميم‬ ‫عرض‬ ‫طريقة‬ ‫في‬‫أساسي‬ ‫ح‬. •‫تحديد‬ ‫استعالم‬ ‫على‬ ‫جدول‬ ‫تكوين‬ ‫استعالم‬ ‫ويستند‬.‫للتأكد‬‫أن‬ ‫من‬‫ج‬‫دول‬ ‫يتضمن‬ ‫المنشئ‬ ‫االكسيس‬‫استعال‬ ‫بتشغيل‬ ‫قم‬ ،‫الصحيحة‬ ‫السجالت‬‫تحديد‬ ‫م‬ ‫جدول‬ ‫تكوين‬ ‫استعالم‬ ‫بتشغيل‬ ‫قم‬ ‫ثم‬ ،‫أوال‬ ‫السجالت‬ ‫لمراجعة‬. •‫يعرض‬ ،‫االستعالم‬ ‫نوع‬ ‫المجموعة‬ ‫في‬ ‫الجدول‬ ‫جعل‬ ‫فوق‬ ‫النقر‬ ‫عند‬‫اكس‬‫يس‬ ‫مربع‬‫جدول‬ ‫تكوين‬ ‫الحوار‬.‫الجدول‬ ‫تسمية‬ ‫إلى‬ ‫باإلضافة‬(‫و‬ ‫اختيار‬ ‫أو‬‫من‬ ‫احد‬ ‫القائمة‬)‫إذا‬ ‫ما‬ ‫تحديد‬ ‫إلى‬ ‫تحتاج‬ ،‫لتشمل‬ ‫تريد‬ ‫كنت‬‫قاعدة‬ ‫في‬ ‫الجدول‬‫البيانات‬ ‫مختلفة‬ ‫بيانات‬ ‫قاعدة‬ ‫في‬ ‫أو‬ ‫الحالية‬.‫أ‬ ،‫أخرى‬ ‫بيانات‬ ‫قاعدة‬ ‫اخترت‬ ‫إذا‬‫دخل‬ ‫الب‬ ‫قاعدة‬ ‫ملف‬ ‫لتحديد‬ ‫استعراض‬ ‫فوق‬ ‫انقر‬ ‫أو‬ ‫بيانات‬ ‫قاعدة‬ ‫ملف‬ ‫اسم‬‫يانات‬. •‫االس‬ ‫بإعداد‬ ‫تقوم‬ ،‫جدول‬ ‫تكوين‬ ‫الحوار‬ ‫مربع‬ ‫في‬ ‫موافق‬ ‫فوق‬ ‫بالنقر‬‫تعالم‬. ‫ال‬ ‫مجموعة‬ ‫في‬ ‫تشغيل‬ ‫فوق‬ ‫انقر‬ ،‫الجدول‬ ‫وإنشاء‬ ‫االستعالم‬ ‫لتشغيل‬‫نتائج‬. ‫بعد‬‫طريق‬ ‫عن‬ ‫أخرى‬ ‫مرة‬ ‫تشغيله‬ ‫يمكنك‬ ،‫جدول‬ ‫تكوين‬ ‫استعالم‬ ‫حفظ‬‫النقر‬ ‫التنقل‬ ‫جزء‬ ‫في‬ ‫االستعالم‬ ‫فوق‬ ‫المزدوج‬.‫تكو‬ ‫استعالم‬ ‫تشغيل‬ ‫عند‬‫جدول‬ ‫ين‬ ‫التنقل‬ ‫جزء‬ ‫في‬(‫األقل‬ ‫على‬ ‫واحدة‬ ‫مرة‬ ‫تشغيله‬ ‫بعد‬‫إلنشاء‬‫الجدول‬)، ‫يتم‬‫الموجود‬ ‫الجدول‬ ‫حذف‬.
  • 4. Abdullatif Tarakji abdotarakji@gmail.comTo create and run a make-table query ‫جدول‬ ‫تكوين‬ ‫استعالم‬ ‫تشغيل‬ ‫و‬ ‫إلنشاء‬ 1. Create a select query on which to base the make-table query. 2. With the select query open in Design view, click Run in the Results group. 3. Review the records returned by the select query. In the Views group, click View, Design View to return the query to Design view. 4. On the Query Tools Design tool tab, in the Query Type group, click Make Table. 5. In the Make Table dialog box, enter a name for the table, and then specify whether Access should create the table in the current database or in another database. If you click Another Database, enter the file name or click Browse to locate the file, and then click OK. 6. In the Results group, click Run. 7. Click Yes in the message boxes Access displays to confirm the operation. .1‫تكوي‬ ‫الستعالم‬ ‫أساسي‬ ‫سيكون‬ ‫الذي‬ ‫و‬ ‫تحديد‬ ‫استعالم‬ ‫أنشئ‬‫جدول‬ ‫ن‬. .2‫التصميم‬ ‫عرض‬ ‫في‬ ‫افتحه‬ ‫التحديد‬ ‫استعالم‬ ‫في‬,‫على‬ ‫اضغط‬‫تشغيل‬ ‫النتائج‬ ‫مجموعة‬ ‫من‬. .3‫التحديد‬ ‫استعالم‬ ‫من‬ ‫استردادها‬ ‫تم‬ ‫التي‬ ‫السجالت‬ ‫راجع‬,‫مج‬ ‫في‬‫موعة‬ ‫عرض‬,‫عرض‬ ‫اضغط‬,‫الى‬ ‫االستعالم‬ ‫إلعادة‬ ‫التصميم‬ ‫عرض‬ ‫التصميم‬ ‫عرض‬. .4‫االستعالم‬ ‫أدوات‬ ‫من‬ ‫التصميم‬ ‫أدوات‬ ‫تبويب‬ ‫من‬,‫أنواع‬ ‫مجموعة‬ ‫من‬ ‫االستعالم‬,‫جدول‬ ‫تكوين‬ ‫اضغط‬. .5‫جدول‬ ‫تكوين‬ ‫حوار‬ ‫مربع‬ ‫في‬,‫اذ‬ ‫فيما‬ ‫حدد‬ ‫ثم‬ ‫و‬ ‫الجدول‬ ‫اسم‬ ‫أدخل‬‫ا‬ ‫قاعدة‬ ‫في‬ ‫أو‬ ‫الحالية‬ ‫البيانات‬ ‫قاعدة‬ ‫في‬ ‫الجدول‬ ‫ستنشئ‬ ‫كنت‬‫بيانات‬ ‫أخرى‬,‫الملف‬ ‫موقع‬ ‫لتحديد‬ ‫استعراض‬ ‫اضغط‬ ‫او‬ ‫الملف‬ ‫اسم‬ ‫أدخل‬,‫ثم‬ ‫موافق‬ ‫اضغط‬. .6‫نتائج‬ ‫مجموعة‬ ‫في‬,‫تشغيل‬ ‫اضغط‬. .7‫لتأكي‬ ‫األكسيس‬ ‫يظهرها‬ ‫التي‬ ‫الرسالة‬ ‫صندوق‬ ‫في‬ ‫نعم‬ ‫اضغط‬‫د‬ ‫العملية‬.
  • 6. Abdullatif Tarakji abdotarakji@gmail.com Appending records by using a query ‫االستعالم‬ ‫باستخدام‬ ‫سجالت‬ ‫الحاق‬ • Another action you can perform by using a query is to append records to a table. An append query is similar to a make-table query, but instead of creating a table, an append query adds records to a table that’s already defined. Append queries are also useful tools for archiving records. For example, you could create a table named Completed Projects, and then design a query based on the Projects table and related tables to select the records you want. By running this query periodically as an append query, you create an archive of completed projects. • When you design an append query, keep in mind that the data you insert by running the query must conform to the design of the destination table. For example, the data types of matching fields must be compatible, and the source data must conform to any validation rules defined for the destination table or the fields that the table contains. •‫القيام‬ ‫يمكنك‬ ‫آخر‬ ‫إجراء‬‫االستعالم‬ ‫باستخدام‬ ‫به‬‫سج‬ ‫إلحاق‬ ‫هو‬‫الت‬ ‫جدول‬ ‫إلى‬.‫ولك‬ ،‫جدول‬ ‫تكوين‬ ‫استعالم‬ ‫يشبه‬ ‫إلحاقي‬ ‫استعالم‬‫بدال‬ ‫ن‬ ‫استعالم‬ ‫يضيف‬ ،‫جدول‬ ‫إنشاء‬ ‫من‬‫إلحاق‬‫إلى‬ ‫السجالت‬‫جدول‬ ‫معرف‬‫مسبقا‬.‫ألرشفة‬ ‫مفيدة‬ ‫أدوات‬ ‫أيضا‬ ‫االستعالمات‬ ‫إلحاق‬ ‫السجالت‬.‫مشا‬ ‫يسمى‬ ‫جدول‬ ‫إنشاء‬ ‫يمكنك‬ ،‫المثال‬ ‫سبيل‬ ‫على‬‫تم‬ ‫ريع‬ ‫المشاريع‬ ‫جدول‬ ‫إلى‬ ‫يستند‬ ‫استعالم‬ ‫تصميم‬ ‫ثم‬ ‫ومن‬ ،‫انجازها‬ ‫تريدها‬ ‫التي‬ ‫السجالت‬ ‫لتحديد‬ ‫الصلة‬ ‫ذات‬ ‫والجداول‬.‫طري‬ ‫عن‬‫ق‬ ‫يمك‬ ،‫إلحاقي‬ ‫استعالم‬ ‫كما‬ ‫دوري‬ ‫بشكل‬ ‫االستعالم‬ ‫هذا‬ ‫تشغيل‬‫نك‬ ‫المنجزة‬ ‫المشاريع‬ ‫من‬ ‫أرشيف‬ ‫إنشاء‬. •‫البي‬ ‫أن‬ ‫االعتبار‬ ‫في‬ ‫نضع‬ ‫أن‬ ،‫إلحاقي‬ ‫استعالم‬ ‫تصميم‬ ‫عند‬‫التي‬ ‫انات‬ ‫تص‬ ‫مع‬ ‫تتفق‬ ‫أن‬ ‫يجب‬ ‫االستعالم‬ ‫تشغيل‬ ‫طريق‬ ‫عن‬ ‫تضاف‬‫ميم‬ ‫الوجهة‬ ‫الجدول‬.‫البي‬ ‫أنواع‬ ‫تكون‬ ‫أن‬ ‫يجب‬ ،‫المثال‬ ‫سبيل‬ ‫على‬‫انات‬ ‫الحقول‬ ‫من‬‫أن‬ ‫يجب‬ ‫مطابقة‬،‫متوافقة‬ ‫تكون‬‫و‬‫البيانات‬ ‫مصدر‬ ‫مطابقة‬‫لقواعد‬‫أو‬ ‫الوجهة‬ ‫للجدول‬ ‫تعريف‬ ‫أي‬ ‫صحة‬ ‫من‬ ‫التحقق‬ ‫الجدول‬ ‫على‬ ‫تحتوي‬ ‫التي‬ ‫الحقول‬.
  • 7. Abdullatif Tarakji abdotarakji@gmail.com • As with make-table queries, you build an append query by first defining a select query. After setting up the select query, verify that it returns the records you need by running it. If the results are correct, display the query in Design view again and then click Append in the Query Type group. In the Append dialog box, use the Table Name list to select the table you want to append records to in the current database, or click Another Database to append records to a table in a different database. • When you click OK in the Append dialog box, Access adds the Append To row to the query design grid. Based on the table you selected in the Append dialog box, Access selects and displays a matching field in the Append To row. You can change the matching fields that Access provides, but the data type and other properties of the field specified in the Append To row must be compatible with the field in the query. • Save the query, and then run it by double-clicking the query in the Navigation pane or by opening the query in Design view and then clicking Run on the Query Tools Design tool tab. After you run the query, you can open the table that the records were appended to and verify that the records were added correctly. •‫مع‬ ‫الحال‬ ‫هو‬ ‫كما‬‫تكوين‬ ‫استعالمات‬‫إلحاق‬ ‫استعالم‬ ‫بناء‬ ‫عليك‬ ،‫جدول‬‫من‬ ‫ي‬ ‫خالل‬‫تحديد‬‫استعالم‬‫ا‬‫ال‬‫أو‬ ‫تحديد‬.‫تحق‬ ،‫تحديد‬ ‫استعالم‬ ‫إعداد‬ ‫بعد‬‫أن‬ ‫من‬ ‫ق‬ ‫تشغيله‬ ‫خالل‬ ‫من‬ ‫تحتاجها‬ ‫التي‬ ‫السجالت‬ ‫بإرجاع‬ ‫تقوم‬.‫ال‬ ‫كانت‬ ‫إذا‬‫نتائج‬ ،‫صحيحة‬‫اعرض‬‫ث‬ ‫أخرى‬ ‫مرة‬ ‫التصميم‬ ‫عرض‬ ‫طريقة‬ ‫في‬ ‫االستعالم‬‫انقر‬ ‫م‬ ‫االستعالم‬ ‫نوع‬ ‫المجموعة‬ ‫في‬ ‫إلحاق‬ ‫فوق‬.‫اس‬ ،‫إلحاق‬ ‫الحوار‬ ‫مربع‬ ‫في‬‫تخدم‬ ‫القائمة‬‫اسم‬ ‫لتحديد‬‫الجدول‬‫الذي‬‫إلحاق‬ ‫تريد‬‫لقاعدة‬ ‫السجالت‬‫البي‬‫انات‬ ‫ف‬ ‫جدول‬ ‫إلى‬ ‫سجالت‬ ‫إللحاق‬ ‫أخرى‬ ‫بيانات‬ ‫قاعدة‬ ‫فوق‬ ‫انقر‬ ‫أو‬ ،‫الحالية‬‫ي‬ ‫مختلفة‬ ‫بيانات‬ ‫قاعدة‬. •،‫إلحاق‬ ‫الحوار‬ ‫مربع‬ ‫في‬ ‫موافق‬ ‫فوق‬ ‫النقر‬ ‫عند‬‫األك‬ ‫برنامج‬ ‫يضيف‬‫سيس‬ ‫إلحاق‬‫إلى‬‫في‬ ‫الصف‬‫االستعالم‬ ‫تصميم‬ ‫شبكة‬.‫الجد‬ ‫إلى‬ ‫واستنادا‬‫الذي‬ ‫ول‬ ‫يحدد‬ ،‫إلحاق‬ ‫الحوار‬ ‫مربع‬ ‫في‬ ‫حددته‬‫ويعرض‬ ‫األكسيس‬‫ف‬ ‫مطابق‬ ‫حقل‬‫ي‬ ‫الصف‬ ‫إلى‬ ‫إلحاق‬.‫الحقول‬ ‫تغيير‬ ‫يمكنك‬‫المطابقة‬‫التي‬‫األ‬ ‫يوفرها‬،‫كسيس‬ ‫من‬ ‫وغيرها‬ ‫البيانات‬ ‫نوع‬ ‫يكون‬ ‫أن‬ ‫يجب‬ ‫ولكن‬‫للحقل‬ ‫الخصائص‬‫ال‬‫محدد‬ ‫مع‬ ‫متوافق‬ ‫صف‬ ‫إلى‬ ‫إلحاق‬ ‫في‬‫الحقل‬‫االستعالم‬ ‫في‬. •‫احفظ‬‫ثم‬ ،‫االستعالم‬‫على‬ ‫بنقرتين‬ ‫شغله‬‫الت‬ ‫جزء‬ ‫في‬ ‫االستعالم‬‫عن‬ ‫أو‬ ‫نقل‬ ‫فوق‬ ‫النقر‬ ‫ثم‬ ‫التصميم‬ ‫عرض‬ ‫طريقة‬ ‫في‬ ‫االستعالم‬ ‫فتح‬ ‫طريق‬‫في‬ ‫تشغيل‬ ‫المزدوج‬ ‫النقر‬ ‫تصميم‬ ‫أداة‬ ‫التبويب‬ ‫استعالم‬ ‫أدوات‬.‫ا‬ ‫تشغيل‬ ‫بعد‬،‫الستعالم‬ ‫السجالت‬ ‫إلحاق‬ ‫تم‬ ‫الذي‬ ‫الجدول‬ ‫فتح‬ ‫يمكنك‬‫اليه‬‫تم‬ ‫أنه‬ ‫من‬ ‫وتحقق‬‫إضافة‬ ‫صحيح‬ ‫بشكل‬ ‫السجالت‬.
  • 8. Abdullatif Tarakji abdotarakji@gmail.com To create and run an append query ‫االلحاق‬ ‫استعالم‬ ‫تشغيل‬ ‫و‬ ‫إلنشاء‬ 1. Create a select query on which to base the append query. 2. With the select query open in Design view, click Run in the Results group. 3. Review the records returned by the select query. In the Views group, click View, Design View to return the query to Design view. 4. On the Query Tools Design tool tab, click Append in the Query Type group. 5. In the Append dialog box, select the table you want to add the records to. If you click Another Database, enter the file name or click Browse to locate the file, and then click OK. 6. In the Results group, click Run. 7. Click Yes in the messages Access displays to confirm the operation. .1‫ا‬ ‫الستعالم‬ ‫ا‬‫ا‬‫أساسي‬ ‫سيكون‬ ‫الذي‬ ‫و‬ ‫تحديد‬ ‫استعالم‬ ‫أنشئ‬‫اللحاق‬. .2‫التصميم‬ ‫عرض‬ ‫في‬ ‫افتحه‬ ‫التحديد‬ ‫استعالم‬ ‫في‬,‫ع‬ ‫اضغط‬‫لى‬ ‫النتائج‬ ‫مجموعة‬ ‫من‬ ‫تشغيل‬. .3‫تحديد‬ ‫استعالم‬ ‫في‬ ‫استرجاعها‬ ‫تم‬ ‫التي‬ ‫السجالت‬ ‫مراجعة‬.‫م‬‫ن‬ ‫عرض‬ ‫مجموعة‬,‫عرض‬ ‫اضغط‬,‫السترداد‬ ‫التصميم‬ ‫عرض‬ ‫التصميم‬ ‫عرض‬ ‫في‬ ‫االستعالم‬. .4‫االستعالم‬ ‫أدوات‬ ‫في‬ ‫التصميم‬ ‫أدوات‬ ‫تبويب‬ ‫من‬,‫ال‬ ‫اضغط‬‫حاق‬ ‫االستعالم‬ ‫نوع‬ ‫مجموعة‬ ‫في‬. .5‫الحاق‬ ‫حوار‬ ‫مربع‬ ‫من‬,‫السجال‬ ‫إضافة‬ ‫تريد‬ ‫الذي‬ ‫الجدول‬ ‫اختر‬‫ت‬ ‫اليه‬.‫أخرى‬ ‫بيانات‬ ‫قاعدة‬ ‫على‬ ‫ضغطت‬ ‫اذا‬,‫ملف‬ ‫اسم‬ ‫أدخل‬ ‫ا‬ ‫موقع‬ ‫لتحديد‬ ‫استعراض‬ ‫اضغط‬ ‫أو‬ ‫األخرى‬ ‫البيانات‬ ‫قاعدة‬‫لملف‬ ‫موافق‬ ‫اضغط‬ ‫ثم‬. .6‫تشغيل‬ ‫اضغط‬ ‫النتائج‬ ‫مجموعة‬ ‫من‬. .7‫العم‬ ‫لتأكيد‬ ‫األكسيس‬ ‫يظهرها‬ ‫التي‬ ‫الرسالة‬ ‫من‬ ‫نعم‬ ‫اضغط‬‫لية‬.
  • 10. Abdullatif Tarakji abdotarakji@gmail.com Updating and deleting records by using a query ‫استعالم‬ ‫باستخدام‬ ‫السجالت‬ ‫حذف‬ ‫و‬ ‫تحديث‬ • Action queries can also be used to update or delete records. You can use an update query to increase the values in a price field by a specified percentage or to perform date arithmetic (by adding seven days to a date, for example). A delete query lets you remove the set of records that meets criteria you define. You can use a delete query to remove all products marked Discontinued, for example. • To create an update query (or a delete query), start by creating a select query. After the select query is set up as you want it, click Update in the Query Type group. Access adds the Update To row to the design grid. In the Update To row for the field or fields you want to modify, enter the expression that will update the field’s current values. For example, to add 30 days to the ExpirationDate field, you could enter the expression [ExpirationDate]+30 in the Update To row. When you run the update query, Access displays a message box telling you how many rows (records) will be updated. Click Yes to complete the operation. •‫اإلجرائية‬ ‫االستعالمات‬‫يمكن‬‫تستخدم‬ ‫أن‬ ‫أيضا‬‫أ‬ ‫سجالت‬ ‫لتحديث‬‫حذفها‬ ‫و‬. ‫يمكنك‬‫ب‬ ‫السعر‬ ‫حقل‬ ‫في‬ ‫القيم‬ ‫لزيادة‬ ‫تحديث‬ ‫استعالم‬ ‫استخدام‬‫مئوية‬ ‫نسبة‬ ‫الحساب‬ ‫تاريخ‬ ‫ألداء‬ ‫أو‬ ‫محددة‬(‫تاريخ‬ ‫إلى‬ ‫أيام‬ ‫سبعة‬ ‫بإضافة‬ ‫وذلك‬‫على‬ ، ‫المثال‬ ‫سبيل‬.) ‫استعالم‬‫معا‬ ‫تلبي‬ ‫التي‬ ‫السجالت‬ ‫من‬ ‫مجموعة‬ ‫إزالة‬ ‫لك‬ ‫يتيح‬ ‫حذف‬‫يير‬ ‫تحددها‬.‫التي‬ ‫المنتجات‬ ‫جميع‬ ‫إلزالة‬ ‫حذف‬ ‫استعالم‬ ‫استخدام‬ ‫يمكنك‬‫توقف‬ ،‫انتاجها‬‫المثال‬ ‫سبيل‬ ‫على‬. •‫تحديث‬ ‫استعالم‬ ‫إلنشاء‬(‫حذف‬ ‫استعالم‬ ‫أو‬)‫اس‬ ‫إنشاء‬ ‫خالل‬ ‫من‬ ‫تبدأ‬ ،‫تعالم‬ ‫تحديد‬.‫بعد‬‫استعالم‬ ‫إعداد‬‫تحديد‬‫كما‬‫ف‬ ‫تحديث‬ ‫فوق‬ ‫انقر‬ ،‫تريد‬‫ي‬ ‫االستعالم‬ ‫نوع‬ ‫المجموعة‬.‫األكسيس‬ ‫يضيف‬‫إل‬ ‫صف‬ ‫إلى‬ ‫التحديث‬‫شبكة‬ ‫ى‬ ‫تصميم‬.‫تع‬ ‫تريد‬ ‫التي‬ ‫الحقول‬ ‫أو‬ ‫الحقل‬ ‫إلى‬ ‫تحديث‬ ‫الصف‬ ‫في‬‫أدخل‬ ،‫ديلها‬ ‫للحقل‬ ‫الحالية‬ ‫القيم‬ ‫تحديث‬ ‫سيتم‬ ‫الذي‬ ‫التعبير‬.‫سبيل‬ ‫على‬‫إلضافة‬ ،‫المثال‬ 30‫إلى‬ ‫يوما‬‫حقل‬EXPIRATIONDATE،‫التعبير‬ ‫إدخال‬ ‫تستطيع‬ EXPIRATIONDATE +30‫في‬‫إلى‬ ‫تحديث‬ ‫الصف‬.‫استع‬ ‫تشغيل‬ ‫عند‬‫الم‬ ‫يعرض‬ ،‫التحديث‬Access‫مربع‬‫ال‬ ‫تحديث‬ ‫سيتم‬ ‫كيف‬ ‫تخبرك‬ ‫رسالة‬‫عديد‬ ‫الصفوف‬ ‫من‬(‫سجالت‬.)‫العملية‬ ‫إلكمال‬ ‫نعم‬ ‫فوق‬ ‫انقر‬.
  • 11. Abdullatif Tarakji abdotarakji@gmail.com To create and run an update query ‫تحديث‬ ‫استعالم‬ ‫تشغيل‬ ‫و‬ ‫إلنشاء‬ 1. On the Create tab, in the Queries group, click Query Design. 2. In the Show Table dialog box, select the table you want to use in the query. Click Add to add the table to the Query Designer, and then click Close. 3. From the table field list, drag the fields you want to include in the query to the Field row in the query design grid. Or Select fields from the list Access displays when you click in the Field row in the query design grid. 4. Define any selection criteria for the query in the Criteria row. 5. In the Query Type group, click Update. 6. In the Update To row for the field or fields you want to update, enter an expression that calculates the updated values. 7. In the Results group on the Query Tools Design tool tab, click Run. Click Yes in the warning box Access displays to complete the operation. .1‫إنشاء‬ ‫تبويب‬ ‫من‬,‫استعالمات‬ ‫مجموعة‬ ‫في‬,‫االست‬ ‫تصميم‬ ‫عرض‬ ‫اضغط‬‫عالم‬. .2‫جدول‬ ‫إظهار‬ ‫حوار‬ ‫صندوق‬ ‫من‬,‫في‬ ‫استخدامه‬ ‫تريد‬ ‫الذي‬ ‫الجدول‬ ‫اختر‬ ‫االستعالم‬.‫االستعالم‬ ‫مصمم‬ ‫الى‬ ‫جدول‬ ‫إلضافة‬ ‫إضافة‬ ‫اضغط‬,‫اغ‬ ‫اضغط‬‫الق‬. .3‫الجدول‬ ‫حقول‬ ‫قائمة‬ ‫من‬,‫االست‬ ‫الى‬ ‫تضمينها‬ ‫تريد‬ ‫التي‬ ‫الحقول‬ ‫اسحب‬‫في‬ ‫عالم‬ ‫االستعالم‬ ‫تصميم‬ ‫شبكة‬ ‫في‬ ‫الحقل‬ ‫سطر‬. ‫ال‬ ‫سطر‬ ‫في‬ ‫تضغط‬ ‫عندما‬ ‫األكسيس‬ ‫يظهرها‬ ‫التي‬ ‫القائمة‬ ‫من‬ ‫الحقول‬ ‫اختر‬ ‫أو‬‫حقل‬ ‫االستعالم‬ ‫تصميم‬ ‫شبكة‬ ‫في‬. .4‫المعايير‬ ‫سطر‬ ‫في‬ ‫لالستعالم‬ ‫محدد‬ ‫معيار‬ ‫أي‬ ‫عرف‬. .5‫االستعالم‬ ‫نوع‬ ‫مجموعة‬ ‫من‬,‫تحديث‬ ‫اضغط‬. .6‫تحديثها‬ ‫تريد‬ ‫التي‬ ‫الحقول‬ ‫أو‬ ‫للحقل‬ ‫الى‬ ‫تحديث‬ ‫سطر‬ ‫في‬,‫الت‬ ‫أدخل‬‫الذي‬ ‫عبير‬ ‫التحديث‬ ‫قيم‬ ‫يحسب‬. .7‫االستعالم‬ ‫أدوات‬ ‫في‬ ‫التصميم‬ ‫أدوات‬ ‫تبويب‬ ‫في‬ ‫النتائج‬ ‫مجموعة‬ ‫من‬,‫ا‬‫ضغط‬ ‫تشغيل‬.‫إلكمال‬ ‫األكسيس‬ ‫يظهره‬ ‫الذي‬ ‫التحذير‬ ‫صندوق‬ ‫في‬ ‫نعم‬ ‫اضغط‬‫العملية‬.
  • 13. Abdullatif Tarakji abdotarakji@gmail.com To create and run a delete query ‫حذف‬ ‫استعالم‬ ‫تشغيل‬ ‫و‬ ‫إلنشاء‬ 1. On the Create tab, in the Queries group, click Query Design. 2. In the Show Table dialog box, select the table you want to use in the query. Click Add to add the tables to the Query Designer, and then click Close. 3. From the table field list, drag the fields you want to include in the query to the Field row in the query design grid. Or Select fields from the list Access displays when you click in the Field row in the query design grid. 4. In the Query Type group, click Delete. 5. In the Criteria row, specify the criteria for selecting the records you want to delete. 6. In the Results group on the Design tool tab, click Run. Click Yes in the message box Access displays to complete the operation. .1‫إنشاء‬ ‫تبويب‬ ‫من‬,‫استعالمات‬ ‫مجموعة‬ ‫في‬,‫تصمي‬ ‫عرض‬ ‫اضغط‬‫م‬ ‫االستعالم‬. .2‫جدول‬ ‫إظهار‬ ‫حوار‬ ‫صندوق‬ ‫من‬,‫استخدامه‬ ‫تريد‬ ‫الذي‬ ‫الجدول‬ ‫اختر‬ ‫االستعالم‬ ‫في‬.‫االستعال‬ ‫مصمم‬ ‫الى‬ ‫جدول‬ ‫إلضافة‬ ‫إضافة‬ ‫اضغط‬‫م‬,‫ثم‬ ‫اغالق‬ ‫اضغط‬. .3‫الجدول‬ ‫حقول‬ ‫قائمة‬ ‫من‬,‫الى‬ ‫تضمينها‬ ‫تريد‬ ‫التي‬ ‫الحقول‬ ‫اسحب‬ ‫االستعالم‬ ‫تصميم‬ ‫شبكة‬ ‫في‬ ‫الحقل‬ ‫سطر‬ ‫في‬ ‫االستعالم‬. ‫في‬ ‫تضغط‬ ‫عندما‬ ‫األكسيس‬ ‫يظهرها‬ ‫التي‬ ‫القائمة‬ ‫من‬ ‫الحقول‬ ‫اختر‬ ‫أو‬‫سطر‬ ‫االستعالم‬ ‫تصميم‬ ‫شبكة‬ ‫في‬ ‫الحقل‬. .4‫من‬‫االستعالم‬ ‫نوع‬ ‫مجموعة‬,‫اضغط‬‫حذف‬. .5‫المعايير‬ ‫سطر‬ ‫في‬,‫ح‬ ‫تريد‬ ‫التي‬ ‫المحددة‬ ‫للسجالت‬ ‫المعيار‬ ‫حدد‬‫ذفها‬. .6‫االس‬ ‫أدوات‬ ‫في‬ ‫التصميم‬ ‫أدوات‬ ‫تبويب‬ ‫في‬ ‫النتائج‬ ‫مجموعة‬ ‫من‬‫تعالم‬, ‫تشغيل‬ ‫اضغط‬.‫األ‬ ‫يظهره‬ ‫الذي‬ ‫التحذير‬ ‫صندوق‬ ‫في‬ ‫نعم‬ ‫اضغط‬‫كسيس‬ ‫العملية‬ ‫إلكمال‬.
  • 15. Abdullatif Tarakji abdotarakji@gmail.com Viewing data in a crosstab query ‫جدولي‬ ‫استعالم‬ ‫في‬ ‫البيانات‬ ‫عرض‬ • A crosstab query uses Sum, Avg, or another aggregate function to group a query’s results. In Datasheet view, a crosstab query looks something like a spreadsheet or a PivotTable in Microsoft Excel. The query’s data is grouped by two sets of values. One set appears down the left side of the datasheet, and the other appears across the top. • Access provides a wizard you can use to create a crosstab query, or you can use the Query Designer to specify the fields for the query and to define the calculations you want the query to perform. When you add fields to a crosstab query, you specify which fields to use as row headings (you can use as many as three fields), which field appears in the columns across the top, and which field is used for the summary values. •‫جدولي‬ ‫استعالم‬ ‫يستخدم‬‫الحس‬ ‫المتوسط‬ ‫و‬ ،‫الجمع‬ ‫داالت‬،‫ابي‬ ‫أو‬‫لتجميع‬ ‫االخرى‬ ‫التجميع‬ ‫داالت‬‫استعالم‬ ‫نتائج‬.‫في‬‫عرض‬ ‫يبدو‬ ‫جدولي‬ ‫استعالم‬ ،‫البيانات‬ ‫ورقة‬‫كج‬ ‫الشيء‬ ‫بعض‬‫دول‬ ‫أو‬ ‫بيانات‬‫اكس‬ ‫مايكروسوفت‬ ‫برنامج‬ ‫في‬ ‫محوري‬ ‫كجدول‬‫يل‬. ‫تجميع‬ ‫يتم‬‫بيانات‬‫ال‬ ‫من‬ ‫مجموعتين‬ ‫خالل‬ ‫من‬ ‫االستعالم‬‫قيم‬. ‫مجموعة‬‫الجانب‬ ‫من‬ ‫األسفل‬ ‫في‬ ‫تظهر‬ ‫أولى‬‫ورق‬ ‫من‬ ‫األيسر‬‫ة‬ ،‫البيانات‬‫تظهر‬ ‫األخرى‬ ‫المجموعة‬ ‫و‬‫في‬‫أعلى‬. •‫يوفر‬‫استخدامه‬ ‫يمكنك‬ ‫الذي‬ ‫المعالج‬ ‫األكسيس‬‫ا‬ ‫إلنشاء‬‫ستعالم‬ ‫أو‬ ،‫جدولي‬‫يمكن‬‫مجاال‬ ‫لتحديد‬ ‫االستعالم‬ ‫مصمم‬ ‫استخدام‬‫ت‬ ‫االستعالم‬ ‫تريد‬ ‫التي‬ ‫الحسابات‬ ‫وتحديد‬ ‫لالستعالم‬‫ل‬‫تنفيذها‬. ‫عند‬‫تحديد‬ ‫يمكنك‬ ،‫جدولي‬ ‫استعالم‬ ‫إلى‬ ‫حقول‬ ‫إضافة‬‫أي‬ ‫الحقول‬‫التي‬‫كعناوين‬ ‫ستستخدمها‬‫الصفوف‬(‫ا‬ ‫يمكنك‬‫ستخدام‬ ‫حقول‬ ‫ثالثة‬ ‫إلى‬ ‫يصل‬ ‫ما‬)،‫سيظهر‬ ‫حقل‬ ‫أي‬‫ف‬ ‫األعمدة‬ ‫في‬‫ي‬ ،‫أعلى‬‫حقل‬ ‫وأي‬‫الذي‬‫لقيم‬ ‫سيستخدم‬‫التلخيص‬.
  • 16. Abdullatif Tarakji abdotarakji@gmail.com Using the Crosstab Query wizard ‫االستعالم‬ ‫معالج‬ ‫استخدام‬‫الجدولي‬ One approach to creating a crosstab query is to use the Crosstab Query wizard to set up the basic query and then open the query in Design view to modify it. You can select fields from only one table or query when you use the Crosstab Query wizard. To work around this limitation, create a select query that includes fields from the tables you need to use, and then choose the select query as the record source when you work in the Crosstab Query wizard. ‫طريقة‬‫واحدة‬‫إلنشاء‬‫استعالم‬‫جدولي‬‫هو‬‫استخدام‬‫معالج‬‫استعالم‬‫جدولي‬‫إلعداد‬‫االستعالم‬‫األس‬‫اسي‬‫ثم‬ ‫قم‬‫بفتح‬‫االستعالم‬‫في‬‫طريقة‬‫عرض‬‫التصميم‬‫لتعديله‬.‫يمكنك‬‫تحديد‬‫الحقول‬‫من‬‫جدول‬‫و‬‫احد‬‫فقط‬‫أو‬ ‫االستعالم‬‫عند‬‫استخدام‬‫معالج‬‫استعالم‬‫جدولي‬.‫كمحاولة‬‫للتغلب‬‫على‬‫هذا‬،‫القيد‬‫إنشاء‬‫استع‬‫الم‬‫تحديد‬ ‫يتضمن‬‫الحقول‬‫من‬‫الجداول‬‫التي‬‫تحتاج‬‫إلى‬،‫استخدام‬‫ومن‬‫ثم‬‫اختيار‬‫استعالم‬‫تحديد‬‫كمص‬‫در‬‫السجل‬ ‫عند‬‫العمل‬‫في‬‫المعالج‬‫استعالم‬‫جدولي‬.
  • 17. Abdullatif Tarakji abdotarakji@gmail.com In the wizard, you need to identify the following information: • The table or query on which to base the crosstab query. • The field or fields (up to three fields) you want to use as row headings. If you use more than one field, Access sorts the query’s records in the order in which you select the fields. Keep in mind that using more than one field makes the query more difficult to read. • The field you want to use for the column headings. It’s generally good practice to choose a field that includes only a few values for the column heading field. • The interval for grouping date/time information in the column headings (if you choose a Date/Time field for the column heading). You can choose Year, Quarter, Month, Date, or Date/Time. • The field whose value you want to summarize and the function you want to apply. Different functions are available depending on the field’s data type. This page of the wizard also includes the option Yes, Include Row Sums. Select this check box to insert a row heading in the query that uses the same field and function as the field value. A row sum also inserts a column that summarizes the remaining columns. • The name you want to assign to the query. When you click Finish in the Crosstab Query wizard, Access opens the query in Datasheet view. ‫التالية‬ ‫المعلومات‬ ‫على‬ ‫التعرف‬ ‫إلى‬ ‫تحتاج‬ ،‫المعالج‬ ‫في‬: •‫يستند‬ ‫التي‬ ‫االستعالم‬ ‫أو‬ ‫الجدول‬‫إليه‬‫االستعالم‬‫الجدولي‬. •‫الحقول‬ ‫أو‬ ‫الحقل‬(‫حقول‬ ‫ثالثة‬ ‫إلى‬ ‫تصل‬)‫استخدامها‬ ‫تريد‬ ‫التي‬‫كسطر‬‫عناوين‬. ،‫واحد‬ ‫حقل‬ ‫من‬ ‫أكثر‬ ‫تستخدم‬ ‫كنت‬ ‫إذا‬‫سجالت‬ ‫يفرز‬ ‫األكسيس‬ ‫برنامج‬‫اال‬‫ستعالم‬ ‫قمت‬ ‫الذي‬ ‫الترتيب‬ ‫في‬‫الحقول‬ ‫بتحديد‬ ‫به‬.‫اس‬ ‫أن‬ ‫اعتبارنا‬ ‫في‬ ‫نضع‬‫أكثر‬ ‫تخدام‬ ‫صعوبة‬ ‫أكثر‬ ‫االستعالم‬ ‫يجعل‬ ‫واحد‬ ‫حقل‬ ‫من‬‫القراءة‬ ‫في‬. •‫األعمدة‬ ‫لعناوين‬ ‫استخدامه‬ ‫تريد‬ ‫الذي‬ ‫الحقل‬.‫هي‬‫الح‬ ‫الختيار‬ ‫عموما‬ ‫جيدة‬‫قل‬ ‫يشمل‬ ‫الذي‬‫فقط‬‫العمود‬ ‫عنوان‬ ‫لحقل‬ ‫القيم‬ ‫من‬ ‫قليل‬ ‫عدد‬. •‫المعلومات‬ ‫لتجميع‬ ‫الزمني‬ ‫الفاصل‬‫التاريخ‬/‫الوقت‬‫األعمدة‬ ‫عناوين‬ ‫في‬ (‫اخترت‬ ‫إذا‬‫تاريخ‬ ‫حقل‬/‫لعنوان‬ ‫وقت‬‫العمود‬.)‫الرب‬ ،‫السنة‬ ‫اختيار‬ ‫يمكنك‬‫شهر‬ ،‫ع‬ ‫أو‬ ،‫والتاريخ‬‫التاريخ‬/‫الوقت‬. •‫الحقل‬‫تريد‬ ‫الذي‬‫تطبيقها‬ ‫تريد‬ ‫التي‬ ‫الدالة‬ ‫و‬ ‫للجمع‬ ‫قيمته‬.‫تتوفر‬‫داالت‬‫مختلفة‬ ‫الحقل‬ ‫بيانات‬ ‫نوع‬ ‫على‬ ‫اعتمادا‬.‫خ‬ ‫أيضا‬ ‫يتضمن‬ ‫المعالج‬ ‫من‬ ‫الصفحة‬ ‫هذه‬‫يار‬ ‫وتشمل‬ ،‫نعم‬‫المجموع‬ ‫سطر‬.‫إلدراج‬ ‫هذه‬ ‫االختيار‬ ‫خانة‬ ‫حدد‬‫صف‬ ‫عنوان‬‫في‬ ‫االستعالم‬‫نفس‬ ‫يستخدم‬ ‫الذي‬‫كقيمة‬ ‫الدالة‬ ‫و‬ ‫الحقل‬‫الحقل‬.‫المجم‬ ‫سطر‬‫وع‬‫أيضا‬ ‫يدرج‬‫المتبقية‬ ‫األعمدة‬ ‫يلخص‬ ‫الذي‬ ‫العمود‬. •‫االستعالم‬ ‫إلى‬ ‫تعيين‬ ‫تريد‬ ‫الذي‬ ‫االسم‬. ،‫جدولي‬ ‫استعالم‬ ‫المعالج‬ ‫في‬ ‫إنهاء‬ ‫فوق‬ ‫النقر‬ ‫عند‬‫األكسيس‬ ‫برنامج‬‫يفت‬‫االستعالم‬ ‫ح‬ ‫البيانات‬ ‫ورقة‬ ‫عرض‬ ‫طريقة‬ ‫في‬.
  • 18. Abdullatif Tarakji abdotarakji@gmail.com Creating crosstab queries in Design view ‫التصميم‬ ‫عرض‬ ‫في‬ ‫جدولية‬ ‫استعالمات‬ ‫إنشاء‬ • As mentioned earlier, when you use the Crosstab Query wizard, you can base the query on only a single table or a single query. When you work in Design view, you can include multiple tables or queries as the crosstab query’s record source. You can also first create a select query that returns the records you want, and then use that query as the sole record source for the crosstab query. • To set up a crosstab query in Design view, click Query Design on the Create tab, and then use the Show Table dialog box to add the tables and queries you want to use as the record source for the crosstab query. Then, in the Query Type group, click Crosstab. • The design grid for a crosstab query contains a Total row and a Crosstab row (in addition to the Sort, Criteria, and Or rows you work with in other types of queries). You use the Crosstab row to specify which field or fields to use as row headings, which field to use for the query’s column headings, and which field to summarize for the query’s values. In the Total row, you specify the summary function that the query applies. •،‫جدولي‬ ‫استعالم‬ ‫المعالج‬ ‫استخدام‬ ‫عند‬ ،‫سابق‬ ‫وقت‬ ‫في‬ ‫ذكر‬ ‫كما‬‫يم‬‫كن‬ ‫تأسيس‬‫واحد‬ ‫استعالم‬ ‫أو‬ ‫فقط‬ ‫واحد‬ ‫جدول‬ ‫على‬ ‫االستعالم‬.‫العم‬ ‫عند‬‫في‬ ‫ل‬ ‫أو‬ ‫متعددة‬ ‫جداول‬ ‫تضمين‬ ‫يمكنك‬ ،‫التصميم‬ ‫عرض‬ ‫طريقة‬‫استعالم‬‫ات‬ ‫االستعالم‬ ‫سجل‬ ‫كمصدر‬‫الجدولي‬.‫استعال‬ ‫إنشاء‬ ‫أوال‬ ‫أيضا‬ ‫يمكنك‬‫تحديد‬ ‫م‬ ‫كمصدر‬ ‫االستعالم‬ ‫هذا‬ ‫استخدام‬ ‫ثم‬ ‫ومن‬ ،‫تريد‬ ‫التي‬ ‫السجالت‬ ‫إرجاع‬ ‫جدولي‬ ‫لالستعالم‬ ‫الوحيد‬ ‫السجل‬. •‫تص‬ ‫فوق‬ ‫انقر‬ ،‫التصميم‬ ‫عرض‬ ‫طريقة‬ ‫في‬ ‫جدولي‬ ‫استعالم‬ ‫إلنشاء‬‫ميم‬ ‫الح‬ ‫مربع‬ ‫استخدام‬ ‫ثم‬ ‫ومن‬ ،‫إنشاء‬ ‫التبويب‬ ‫عالمة‬ ‫ضمن‬ ‫االستعالم‬‫وار‬ ‫استخدامه‬ ‫تريد‬ ‫الذي‬ ‫واالستعالمات‬ ‫الجداول‬ ‫إلضافة‬ ‫جدول‬ ‫إظهار‬ ‫جدولي‬ ‫لالستعالم‬ ‫السجل‬ ‫كمصدر‬.‫االستعال‬ ‫نوع‬ ‫المجموعة‬ ‫في‬ ،‫ثم‬‫انقر‬ ،‫م‬ ‫جدولي‬ ‫فوق‬. •‫تصميم‬ ‫شبكة‬‫االستعالم‬‫الجدولي‬‫وع‬ ‫اإلجمالي‬ ‫صف‬ ‫على‬ ‫تحتوي‬‫لى‬‫سطر‬ ‫جدولي‬(‫تعم‬ ‫التي‬ ‫الصفوف‬ ‫وأو‬ ،‫معايير‬ ،‫ترتيب‬ ‫إلى‬ ‫باإلضافة‬‫في‬ ‫مع‬ ‫ل‬ ‫من‬ ‫أخرى‬ ‫أنواع‬‫االستعالمات‬.)‫استخدام‬ ‫يمكنك‬‫سطر‬‫لتحديد‬ ‫جدولي‬‫أي‬ ،‫الصفوف‬ ‫عناوين‬ ‫الستخدام‬ ‫حقول‬ ‫أو‬ ‫حقل‬‫الحقل‬‫الذي‬‫ستستخدم‬‫ه‬ ،‫االستعالم‬ ‫في‬ ‫األعمدة‬ ‫لعناوين‬‫والحقل‬‫لتلخيص‬‫قيم‬‫االستعالم‬.‫في‬‫سطر‬ ‫تحديد‬ ‫يمكنك‬ ،‫المجموع‬‫الجمع‬ ‫دالة‬‫التي‬‫تطبق‬‫االستعالم‬.
  • 19. Abdullatif Tarakji abdotarakji@gmail.com To create a crosstab query by using the Crosstab Query wizard ‫االستعالم‬ ‫معالج‬ ‫باستخدام‬ ‫جدولي‬ ‫استعالم‬ ‫إلنشاء‬‫الجدولي‬ 1. On the Create tab, in the Queries group, click Query Wizard. 2. In the New Query dialog box, select Crosstab Query Wizard, and then click OK. 3. On the wizard’s first page, select the table or query on which to base the crosstab query, and then click Next. 4. Specify the field or fields (up to three fields) you want to use as row headings, and then click Next. 5. Select the field you want to use for the column headings, and then click Next. 6. If you chose a Date/Time field for the column heading in step 5, specify the interval for grouping date/time information in the column headings, and then click Next. 7. Select the field whose value you want to summarize and the function you want to apply, and then click Next. 8. Enter a name for the query, and then click Finish. .1‫إنشاء‬ ‫تبويب‬ ‫من‬,‫استعالمات‬ ‫مجموعة‬ ‫في‬, ‫االستعالم‬ ‫معالج‬ ‫على‬ ‫اضغط‬. .2‫جديد‬ ‫استعالم‬ ‫حوار‬ ‫مربع‬ ‫من‬,‫جدولي‬ ‫استعالم‬ ‫معالج‬ ‫اختر‬, ‫موافق‬ ‫اضغط‬ ‫ثم‬. .3‫األولى‬ ‫المعالج‬ ‫صفحة‬ ‫من‬,‫ت‬ ‫الذي‬ ‫االستعالم‬ ‫او‬ ‫الجدول‬ ‫اختر‬‫ريده‬ ‫لالستعالم‬ ‫كأساس‬‫الجدولي‬,‫التالي‬ ‫اضغط‬ ‫ثم‬. .4‫استخدامها‬ ‫تريد‬ ‫التي‬ ‫الحقول‬ ‫او‬ ‫الحقل‬ ‫حدد‬(‫ح‬ ‫لثالثة‬ ‫فقط‬‫قول‬) ‫صف‬ ‫كعناوين‬ ‫استخدامها‬ ‫تريد‬ ‫التي‬,‫التالي‬ ‫اضغط‬ ‫ثم‬. .5‫عمود‬ ‫كعنوان‬ ‫استخدامه‬ ‫تريد‬ ‫الذي‬ ‫الحقل‬ ‫اختر‬,‫الت‬ ‫اضغط‬ ‫ثم‬‫الي‬. .6‫تاريخ‬ ‫حقل‬ ‫اخترت‬ ‫اذا‬/‫الخطوة‬ ‫في‬ ‫عمود‬ ‫كعنوان‬ ‫وقت‬5,‫حدد‬ ‫تاريخ‬ ‫معلومات‬ ‫لمجموعة‬ ‫الزمني‬ ‫الفاصل‬/‫عناوين‬ ‫في‬ ‫وقت‬ ‫التالي‬ ‫اضغط‬ ‫ثم‬ ‫العمود‬. .7‫ت‬ ‫تريد‬ ‫التي‬ ‫الدالة‬ ‫و‬ ‫قيمته‬ ‫تجميع‬ ‫تريد‬ ‫الذي‬ ‫الحقل‬ ‫اختر‬‫طبيقها‬,‫ثم‬ ‫التالي‬ ‫اضغط‬. .8‫لالستعالم‬ ‫اسم‬ ‫أدخل‬,‫انهاء‬ ‫اضغط‬ ‫ثم‬.
  • 22. Abdullatif Tarakji abdotarakji@gmail.com To create a crosstab query in Design view ‫التصميم‬ ‫عرض‬ ‫طريقة‬ ‫في‬ ‫جدولي‬ ‫استعالم‬ ‫إلنشاء‬ 1. On the Create tab, in the Queries group, click Query Design. 2. In the Show Table dialog box, select the tables or queries you want to use in the query. Click Add to add the tables to the Query Designer, and then click Close. 3. From the table field lists, drag the fields you want to include in the query to the Field row in the query design grid. 4. Define any selection criteria for the query in the Criteria row. 5. In the Query Type group, click Crosstab. 6. In the Crosstab row, specify the field or fields you want to use for row headings, column headings, and the query’s values. 7. In the Total row for the value field, select the summary function you want to apply. 8. In the Results group, click Run to display the query’s results. .1‫إنشاء‬ ‫تبويب‬ ‫من‬,‫استعالمات‬ ‫مجموعة‬ ‫في‬, ‫اضغط‬‫االستعالم‬ ‫تصميم‬ ‫عرض‬. .2‫جدول‬ ‫إظهار‬ ‫حوار‬ ‫صندوق‬ ‫من‬,‫في‬ ‫استخدامه‬ ‫تريد‬ ‫الذي‬ ‫الجدول‬ ‫اختر‬ ‫االستعالم‬.‫االستعالم‬ ‫مصمم‬ ‫الى‬ ‫جدول‬ ‫إلضافة‬ ‫إضافة‬ ‫اضغط‬, ‫ثم‬‫اغالق‬ ‫اضغط‬. .3‫الجدول‬ ‫حقول‬ ‫قائمة‬ ‫من‬,‫الى‬ ‫تضمينها‬ ‫تريد‬ ‫التي‬ ‫الحقول‬ ‫اسحب‬ ‫االستعالم‬ ‫تصميم‬ ‫شبكة‬ ‫في‬ ‫الحقل‬ ‫سطر‬ ‫في‬ ‫االستعالم‬. .4‫المعايير‬ ‫سطر‬ ‫في‬ ‫لالستعالم‬ ‫محدد‬ ‫معيار‬ ‫أي‬ ‫عرف‬. .5‫االستعالم‬ ‫نوع‬ ‫مجموعة‬ ‫من‬,‫جدولي‬ ‫اضغط‬. .6‫سطر‬ ‫في‬‫الجدولي‬,‫ك‬ ‫استخدامها‬ ‫تريد‬ ‫التي‬ ‫الحقول‬ ‫او‬ ‫الحقل‬ ‫حدد‬‫عناوين‬ ‫صف‬,‫أعمدة‬ ‫كعناوين‬,‫االستعالم‬ ‫قيم‬ ‫و‬. .7‫القيمة‬ ‫لحقل‬ ‫المجاميع‬ ‫سطر‬ ‫في‬,‫تري‬ ‫التي‬ ‫التلخيص‬ ‫دالة‬ ‫اختر‬‫تطبيقها‬ ‫د‬. .8‫النتائج‬ ‫مجموعة‬ ‫في‬,‫االستعالم‬ ‫نتائج‬ ‫إلظهار‬ ‫تشغيل‬ ‫اضغط‬.
  • 24. Abdullatif Tarakji abdotarakji@gmail.com Managing multiple tables and joins ‫ربطها‬ ‫و‬ ‫متعددة‬ ‫جداول‬ ‫إدارة‬ • As you saw in examples earlier in this chapter, you use the Show Table dialog box to select multiple tables and other queries to include as a query’s record source. To display the Show Table dialog box, you need to open a query in Design view. • A join is a link between two related tables in a query. To retrieve the records you need in a query, you use either an inner join or an outer join. The default join is an inner join. With an inner join, a query returns only records with matching rows in both tables. For example, a query that joins a projects table and a tasks table doesn’t return records for projects that don’t yet have any tasks assigned. This query also doesn’t return records for tasks that aren’t assigned to a specific project. By using an outer join in this query, you could retrieve the set of matching records (projects and their assigned tasks) in addition to projects without tasks (all projects) or tasks without projects (all tasks). •‫يمكنك‬ ،‫سابق‬ ‫وقت‬ ‫في‬ ‫الفصل‬ ‫هذا‬ ‫في‬ ‫األمثلة‬ ‫في‬ ‫رأيتم‬ ‫كما‬‫استخدام‬ ‫متعددة‬ ‫جداول‬ ‫لتحديد‬ ‫الجدول‬ ‫الحوار‬ ‫مربع‬ ‫إظهار‬‫استعالمات‬ ‫و‬ ‫أخرى‬‫االستعالم‬ ‫في‬ ‫سجل‬ ‫كمصدر‬ ‫لتشمل‬.‫الحوا‬ ‫مربع‬ ‫لعرض‬‫ر‬ ‫التص‬ ‫عرض‬ ‫طريقة‬ ‫في‬ ‫استعالم‬ ‫فتح‬ ‫إلى‬ ‫تحتاج‬ ،‫جدول‬ ‫إظهار‬‫ميم‬. •‫بين‬ ‫ارتباط‬ ‫هو‬ ‫الصلة‬‫استعالم‬ ‫في‬ ‫الصلة‬ ‫ذات‬ ‫جدولين‬.‫الست‬‫رداد‬ ‫في‬ ‫إليها‬ ‫تحتاج‬ ‫التي‬ ‫السجالت‬‫االستعالم‬‫إ‬ ‫استخدام‬ ‫يمكنك‬ ،‫ما‬‫صلة‬ ‫داخلية‬‫أو‬‫خارجية‬ ‫صلة‬.‫داخلية‬ ‫صلة‬ ‫هي‬ ‫االفتراضية‬ ‫الصلة‬. ‫السجال‬ ‫فقط‬ ‫باسترجاع‬ ‫يقوم‬ ‫االستعالم‬ ،‫الداخلية‬ ‫الصلة‬ ‫مع‬‫ت‬‫مع‬ ‫في‬ ‫المطابقة‬ ‫السجالت‬‫الجداول‬ ‫من‬ ‫كل‬.‫اس‬ ،‫المثال‬ ‫سبيل‬ ‫على‬‫تعالم‬ ‫يربط‬ ‫الذي‬‫المشاريع‬ ‫جدول‬‫سجالت‬ ‫يرجع‬ ‫ال‬ ‫المهام‬ ‫وجدول‬ ‫الموكلة‬ ‫المهام‬ ‫أي‬ ‫بعد‬ ‫لديها‬ ‫ليس‬ ‫التي‬ ‫لمشروعات‬. ‫هذا‬‫تعي‬ ‫يتم‬ ‫لم‬ ‫التي‬ ‫للمهام‬ ‫سجالت‬ ‫يرجع‬ ‫ال‬ ‫أيضا‬ ‫االستعالم‬‫ينها‬ ‫معين‬ ‫لمشروع‬. ‫الخارجية‬ ‫الصلة‬ ‫باستخدام‬،‫االستعالم‬ ‫هذا‬ ‫في‬‫يمكن‬‫م‬ ‫استرداد‬‫جموعة‬ ‫من‬‫المطابقة‬ ‫السجالت‬(‫إليها‬ ‫المسندة‬ ‫والمهام‬ ‫المشاريع‬)، ‫باإلضافة‬‫المهام‬ ‫دون‬ ‫مشاريع‬ ‫إلى‬(‫المشاريع‬ ‫جميع‬) ‫أو‬‫مشاريع‬ ‫دون‬ ‫المهام‬(‫المهام‬ ‫جميع‬.)
  • 25. Abdullatif Tarakji abdotarakji@gmail.com Whenever you have relationships defined between two tables, Access automatically joins the tables by using the fields in the defined relationships. Access also includes an option named Enable AutoJoin (which appears on the Object Designers page in the Access Options dialog box). This option is enabled by default, so when you create a query that includes tables that aren’t directly related, Access tries to link the tables for you by examining the primary key fields for each table and then looking for a field with the same name and data type in one of the other tables in the query. If Access doesn’t find a match, you can link the tables by selecting the linking field in one table and then dragging it to the field you want to link to in the second table. By joining the tables in this way, you link them for the purposes of designing and running the query. You don’t create a permanent relationship that you can view and edit in the Relationships window. ‫كان‬ ‫اذا‬ ‫فيما‬،‫جدولين‬ ‫بين‬ ‫المعرفة‬ ‫العالقات‬ ‫لديك‬‫برنام‬‫ج‬ ‫الم‬ ‫الحقول‬ ‫باستخدام‬ ‫الجداول‬ ‫يربط‬ ‫ا‬‫ا‬‫تلقائي‬ ‫األكسيس‬‫للعالقة‬ ‫عرفة‬. ‫خيار‬ ‫يتضمن‬ ‫ا‬‫ا‬‫أيض‬ ‫األكسيس‬‫تمكين‬ ‫اسمه‬‫الربط‬ ‫التلقائي‬AutoJoin(‫الذي‬‫على‬ ‫يظهر‬‫الكائن‬ ‫مصمم‬ ‫صفحة‬‫في‬ ‫خيارات‬ ‫الحوار‬ ‫مربع‬‫األكسيس‬.)‫الخيار‬ ‫هذا‬ ‫تمكين‬ ‫يتم‬ ‫ال‬ ‫الجداول‬ ‫يتضمن‬ ‫استعالم‬ ‫إنشاء‬ ‫عند‬ ‫لذلك‬ ،‫افتراضيا‬‫ال‬ ‫تي‬ ‫يحاول‬ ،‫مباشر‬ ‫بشكل‬ ‫ترتبط‬‫ربط‬ ‫األكسيس‬‫الجداول‬‫لك‬‫عن‬ ‫تبح‬ ‫ثم‬ ‫جدول‬ ‫لكل‬ ‫األساسي‬ ‫المفتاح‬ ‫حقول‬ ‫فحص‬ ‫طريق‬‫عن‬ ‫ث‬ ‫الج‬ ‫أحد‬ ‫في‬ ‫البيانات‬ ‫ونوع‬ ‫االسم‬ ‫نفس‬ ‫يحمل‬ ‫الذي‬ ‫الحقل‬‫داول‬ ‫االستعالم‬ ‫في‬ ‫األخرى‬. ،‫الربط‬ ‫يجد‬ ‫لم‬ ‫األكسيس‬ ‫برنامج‬ ‫اذا‬‫ع‬ ‫الجداول‬ ‫ربط‬ ‫يمكنك‬‫ن‬ ‫اختيار‬ ‫طريق‬‫حقل‬‫ال‬ ‫إلى‬ ‫سحبه‬ ‫ثم‬ ‫واحد‬ ‫جدول‬ ‫في‬ ‫الربط‬‫حقل‬ ‫الثاني‬ ‫الجدول‬ ‫في‬ ‫به‬ ‫االرتباط‬ ‫تريد‬ ‫الذي‬. ‫الجداول‬ ‫ربط‬ ‫بواسطة‬‫ألغر‬ ‫ربطها‬ ‫يمكنك‬ ،‫الطريقة‬ ‫هذه‬ ‫في‬‫اض‬ ‫االستعالم‬ ‫وتشغيل‬ ‫تصميم‬.‫دائمة‬ ‫عالقة‬ ‫بإنشاء‬ ‫تقم‬ ‫لم‬‫التي‬ ‫وتحريرها‬ ‫عرضها‬ ‫من‬ ‫تمكنك‬‫العالقات‬ ‫إطار‬ ‫في‬.
  • 26. Abdullatif Tarakji abdotarakji@gmail.com You can create a “left” outer join or a “right” outer join to retrieve all the records from one of the tables. Left and right refer to how the tables are identified in the Join Properties dialog box, which you open by right-clicking the line linking two tables in the Query Designer and then clicking Join Properties. To use an outer join to return all records from one table and matching records from another, click option 2 or 3, depending on which table’s records you want to view. To set up an outer join for tables in a query 1. In the Query Designer, right-click the line linking the tables, and then click Join Properties. 2. In the Join Properties dialog box, click the option for the outer join you want to use. ‫إنشاء‬ ‫يمكنك‬‫خارجية‬ ‫صلة‬«‫يسرى‬»‫أو‬‫خارجية‬ ‫صلة‬«‫يمنى‬» ‫الجداول‬ ‫أحد‬ ‫من‬ ‫السجالت‬ ‫كافة‬ ‫السترداد‬.‫واليمين‬ ‫اليسار‬‫تش‬‫ير‬‫إلى‬ ‫الص‬ ‫خصائص‬ ‫الحوار‬ ‫مربع‬ ‫في‬ ‫الجداول‬ ‫على‬ ‫التعرف‬ ‫كيفية‬،‫لة‬ ‫والتي‬‫بفتحها‬ ‫تقوم‬‫ر‬ ‫خط‬ ‫فوق‬ ‫األيمن‬ ‫الماوس‬ ‫بزر‬ ‫بالنقر‬‫جدولين‬ ‫بط‬ ‫الصلة‬ ‫خصائص‬ ‫فوق‬ ‫النقر‬ ‫ثم‬ ‫االستعالم‬ ‫مصمم‬ ‫في‬.‫الست‬‫صلة‬ ‫خدام‬ ‫خارجية‬‫السترجاع‬‫وا‬ ‫سجل‬ ‫ومطابقة‬ ‫الجدول‬ ‫من‬ ‫السجالت‬ ‫كافة‬‫حد‬ ‫الخيار‬ ‫فوق‬ ‫انقر‬ ،‫آخر‬ ‫من‬2‫أو‬3‫الجدول‬ ‫سجالت‬ ‫على‬ ‫اعتمادا‬ ، ‫تريد‬ ‫الذي‬‫عرضها‬. ‫إنشاء‬‫استعالم‬ ‫في‬ ‫للجداول‬ ‫خارجية‬ ‫صلة‬ .1‫الخط‬ ‫فوق‬ ‫األيمن‬ ‫الماوس‬ ‫بزر‬ ‫انقر‬ ‫االستعالم‬ ‫مصمم‬ ‫في‬‫الذي‬ ‫الصلة‬ ‫خصائص‬ ‫فوق‬ ‫انقر‬ ‫ثم‬ ‫ومن‬ ،‫الجداول‬ ‫بين‬ ‫يربط‬. .2‫لص‬ ‫الخيار‬ ‫فوق‬ ‫انقر‬ ،‫تاريخ‬ ‫خصائص‬ ‫الحوار‬ ‫مربع‬ ‫في‬‫لة‬ ‫استخدامها‬ ‫تريد‬ ‫خارجية‬.