## GUJARAT TECHNOLOGICAL UNIVERSITY

## DIPLOMA IN ENGINEERING - SEMESTER - III EXAMINATION - SUMMER 2026

Subject Code: DI03000031

Date: 18-05-2026

Subject Name: Relational Database Management System

Time: 02:30 PM TO 05:00 PM

Total Marks: 70

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.
1.  Create table customer with above structure and data.
2.  Insert above given records in a table.
3.  List name and city of all customer.
4.  List the customers having city Vadodara.
5.  Update Name of Customer whose Cno is C001 to Vipul.

| Q.1   | (a)   | Define Data Dictionary and Metadata.                                                                                                            |   Marks 03 |
|-------|-------|-------------------------------------------------------------------------------------------------------------------------------------------------|------------|
|       | ( અ ) | ડે ટા િડGLYPH<c=7,font=/QECAAA+Lohit-Gujarati>શનરી અને મેટાડે ટા GLYPH<c=13,font=/QECAAA+Lohit-Gujarati> યાGLYPH<c=15,font=/QECAAA+Lohit-Gujarati>યાિયત કરો. |         ૦૩ |
|       | (b)   | Explain Select Query Command with Example.                                                                                                      |         04 |
|       | ( બ ) | ￹સલેGLYPH<c=7,font=/QECAAA+Lohit-Gujarati>ટ GLYPH<c=7,font=/QECAAA+Lohit-Gujarati>વેરી કમાGLYPH<c=27,font=/QECAAA+Lohit-Gujarati>ડને ઉદાહરણ સાથે સમ!વો.   |         ૦૪ |
|       | (c)   | Write SQL queries for the following, Table Name: Customer                                                                                       |         07 |

- ( ક ) નીચેના માટે SQL GLYPH&lt;c=7,font=/QECAAA+Lohit-Gujarati&gt;વેરીઝ લખો , ટે બલ નામ : &amp;ાહક
- ૧ ) ઉપરોGLYPH&lt;c=7,font=/QECAAA+Lohit-Gujarati&gt;ત માળખા અને ડે ટા સાથે ટે બલ &amp;ાહક બનાવો.
- ૨ ) ઉપરોGLYPH&lt;c=7,font=/QECAAA+Lohit-Gujarati&gt;ત આપેલા રે કો,સકો.કમાં દાખલ કરો.
- ૩ ) બધા &amp;ાહકોના નામ અને શહેરની યાદી બનાવો.
- ૪ ) વડોદરા શહેર ધરાવતા &amp;ાહકોની યાદી બનાવો.
- ૫ ) જે &amp;ાહકનો Cno C001 છે તેનું નામ િવપુલ અપડેટ કરો.

OR

- (c) Write SQL queries for the following, Table Name: Customer
1.  Create table customer with above structure and data.
2.  Insert records in a table.
3.  List customer name whose city is Ahmedabad.
4.  Delete all the records from Table Customer.
5.  Update Name of Customer whose Cno is C001 to Vipul.
- ( ક ) નીચેના માટે SQL GLYPH&lt;c=7,font=/QECAAA+Lohit-Gujarati&gt;વેરીઝ લખો , ટે બલ નામ : &amp;ાહક
- ૧ ) ઉપરોGLYPH&lt;c=7,font=/QECAAA+Lohit-Gujarati&gt;ત માળખા અને ડે ટા સાથે ટે બલ &amp;ાહક બનાવો.
- ૨ ) ટે બલમાં આપેલ રે કોડ દાખલ કરો.
- ૩ ) જે &amp;ાહકનું શહેર અમદાવાદ છે તેનું નામ સૂ￹ચબ7 કરો.
- ૪ ) ટે બલ &amp;ાહકમાંથી બધા રે કોડ કાઢી નાખો.
- ૫ ) જેનો Cno C001 છે તેનું નામ િવપુલ તરીકે અપડેટ કરો.

| Q.2   | (a)   | List DML Commands and Explain any One with Example.   |   03 |
|-------|-------|-------------------------------------------------------|------|
|       | ( અ ) | DML  આદેશોની યાદી બનાવો અને કોઈપણ એકને ઉદાહરણ સાથે સમ!વો.           |   ૦૩ |
|       | (b)   | Explain Relational Operators in SQL.                  |   04 |
|       | ( બ ) | SQL  માં ;રલેશનલ ઓપરેટસ- સમ!વો.                            |   ૦૪ |

07

૦૭

ે

ઉદાહરણ

સાથે

કં સટEે GLYPH&lt;c=27,font=/QECAAA+Lohit-Gujarati&gt;ટ

