## GUJARAT TECHNOLOGICAL UNIVERSITY

## DIPLOMA IN ENGINEERING - SEMESTER - III EXAMINATION - WINTER 2025

Subject Code: DI03000031

Date: 08-12-2025

Subject Name: Relational Database Management System

Time: 10:30 AM TO 01:00 PM

Instructions:

1. Attempt all questions.

2. Make Suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
4. Use of simple calculators and non-programmable scientific calculators are permitted.

5. English version is authentic.

ે

|     |       |                                                                                                                                                                                                                                                                        | Marks   |
|-----|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|
| Q.1 | (a)   | Differentiate Data and Information with example.                                                                                                                                                                                                                       | 03      |
|     | ( અ ) | ડે ટા અને ઇGLYPH<c=8,font=/QCCAAA+Lohit-Gujarati>ફોમGLYPH<c=12,font=/QCCAAA+Lohit-Gujarati>શન વGLYPH<c=15,font=/QCCAAA+Lohit-Gujarati>ચેનો તફાવત ઉદાહરણ સાથે સમGLYPH<c=25,font=/QCCAAA+Lohit-Gujarati>વો.                                                                         | ૦૩      |
|     | (b)   | What is Data Dictionary? Explain Components of Data Dictionary and Differentiate Active and Passive Data Dictionary.                                                                                                                                                   | 04      |
|     | ( બ ) | ડે ટા િડGLYPH<c=31,font=/QCCAAA+Lohit-Gujarati>શનરી શું છે ?  ડે ટા િડGLYPH<c=31,font=/QCCAAA+Lohit-Gujarati>શનરીના ઘટકો સમGLYPH<c=25,font=/QCCAAA+Lohit-Gujarati>વો અને એિGLYPH<c=31,font=/QCCAAA+Lohit-Gujarati>ટવ અને પે￹સવ ડે ટા િડGLYPH<c=31,font=/QCCAAA+Lohit-Gujarati>શનરીનો તફાવત જણાવો. | ૦૪      |
|     | (c)   | List DDL Commands. Explain any three DDL Commands with Syntax and Example.                                                                                                                                                                                             | 07      |
|     | ( ક ) | DDL  કમાGLYPH<c=8,font=/QCCAAA+Lohit-Gujarati>ડની યાદી બનાવો. કોઈપણ -ણ  DDL  કમાGLYPH<c=8,font=/QCCAAA+Lohit-Gujarati>ડ ￹સGLYPH<c=8,font=/QCCAAA+Lohit-Gujarati>ટ GLYPH<c=31,font=/QCCAAA+Lohit-Gujarati>સ અને ઉદાહરણ સાથે સમGLYPH<c=25,font=/QCCAAA+Lohit-Gujarati>વો.              | ૦૭      |
|     | OR    |                                                                                                                                                                                                                                                                        |         |
|     | (c)   | List DML Commands. Expalin any three DML Commands with syntax and Example.                                                                                                                                                                                             | 07      |
|     | ( ક ) | DML  કમાGLYPH<c=8,font=/QCCAAA+Lohit-Gujarati>ડની યાદી બનાવો. કોઈપણ -ણ  DML  કમાGLYPH<c=8,font=/QCCAAA+Lohit-Gujarati>ડ ￸સટેGLYPH<c=31,font=/QCCAAA+Lohit-Gujarati>સ અને ઉદાહરણ સાથે સમGLYPH<c=25,font=/QCCAAA+Lohit-Gujarati>વો                                                     | ૦૭      |
| Q.2 | (a)   | Explain Like Operator with Example.                                                                                                                                                                                                                                    | 03      |
|     | ( અ ) | Like  ઓપરેટર ઉદાહરણ સાથે સમGLYPH<c=25,font=/QCCAAA+Lohit-Gujarati>વો.                                                                                                                                                                                                       | ૦૩      |
|     | (b)   | Explain Group by and Having with Example.                                                                                                                                                                                                                              | 04      |
|     | ( બ ) | Group by  અને   Having  ઉદાહરણ સાથે સમGLYPH<c=25,font=/QCCAAA+Lohit-Gujarati>વો.                                                                                                                                                                                            | ૦૪      |

અને

ઉદાહરણ

સાથે

સમGLYPH&lt;c=25,font=/QCCAAA+Lohit-Gujarati&gt;વો.

Total Marks: 70

- (c) Solve Following Queries for given Tables.
- Students(StudentID, Name, Age, DepartmentID, Marks, City)
- Departments(DepartmentID, DepartmentName, Location)
1.  Display student names in uppercase.
2.  List Name of students which belongs to 'Civil' Department
3.  Display Minimum and Maximum Marks from student table
4.  List all the students who got above average marks.
5.  Display Student name along with Department Name.
6.  Give Department wise student count.
7.  List all the students whose Name starts with 'A'.
- ( ક ) આપેલ ટે બ3સ માટે નીચેની GLYPH&lt;c=31,font=/QCCAAA+Lohit-Gujarati&gt;વેરી સો3વ કરો.

