مفاهيم SQL العامة

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

ما هي اللغة المسؤولة عن التحكم في المعاملات ومعالجة البيانات؟

  • SQL (correct)
  • C++
  • C
  • Java

أي من اللغات التالية تدعم معالجة البيانات بشكل أساسي؟

  • Java
  • C
  • SQL (correct)
  • C++

أي لغة تستخدم بشكل رئيسي للتعامل مع بيانات قواعد البيانات؟

  • Java
  • C++
  • SQL (correct)
  • C

ما هي اللغة الأكثر شيوعاً لكتابة استعلامات البيانات؟

<p>SQL (D)</p> Signup and view all the answers

أي من اللغات التالية ليس لها علاقة مباشرة بمعالجة البيانات؟

<p>C (D)</p> Signup and view all the answers

ما هي مجموعة البيانات الناتجة من عمليات ربط تمت بين جدولين أو أكثر؟

<p>الربط Join (A)</p> Signup and view all the answers

ما هو الرمز الذي يرمز له بـ 'و' في الجبر العلاقي؟

<p>AND (B)</p> Signup and view all the answers

أي من الخيارات التالية لا تمثل عمليات على مجموعات البيانات؟

<p>توزيع (B)</p> Signup and view all the answers

أي من الجمل التالية تشير إلى عملية الربط في الجبر العلاقي؟

<p>التفاعل بين بيانات من جداول مختلفة (D)</p> Signup and view all the answers

في الجبر العلاقي، ماذا تعني عملية 'التقاطع'؟

<p>اختيار العناصر المشتركة فقط (A)</p> Signup and view all the answers

ما هي الوظيفة التي يقوم بها 'الفرق' في قواعد البيانات؟

<p>إرجاع السجلات غير المتطابقة في كل جدول (D)</p> Signup and view all the answers

أي من الخيارات أدناه يشير إلى إرجاع كل السجلات من كلا الجدولين، بما في ذلك المكررة؟

<p>الاتحاد (A)</p> Signup and view all the answers

عند استخدام 'الربط Join'، ما الذي يمكنك توقعه في النتائج؟

<p>مجموعات من السجلات تشمل جميع السجلات في الجدولين (A)</p> Signup and view all the answers

ما هي نتيجة استخدام 'التقاطع' في العمليات على الجداول؟

<p>إرجاع السجلات المتطابقة فقط بين الجدولين (A)</p> Signup and view all the answers

أي من العمليات التالية يعيد السجلات من جدول واحد فقط؟

<p>الفرق (D)</p> Signup and view all the answers

Flashcards

التقاطع

مجموعة السجلات الموجودة في كل من الجدولين.

الإتحاد

مجموعة السجلات الموجودة في أحد الجدولين أو كلاهما.

الفرق

مجموعة السجلات الموجودة في جدول واحد فقط وليس في الآخر.

الربط Join

عملية دمج البيانات من جدولين أو أكثر بناءً على علاقة مشتركة.

Signup and view all the flashcards

الفرق

السجلات الموجودة في جدول و غير موجودة في الجدول الآخر

Signup and view all the flashcards

AND 'و'

عبارة تستخدم للربط بين جملتين في الجبر العلاقي.

Signup and view all the flashcards

رمز 'AND' 'و'

رمز يستخدم للتعبير عن 'و' في الجبر العلاقي.

Signup and view all the flashcards

لغة تعريف البيانات

لغة تستخدم لتعريف بنية البيانات وتنظيمها، أي لتحديد أنواع البيانات والعلاقات بينها.

Signup and view all the flashcards

لغة معالجة البيانات

لغة تستخدم لمعالجة البيانات، أي تنفيذ العمليات الحسابية والمنطقية عليها.

Signup and view all the flashcards

لغة التحكم في البيانات

لغة تستخدم للتحكم في تنفيذ برامج الكمبيوتر، مثل تحديد تسلسل العمليات وفرعها.

Signup and view all the flashcards

لغة التحكم في المعاملات

لغة تستخدم للتحكم في تنفيذ المعاملات، مثل التأكد من اتّساق البيانات في قاعدة البيانات.

Signup and view all the flashcards

Study Notes

General SQL Concepts

  • SQL (Structured Query Language) is a specialized programming language for database management.
  • SQL is used to manage data within databases.
  • SQL is categorized into Data Definition Language (DDL), Data Manipulation Language (DML), Data Control Language (DCL), and Transaction Control Language (TCL).

Data Definition Language (DDL)

  • DDL commands are used to define, modify, and create the structure of a database.
  • DDL is used to create databases and tables.

Data Manipulation Language (DML)

  • DML commands are used for data manipulation such as insertion, updating, deletion, and retrieval of data.
  • Operations like insert, update, delete, can be performed on data within a database.

Data Control Language (DCL)

  • DCL commands control access permissions to database content.

Transaction Control Language (TCL)

  • TCL statements control transactions.

SQL Syntax

  • Semicolons (;) are used to terminate SQL statements.
  • Commas (,) separate values within a list.
  • Column names containing spaces are enclosed in square brackets ([ ]).

Data Constraints

  • NOT NULL Constraint: Prevents empty values in a column.
  • UNIQUE Constraint: Ensures unique entries in a column.

Creating a Database

  • The general format for creating a database is CREATE DATABASE database_name.

Creating a Table

  • The general format for creating a table is CREATE TABLE table_name and includes defining the columns and their data types.

Other Important Concepts

  • SELECT statement: Retrieve data.
  • FROM clause: Indicates the table that is the source of the data in the SELECT clause.
  • WHERE clause: Filters rows in the SELECT statement based on a condition.
  • GROUP BY clause: Groups rows that have the same values in one or more columns.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

More Like This

SQL Database Concepts Quiz
5 questions
Introduction to SQL Concepts
10 questions
Database Concepts and Data Types
21 questions
Conceptos de SQL y Estructuras de Datos
40 questions
Use Quizgecko on...
Browser
Browser