ે

|     | (c)   | Define View, List Types of Views and Explain it by using example.                                                                                                                                                              | 07   |
|-----|-------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------|
|     | ( ક ) | GLYPH<c=13,font=/QECAAA+Lohit-Gujarati> યુ GLYPH<c=13,font=/QECAAA+Lohit-Gujarati> યાGLYPH<c=15,font=/QECAAA+Lohit-Gujarati>યાિયત કરો ,  GLYPH<c=13,font=/QECAAA+Lohit-Gujarati> યુના =કારોની યાદી બનાવો અને ઉદાહરણનો ઉપયોગ કરીને તેને સમ!વો.         | ૦૭   |
|     | (a)   | List TCL Commands and Explain any One with Example.                                                                                                                                                                            | 03   |
|     | ( અ ) | TCL  આદેશોની યાદી બનાવો અને કોઈપણ એકને ઉદાહરણ સાથે સમ!વો.                                                                                                                                                                                    | ૦૩   |
|     | (b)   | Explain IN Operators in SQL.                                                                                                                                                                                                   | 04   |
|     | ( બ ) | SQL  માં  IN  ઓપરેટસ- સમ!વો.                                                                                                                                                                                                       | ૦૪   |
|     | (c)   | List Types of Index and Explain How Can We Create an Index by using example.                                                                                                                                                   | 07   |
|     | ( ક ) | ઇGLYPH<c=27,font=/QECAAA+Lohit-Gujarati>ડ GLYPH<c=7,font=/QECAAA+Lohit-Gujarati>સના =કારોની યાદી બનાવો અને ઉદાહરણનો ઉપયોગ કરીને આપણે ઇGLYPH<c=27,font=/QECAAA+Lohit-Gujarati>ડ GLYPH<c=7,font=/QECAAA+Lohit-Gujarati>સ કે વી રીતે બનાવી શકીએ તે સમ!વો. | ૦૭   |
| Q.3 | (a)   | List Date Functions and Explain any two Date Functions.                                                                                                                                                                        | 03   |
|     | ( અ ) | ડે ટ ફં GLYPH<c=7,font=/QECAAA+Lohit-Gujarati>શનની યાદી બનાવો અને કોઈપણ બે સમ!વો.                                                                                                                                                         | ૦૩   |
|     | (b)   | List Character Functions and Explain any two Character Functions.                                                                                                                                                              | 04   |
|     | ( બ ) | કે રે GLYPH<c=7,font=/QECAAA+Lohit-Gujarati>ટર ફં GLYPH<c=7,font=/QECAAA+Lohit-Gujarati>શનની યાદી બનાવો અને કોઈપણ બે કે રે GLYPH<c=7,font=/QECAAA+Lohit-Gujarati>ટર ફં GLYPH<c=7,font=/QECAAA+Lohit-Gujarati>શન સમ!વો..                       | ૦૪   |
|     | (c)   | Explain Group by and Having Clause with example.                                                                                                                                                                               | 07   |
|     | ( ક ) | ઉદાહરણ સાથે &ુપ બાય અને હે Aવગ GLYPH<c=7,font=/QECAAA+Lohit-Gujarati>લોઝ સમ!વો.                                                                                                                                                         | ૦૭   |
|     | (a)   | List Numeric Functions and Explain any two Numeric Functions.                                                                                                                                                                  | 03   |
|     | ( અ ) | સંGLYPH<c=15,font=/QECAAA+Lohit-Gujarati>યાBમક ફં GLYPH<c=7,font=/QECAAA+Lohit-Gujarati>શનની યાદી બનાવો અને કોઈપણ બે સંGLYPH<c=15,font=/QECAAA+Lohit-Gujarati>યાBમક ફં GLYPH<c=7,font=/QECAAA+Lohit-Gujarati>શન સમ!વો.                        | ૦૩   |
|     | (b)   | List Conversion Functions and Explain any two Conversion Functions.                                                                                                                                                            | 04   |
|     | ( બ ) | Cપાંતર ફં GLYPH<c=7,font=/QECAAA+Lohit-Gujarati>શનની યાદી બનાવો અને કોઈપણ બે Cપાંતર ફં GLYPH<c=7,font=/QECAAA+Lohit-Gujarati>શન સમ!વો                                                                                                         | ૦૪   |
|     | (c)   | Explain Inner Join with Example                                                                                                                                                                                                | 07   |
|     | ( ક ) | ઇનર Dઈનને ઉદાહરણ સાથે સમ!વો                                                                                                                                                                                                         | ૦૭   |
| Q.4 | (a)   | Differentiate Primary Key and Foreign Key                                                                                                                                                                                      | 03   |
|     | ( અ ) | તફાવત આપો :  =ાયમરી કી અને ફોરેઇન કી.                                                                                                                                                                                                   | ૦૩   |
|     | (b)   |                                                                                                                                                                                                                                | 04   |
|     | ( બ ) | ઉદાહરણ સાથે  NOT NULL  કં સટEે GLYPH<c=27,font=/QECAAA+Lohit-Gujarati>ટ સમ!વો.                                                                                                                                                       | ૦૪   |
|     |       | Explain NOT NULL Constraints with Example.                                                                                                                                                                                     |      |
|     | ( ક ) | નોમ-લાઇઝેશન GLYPH<c=13,font=/QECAAA+Lohit-Gujarati> યાGLYPH<c=15,font=/QECAAA+Lohit-Gujarati>યાિયત કરો ,  ઉદાહરણ સાથે  3NF  સમ!વો.                                                                                                        | ૦૭   |
|     |       | OR                                                                                                                                                                                                                             |      |
|     | (a)   | Explain CHECK Constraints with Example.                                                                                                                                                                                        | 03   |
|     | ( અ ) | CHECK                                                                                                                                                                                                                          | ૦૩   |