Students(StudentID, Name, Age, DepartmentID, Marks, City)

Departments(DepartmentID, DepartmentName, Location)

૧. િવ5ાથ6ઓના નામ કે ￵પટલ અ8રોમાં દશા9વો.
૨. ' ￹સિવલ ' િવભાગના િવ5ાથ6ઓના નામની યાદી બનાવો.
૩. િવ5ાથ6 ટે બલમાંથી લઘુ=મ અને મહ=મ ગુણ ( માક9 ) દશા9વો.
૪. સરેરાશથી વધુ ગુણ મેળવનારા બધા િવ5ાથ6ઓની યાદી બનાવો.
૫. િવભાગના નામ સાથે િવ5ાથ6નું નામ દશા9વો.
૬. િવભાગવાર િવ5ાથ6ઓની સંBયા આપો.

૭.

'A'

થી

શC

થતા

બધા

િવ5ાથ6ઓની

યાદી

બનાવો.

## OR

Explain Between Operator with Example.

Between

ઓપરેટર

ઉદાહરણ

સાથે

સમGLYPH&lt;c=25,font=/QCCAAA+Lohit-Gujarati&gt;વો.

Explain Order By Clause with Example.

Order By Clause

ઉદાહરણ

સાથે

સમGLYPH&lt;c=25,font=/QCCAAA+Lohit-Gujarati&gt;વો.

Solve Following Queries for given Tables.

Employees(EmpID, EmpName, Salary, DeptID, JoinDate, City)

Departments(DeptID, DeptName, Location)

1.  Display employee names in Lowercase.
2.  List Name of employees which belongs to 'Finance' Department
3.  Display average Salary from Employees table.
4.  Give Experience of all employees based on JoinDate.
5.  Display Employee Name along with Department Name.
6.  Give Department wise Maximum Salary.
7.  List all the Employees whose Name ends with 'K'.

(a)

(

અ

(b)

(

બ

)

(c)

)

૦૭

03

૦૩

04

૦૪

07

|     | ( ક )   | આપેલા ટે બ3સ માટે નીચેની GLYPH<c=31,font=/QCCAAA+Lohit-Gujarati>વેરી સો3વ કરો.                                                                                                                                                                                  | ૦૭   |
|-----|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------|
| Q.3 | (a)     | Define Following Functions with Example. (1) MONTHS_BETWEEN  (2) LAST_DAY (3) NEXT_DAY                                                                                                                                                              | 03   |
|     | ( અ )   | નીચેના ફં GLYPH<c=31,font=/QCCAAA+Lohit-Gujarati>શનને ઉદાહરણ સાથે FયાBયાિયત કરો. (1) MONTHS_BETWEEN (2) LAST_DAY (3) NEXT_DAY                                                                                                                                   | ૦૩   |
|     | (b)     | Describe ANSI SPARC Architecture with Neat Diagram.                                                                                                                                                                                                 | 04   |
|     | ( બ )   | સુઘડ આકૃ￵ત સાથે  ANSI SPARC  આHકટેGLYPH<c=31,font=/QCCAAA+Lohit-Gujarati>ચરનું વણ9ન કરો.                                                                                                                                                                    | ૦૪   |
|     | (c)     | Explain 2NF with Example.                                                                                                                                                                                                                           | 07   |
|     | ( ક )   | 2NF  ને ઉદાહરણ સાથે સમGLYPH<c=25,font=/QCCAAA+Lohit-Gujarati>વો.                                                                                                                                                                                         | ૦૭   |
|     |         | OR                                                                                                                                                                                                                                                  |      |
|     | (a)     | Define Following Functions With Example. (1) LENGTH (2) SUBSTR (3) LTRIM                                                                                                                                                                            | 03   |
|     | ( અ )   | નીચેના ફં GLYPH<c=31,font=/QCCAAA+Lohit-Gujarati>શનને ઉદાહરણ સાથે FયાBયાિયત કરો. (1) LENGTH (2) SUBSTR (3) LTRIM                                                                                                                                                | ૦૩   |
|     | (b)     | Explain GRANT and REVOKE with Example.                                                                                                                                                                                                              | 04   |
|     | ( બ )   | GRANT  અને  REVOKE  ને ઉદાહરણ સાથે સમGLYPH<c=25,font=/QCCAAA+Lohit-Gujarati>વો.                                                                                                                                                                           | ૦૪   |
|     | (c)     | Explain 3NF with Example.                                                                                                                                                                                                                           | 07   |
|     | ( ક )   | 3NF  ને ઉદાહરણ સાથે સમGLYPH<c=25,font=/QCCAAA+Lohit-Gujarati>વો.                                                                                                                                                                                         | ૦૭   |
| Q.4 | (a)     | Explain Full Functional Dependency and Partial Functional Dependency with Example.                                                                                                                                                                  | 03   |
|     | ( અ )   | ફુ લ ફં GLYPH<c=31,font=/QCCAAA+Lohit-Gujarati>શનલ ડીપેGLYPH<c=8,font=/QCCAAA+Lohit-Gujarati>ડનસી અને પાશ6યલ ફં GLYPH<c=31,font=/QCCAAA+Lohit-Gujarati>શનલ ડીપેGLYPH<c=8,font=/QCCAAA+Lohit-Gujarati>ડનસી ઉદાહરણ સાથે સમGLYPH<c=25,font=/QCCAAA+Lohit-Gujarati>વો. | ૦૩   |
|     | (b)     | Explain Check Constraint with Example.                                                                                                                                                                                                              | 04   |
|     | ( બ )   | ચેક કGLYPH<c=8,font=/QCCAAA+Lohit-Gujarati>Iટ JKટને ઉદાહરણ સાથે સમGLYPH<c=25,font=/QCCAAA+Lohit-Gujarati>વો.                                                                                                                                              | ૦૪   |
|     | (c)     | Explain Foreign Key Constraint in detail with Example.                                                                                                                                                                                              | 07   |
|     | ( ક )   | ઉદાહરણ સાથે ફોરેન કી કGLYPH<c=8,font=/QCCAAA+Lohit-Gujarati>Iટ JKટને િવગતવાર સમGLYPH<c=25,font=/QCCAAA+Lohit-Gujarati>વો.                                                                                                                                     | ૦૭   |
|     |         | OR                                                                                                                                                                                                                                                  |      |
|     | (a)     | Explain Advantages and Disadvantages of Normalization.                                                                                                                                                                                              | 03   |

