0% found this document useful (0 votes)
20 views3 pages

سوالات دیتابیس

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views3 pages

سوالات دیتابیس

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

1

:‫سواالت دیتابیس‬

.‫هدف از نارمل سازی یک دیتابیس را شرح دهید‬ .1


.‫ را توضیح دهید‬Control and Redo Log Files .2
Control files
The Control File of the database is a binary file that contains a great deal of
database information. The control file contains the database name, data about
the database log files. Oracle cannot function without valid control files

Redo logs are known as transaction journals. Each transaction is recorded


in the redo logs. Redo logs are used in a serial fashion where each
transaction is queued up in the redo log buffers and being written one at a
time into the redo logs. Redo logs as a general rule should be switched
about every thirty minutes. However, you may need to adjust the time up or
down depending on the importance of your data.(coursehero) With modern
Oracle redo log mirroring and with disk array mirroring and various forms of
online disk repair and replacement, the occurrence of redo log corruptions
has dropped to practically zero, so size based on the number of archive
logs you want to apply should the database fail just before your next
backup. (dba-oracle)
.‫ را مفصل تشریح نمایید‬RMAN Backup .3

Oracle RMAN (Oracle Recovery Manager) is a utility built


into Oracle databases to automate backup and recovery; it includes
features not available in third-party backup tools. RMAN was introduced in
Oracle release 8.0.
.‫ کدام ها اند هریک را نام گرفته تشریح کنید‬DML statements .4
.‫ به چند دسته تقسیم میگردد با مثال واضح سازید‬Sub query .5

Types of Subqueries
Single Row Sub Query: Sub query which returns single row output. They
mark the usage of single row comparison operators, when used in WHERE
conditions.

SELECT first_name, salary, department_id


2

FROM employees
WHERE salary = (SELECT MIN (salary)
FROM employees);

Multiple row sub query: Sub query returning multiple row output. They
make use of multiple row comparison operators like IN, ANY, ALL. There can
be sub queries returning multiple columns also.

SELECT first_name, department_id


FROM employees
WHERE department_id IN (SELECT department_id
FROM departments
WHERE LOCATION_ID = 100)

.‫ را توضیح داده سپس اقسام آنرا بنوسید‬Join .6

A JOIN clause is used to combine rows from two or more tables, based on a
related column between them.

 (INNER) JOIN: Returns records that have matching values in both tables
 LEFT (OUTER) JOIN: Return all records from the left table, and the
matched records from the right table
 RIGHT (OUTER) JOIN: Return all records from the right table, and the
matched records from the left table
 FULL (OUTER) JOIN

.‫ چیست؟ تشریح نمایید‬Trigger .7


‫ را بنوسید که که لیست کارمندان را نشان دهد که که وظایف شان با‬Query .8
.‫وظیفه احمد در جدول کارمندان یکسان باشد‬
.‫ را تشریح کرده و اقسام آنرا نیز توضیح دهید‬View .9
3

Types of views in SQL: horizontal,


vertical, row and column, grouped
by, joined

Types of views in SQL:

1) Horizontal view:

2) Vertical view:

3) Row and column views:

4) Grouped by view:

5) Joined view:

.‫ چیست مفصل شرح دهید‬Data dictionary .10

:‫ مفاهیم ذیل را توضیح دهید‬. 11


Attribute)‫د‬ Candidate Key)‫ج‬ Weak Entity )‫ب‬ Null Value )‫الف‬
‫) را به شکل دیاگرام صرف رسم نمایید‬Database Architecture( ‫اجزای اصلی‬ .11

Conceptual - represents all business entities.

Logical - represents the logic of how entities are related.

Physical - the realization of the data mechanisms for a specific type of


functionality.

You might also like