સમ!વો.

|       | (b)                                                  | Explain On Delete Cascade with Example.                                                                                                                       | 04   |
|-------|------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|------|
| ( બ ) | ઓનિડલીટ કે Fકે ડ િવશે ઉદાહરણ સાથે સમ!વો                        |                                                                                                                                                               | ૦૪   |
| (c)   | Define Normalization, Explain 2NF with Example.      |                                                                                                                                                               | 07   |
| ( ક ) | નોમ-લાઇઝેશન સમ!વો.                                       | GLYPH<c=13,font=/QECAAA+Lohit-Gujarati> યાGLYPH<c=15,font=/QECAAA+Lohit-Gujarati>યાિયત કરો ,  ઉદાહરણ સાથે  2NF                                                       | ૦૭   |
| Q.5   | (a)                                                  | Explain PL/SQL Block Structure.                                                                                                                               | 03   |
| ( અ ) | PL/SQL  Gલોક                                          | FટEGLYPH<c=7,font=/QECAAA+Lohit-Gujarati>ચર સમ!વો.                                                                                                             | ૦૩   |
| (b)   |                                                      | Write PL/SQL Block to find whether the given no is even or odd.                                                                                               | 04   |
| ( બ ) | આપેલ સંGLYPH<c=15,font=/QECAAA+Lohit-Gujarati>યા એકી છે કે | બેકી છે તે શોધવા માટે  PL/SQL  Gલોક લખો.                                                                                                                                | ૦૪   |
| (c)   |                                                      | Define Trigger, Explain it with example.                                                                                                                      | 07   |
| ( ક ) |                                                      | ;ટE ગર GLYPH<c=13,font=/QECAAA+Lohit-Gujarati> યાGLYPH<c=15,font=/QECAAA+Lohit-Gujarati>યાિયત કરો ,  ઉદાહરણ સાથે સમ!વો.                                               | ૦૭   |
|       |                                                      | OR                                                                                                                                                            |      |
| (a)   | Explain IF…. THEN Statement in PL/SQL.               |                                                                                                                                                               | 03   |
| ( અ ) |                                                      | PL/SQL  માં  IF.... THEN  FટેટમેGLYPH<c=27,font=/QECAAA+Lohit-Gujarati>ટ સમ!વો.                                                                                    | ૦૩   |
| (b)   |                                                      | Write PL/SQL block to find the sum of digit of entered number e.g., 1234=1+2+3+4=10                                                                           | 04   |
|       | ( બ )                                                | દાખલ કરેલ સંGLYPH<c=15,font=/QECAAA+Lohit-Gujarati>યાના અંકનો સરવાળો શોધવા માટે  PL/SQL  Gલોક લખો ,  દા.ત. , 1234=1+2+3+4=10                                                  | ૦૪   |
| (c)   |                                                      | Define Function in PL/SQL, Explain it with Example                                                                                                            | 07   |
|       | ( ક )                                                | PL/SQL  ફં GLYPH<c=7,font=/QECAAA+Lohit-Gujarati>શન GLYPH<c=13,font=/QECAAA+Lohit-Gujarati> યાGLYPH<c=15,font=/QECAAA+Lohit-Gujarati>યાિયત કરો ,  તેને ઉદાહરણ સાથે સમ!વો | ૦૭   |

***