| ( અ )   | નોમ9લાઇઝેશનના ફાયદા અને ગેરફાયદા સમGLYPH<c=25,font=/QCCAAA+Lohit-Gujarati>વો.                                                                                                                 | ૦૩   |
|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------|
| (b)     | Explain Primary Key Constraint with Example.                                                                                                                                       | 04   |
| ( બ )   | Mાઇમરી કી કં સટJે GLYPH<c=8,font=/QCCAAA+Lohit-Gujarati>ટ ઉદાહરણ સાથે સમGLYPH<c=25,font=/QCCAAA+Lohit-Gujarati>વો.                                                                          | ૦૪   |
| (c)     | What is View? Explain Type, Restrictions and Advantages of View. 07                                                                                                                |      |
| ( ક )   | Fયૂ શું છે ?  Fયૂના Mકાર ,  M￵તબંધો અને ફાયદા સમGLYPH<c=25,font=/QCCAAA+Lohit-Gujarati>વો.                                                                                                      | ૦૭   |
| Q.5 (a) | Explain  Generic PL/SQL block.                                                                                                                                                     | 03   |
| ( અ )   | Generic PL/ SQL  Oલોક સમGLYPH<c=25,font=/QCCAAA+Lohit-Gujarati>વો.                                                                                                                   | ૦૩   |
| (b)     | Explain Conditional Control in PL/SQL with Example.                                                                                                                                | 04   |
| ( બ )   | PL/SQL  માં કિGLYPH<c=8,font=/QCCAAA+Lohit-Gujarati>ડશનલ કં ટ J ોલને ઉદાહરણ સાથે સમGLYPH<c=25,font=/QCCAAA+Lohit-Gujarati>વો.                                                                | ૦૪   |
| (c)     | What is Cursor? Explain Explicit Cursor, Steps for creating Explicit cursor, Attribute of Explicit cursor. write an example program.                                               | 07   |
| ( ક )   | કસ9ર શું છે ? Explicit  કસ9ર , Explicit  કસ9ર બનાવવાના પગલાં ,  Explicit  કસ9ર ના એટJીOયુટ સમGLYPH<c=25,font=/QCCAAA+Lohit-Gujarati>વો. એક ઉદાહરણ MોPામ લખો.                                       | ૦૭   |
|         | OR                                                                                                                                                                                 |      |
| (a)     | Write Advantage of PL/SQL.                                                                                                                                                         | 03   |
| ( અ )   | PL/SQL  ના ફાયદા લખો.                                                                                                                                                                  | ૦૩   |
| (b)     | Explain For Loop in PL/SQL with Example.                                                                                                                                           | 04   |
| ( બ )   | PL/SQL  માં   For  લૂપ ઉદાહરણ સાથે સમGLYPH<c=25,font=/QCCAAA+Lohit-Gujarati>વો.                                                                                                           | ૦૪   |
| (c)     | What is Trigger? Explain Structure, Type and Syntax of trigger. Write an Example Program.                                                                                          | 07   |
| ( ક )   | RટJ ગર શું છે ?  RટJ ગરનું માળખું ,  Mકાર અને ￹સGLYPH<c=8,font=/QCCAAA+Lohit-Gujarati>ટ GLYPH<c=31,font=/QCCAAA+Lohit-Gujarati>સ સમGLYPH<c=25,font=/QCCAAA+Lohit-Gujarati>વો. એક ઉદાહરણ MોPામ લખો. | ૦૭   |

ે