إنشاء الاستعلامات الإجرائية
تشرح الأقسام الثلاثة المقبلة أنواع مختلفة من الاستعلامات الإجرائية:
استعلام تكوين جدول، استعلام إلحاقي، و استعلامات التحديث و الحذف.
غالبا ما تستخدم الاستعلامات الإجرائية للمساعدة في إدارة السجلات في قاعدة
البيانات. على سبيل المثال، يمكنك استخدام استعلام تحديد لاسترداد السجلات
لجميع المنتجات المتوقفة. يمكنك استخدام-تكوين جدول أو استعلام إلحاقي لأرشفة
تلك السجلات، ثم قم بتشغيل استعلام حذف على جدول المنتجات لإزالة سجلات
لتلك المنتج��ت.
Manage relationships and keys
إدارة العلاقات و المفاتيح.
• برنامج الأكسيس هو نظام إدارة قواعد البيانات العلائقية
• العلاقات بين الجداول تستخدم في هذا النظام للحفاظ على التكاملية في البيانات و لتقليل الحاجة لتخزين بيانات مكررة.
-------
تأتي فاعلية نظام قاعدة البيانات العلائقية من القدرة على العثور على المعلومات المخزنة في جداول منفصلة بسرعة وتجميعها معا باستخدام الاستعلامات.
لكي يتم ذلك، يجب أن يحتوي كل جدول على حقل أو مجموعة حقول تقوم بتعريف كل سجل مخزن في الجدول بشكل فريد.
و تسمى هذه المعلومة المفتاح الأساسي Primary Key للجدول.
متى قمت بتعيين مفتاحا أساسيا لحقل في الجدول، يمنع Access إدخال أي قيم مكررة أو قيم خالية Null في الحقول التي يعين لها مفتاح الأساسي.
Format tables
تنسيق الجداول
يغطي هذا القسم مفاهيم مختلفة بكيفية تنسيق جدول.
التنسيق هنا ليس نوع, لون, حجم, نمط, و تأثيرات
أخرى لعرض مظهر البيانات. برنامج الأكسيس يؤمن
أدوات التنسيق ولكن غالبا نستخدم هذا التنسيقات للنماذج
و التقارير. تشمل هذه التنسيقات كتفعيل مثل إخفاء او
تجميد الحقول لجعل سهولة التعامل و لعرض أسهل
لقاعدة البيانات الكبيرة, و لإضافة سطر الجمع الكلي
لإظهار نتائج القيم في الحقول.
يستعرض ايضاً هذا القسم الخيارات لتنسيق البيانات, مثل استخدام تنسيقات التاريخ القصير أو التاريخ الطويل في الحقل.
تنسيق التقارير
يمكنك استخدام مجموعة متنوعة من الأدوات والتقنيات لتنسيق التقرير وعناصر التحكم
وغيرها من العناصر )مثل الصور( التي تشتمل في التقرير.
على سبيل المثال، يمكنك إضافة صورة خلفية، وتطبيق سمة على التقرير، أو ترتيب البيانات
في التقرير في عمودين أو أكثر. يصف هذا القسم هذا وغيرها من مفاهيم تنسيق التقرير.
Navigate through databases
التنقل من خلال قاعدة البيانات
Working with Access views
العمل مع طريقة عرض البرنامج
Finding records
إيجاد السجلات
Configuring the Navigation pane
تكوين نافذة جزء التنقل
Building navigation forms
بناء نماذج التنقل
إنشاء التقارير
يمكنك استخدام التقارير لإنشاء طريقة عرض البيانات الخاصة بك،
لتجميع وتلخيص البيانات، وتوفير البيانات في تنسيق مناسب للمشاركة،
للطباعة، وللعروض التقديمية. كما هو الحال مع النماذج، بناء تقارير
بإضافة الحقول من جدول واحد أو أكثر أو من استعلام. يمكنك تنسيق
التقارير للتأكيد على البيانات وتعزيز مظهرها عن طريق إضافة
الرسومات، الشعارات، العناوين، وتسميات توضيحية.
تعيين عناصر تحكم التقرير
يصف هذا القسم كيفية العمل مع الحقول وعناصر التحكم في التقرير. يشرح كيفية إضافة
عناصر التحكم، واختيار الحقول لتجميع وفرز السجلات، وكيفية إدارة مصدر البيانات في
التقرير. يغطي هذا القسم أيضا بعض من خصائص التقرير وعنصر التحكم التي يمكن تعيينها
من صفحة الخصائص.
The document describes MarketLine's Advantage platform, which provides subscribers access to company, industry, financial and country data from a single interactive interface. Advantage allows users to search across the entire data library and access information from anywhere via keyword searches. Much of the data is presented graphically so it can be easily integrated into projects and presentations. The platform also includes tools to extract data into Excel, view methodologies, contact analysts for assistance, and access additional help features.
- SQL code is loaded into RAM for parsing during a hard parse, while a soft parse does not require reloading into RAM.
- Excessive hard parsing can occur when the shared pool size is too small or queries contain non-reusable SQL statements without bind variables.
- Using bind variables rather than concatenating values into the SQL statement allows for soft parsing rather than hard parsing, improving performance by reducing parsing time and memory usage.
This document discusses database performance tuning and query optimization. It covers basic concepts like minimizing I/O operations to improve performance. The key phases of query processing are parsing, execution, and fetching. During parsing, the optimizer determines the most efficient execution plan. Indexes are also important for performance, as they allow more efficient data access than scanning rows. The document provides an overview of how a database management system processes queries and some common techniques for performance tuning.
1) The document describes the basic commands of SQL including data types, data definition language (DDL) for creating and modifying tables, data manipulation language (DML) for insert, update, delete statements, and select statements with functions and parameters.
2) It also covers SQL security commands for creating users and granting/revoking permissions, and transaction management with commit and rollback.
3) Examples are provided for creating tables with columns, primary keys, foreign keys and check constraints, and performing queries, updates, deletes and transactions on data.
Azure SQL Database is just SQL Server under the covers. However, there are some distinctive differences and new functionality. This session covers some of the new tools and methods available to help you make you Azure SQL Database Run as fast as possible.
This document discusses how to optimize performance in SQL Server. It covers:
1) Why performance tuning is necessary to allow systems to scale, improve performance, and save costs.
2) How to optimize SQL Server performance by addressing CPU, memory, I/O, and other factors like compression and partitioning.
3) How to optimize the database for performance through techniques like schema design, indexing, locking, and query optimization.
SQL Server Tuning to Improve Database PerformanceMark Ginnebaugh
SQL Server tuning is a process to eliminate performance bottlenecks and improve application service. This presentation from Confio Software discusses SQL diagramming, wait type data, column selectivity, and other solutions that will help make tuning projects a success, including:
•SQL Tuning Methodology
•Response Time Tuning Practices
•How to use SQL Diagramming techniques to tune SQL statements
•How to read executions plans
Determining the root cause of performance issues is a critical task for Operations. In this webinar, we'll show you the tools and techniques for diagnosing and tuning the performance of your MongoDB deployment. Whether you're running into problems or just want to optimize your performance, these skills will be useful.
This document provides an overview of database performance tuning with a focus on SQL Server. It begins with background on the author and history of databases. It then covers topics like indices, queries, execution plans, transactions, locking, indexed views, partitioning, and hardware considerations. Examples are provided throughout to illustrate concepts. The goal is to present mostly vendor-independent concepts with a "SQL Server flavor".
تنسيق النماذج
يشرح هذا القسم بعض ميزات التنسيق التي يمكنك
تطبيقها على النموذج. على سبيل المثال، وهو يغطي
كيفية تعديل ترتيب الجدولة الترتيب الذي يمكنك
الانتقال بين عناصر التحكم عن طريق الضغط على
زر الجدولة TAB .
فهو يصف كيفية تطبيق سمة على النموذج، وكيفية
إدراج الصور، وكيفية تعديل الخلفية للنموذج.
يغطي هذا القسم أيضا خصائص النموذج المتعلقة
بفرز السجلات في النموذج وطباعة النموذج.
استخدام و تجميع الحقول المحسوبة داخل الاستعلام
كما هو موضح سابقا في هذا الفصل، استعلامات تجعلك
تختار السجلات المحددة وتنفيذ عمليات مثل تحديث، حذف، أو إلحاق السجلات.
يشرح هذا القسم كيف يمكن للاستعلامات أيضا تلخيص وتجميع البيانات.
على سبيل المثال، يمكنك استخدام استعلام لإظهار متوسط قيمة في حقل أو لحساب عدد السجلات التي تلبي معايير محددة.
يقدم هذا الفصل أيضا أمثلة على كيفية إنشاء احتساب حقل الحقل الذي بياناته مستمدة من القيم في حقول أخرى ولكن لا يتم تخزينها في قاعدة البيانات نفسها.
في نهاية هذا القسم يشرح المزيد عن التعبيرات وعن مجموعة من مشغلات يمكنك استخدامها في برنامج الأكسيس لتحديد معايير الاستعلام.
تعديل الاستعلامات
بعد إعدادك للاستعلام يمكنك تعديله بتغيير أو إعادة ترتيب الحقول ,إظهار و إخفاء حقول الاستعلام, و فرز نتائج الاستعلام.
يمكنك أيضا تنسيق حقول الاستعلام.
يشرح هذا القسم بعض الطرق التي تمكنك من تعديل الاستعلام.
تعيين عناصر تحكم النموذج
يوضح هذا القسم أكثر حول العمل مع عناصر تحكم
النموذج. فهو يصف كيفية إضافة, نقل, و حذف عناصر
التحكم والخصائص التي يمكن استخدامها لتحديد شكل
عنصر التحكم وعمله.
يغطي هذا القسم أيضا أكثر حول العمل مع عناصر
التحكم في عرض التخطيط وعرض التصميم والخيارات
لترتيب و تنسيق عناصر التحكم من الشريط. وبالإضافة
إلى ذلك, فهو يصف كيفية تعديل مصادر البيانات
للنماذج و عناصر التحكم وكيفية العمل مع التسميات.
سلسلة الكامل / 28 / الكامل في أحاديث خُلقت المرأة من ضلع أعوج فدارها تعش بها ...Ahmed Hosam
سلسلة الكامل / كتاب رقم ( 28 ) / ( الكامل في أحاديث خُلقت المرأة من ضلع أعوج فدارها تعش بها ولن يفلح قوم ولوا أمرهم امرأة وما في معناه / 50 حديث ) ، لمؤلفه د/ عامر الحسيني
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لص الخيار فوق انقر ،تاريخ خصائص الحوار مربع فيلة
استخدامها تريد خارجية.