Answer any seven out of ten. દશમ ાથી કોઇપણ સ તન જવ બ આપો. 1. State the purpose of Rollback and Savepoint. ૧ Rollback અન Savepoint નો હત વણણવો. 2. Define concurrency control. How to control concurrency? ૨. Concurrency controlની વય ખય આપો. Concurrency કવી રીત control થ ય? 3. Write general syntax of GRANT command. ૩. GRANT કમ ાડની general syntax લખો. 4. State the importance of Anchored data type. ૪. Anchored data type ની અગતયત સમજાવો. 5. Write general syntax of Cursor for loop. ૫. Cursor ન ા for loop ની general syntax લખો. 6. List any four Named Exception. ૬. કોઇપણ ચ ર Named Exception ની ય દી બન વો. 7. Draw functional dependency diagram for following: {eid,ano} -- > {access_date,balance,bname} ૭. નીચન નો functional dependency diagram દોરો {eid,ano} -- > {access_date,balance,bname} 8. List out any four armstrong’s aximos rules. ૮. Armstrong’s aximosન કોઇપણ ચ ર નનયમોની ય દી બન વો. 9. Draw state transition diagram of a transaction. ૯. Transactionનો state transition diagram દોરો. 10. Differentiate between shared lock and exclusive lock. ૧૦. Shared lock અન exclusive lock વચચનો તફ વત લખો.
Explain Revoke command. પરશન. ર (અ) Revoke કમ ાડ સમજાવો
[3 marks]Differentiate between Commit and Rollback command. (અ) Commit અન Rollback કમ ાડ વચચનો તફ વત લ ખો.
[3 marks]Explain index with example. (બ) Index ઉદ હરણ સનહત સમજાવો.
[3 marks]Create following sequence 1 5 10 15 …. 50 1 5 10 15 …. (બ) નીચની sequence બન વો 1 5 10 15 …. 50 1 5 10 15 ….
[3 marks]Explain Level of locks. (ક) Lock ન ા નવનવધ લવલ સમજાવો.
[4 marks]What is View? Explain how View can be applied on single base table. (ક) View એટલ શ?ા એકજ બઝ ટબલ પર View કવી રીત લ ગ કરી શક ય ત સમજાવો.
[4 marks]Write a PL/SQL program to find out factorial of a given number. (ડ) આપલ નાબર નો factorial શોધવ મ ટનો PL/SQL પરોગર મ લખો.
[4 marks]Write a PL/SQL program to determine the balance of a given account. If it is above 6000, deduct a fine of Rs. 100 from the balance. (ડ) આપલ એક ઉનટન ાબલનસ શોધવ મ ટનો PL/SQL પરોગર મ લખો. જો ત 6000 કરત વધ ર હોય તો Rs. 100 નો દાડ બલનસમ થી બ દ કરો.
[4 marks]Write difference between procedure and function. પરશન. 3 (અ) Procedure અન function વચચનો તફ વત લખો.
[3 marks]Write advantages of procedure and function. (અ) Procedure અન functionની ઉપયોગીત ઓ લખો.
[3 marks]Explain structure of a package. (બ) Packageન ામ ળખા સમજાવો.
[3 marks]Explain types of a trigger. (બ) Triggerન પરક રો સમજાવો.
[3 marks]Explain various steps to manage explicit cursor. (ક) Explicit cursorન મનજ કરવ ન નવનવધ પગથીય સમજાવો.
[4 marks]Explain parameterized cursor with example. (ક) Parameterized cursor ઉદ હરણ સનહત સમજાવો.
[4 marks]Write PL/SQL program to read account numbers for two different accounts. Find the lowest balance from these two accounts, and display it along with its account number. (ડ) બ અલગ અલગ એક ઉાટમ થી એક ઉાટ નાબર વ ાચવ મ ટનો PL/SQL પરોગર મ બ ન વો. આ બ એક ઉાટમ થી ઓછ મ ા ઓછા બલસ શોધો અન તન એક ઉાટ નાબરની સ થ બત વો.
Explain 2NF with example. પરશન. ૪ (અ) 2NF ઉદ હરણ સનહત સમજાવો.
[3 marks]Explain 3NF with example. (અ) 3NF ઉદ હરણ સનહત સમજાવો.
[3 marks]Explain lossy and lossless decomposition. (બ) Lossy અન lossless decomposition સમજાવો.
[4 marks]Explain ACID property of a transaction. (બ) Transactionની ACID પરોપટી સમજાવો.
[4 marks]Remove any redundant FD’s from following set. XY --> V, ZW --> V, VX --> Y, W --> Y, Z --> X (ક) નીચન સટમ ાથી redundant FD’s ક ઢો. XY --> V, ZW --> V, VX --> Y, W --> Y, Z --> X
[7 marks]List problems of concurrency control and explain any one. 0 પરશન. ૫ (અ) Concurrency controlન પરોબલમની ય દી બન વી કોઇપણ એક સમજાવો.
[4 marks]Create a procedure to implement transaction operation. Transaction can be 0 either to credit account or to debit account. Read the type of transaction from user. (બ) Transaction operation અમલમ ા મકવ મ ટની procedure બન વો. Transaction account મ ા credit અથવ debit મ ટના હોવ ા જોઈએ. Transaction ની ટ ઈપ યઝર પ સથી રીડ કર વો.
[4 marks]Explain Full Function Dependency with example. (ક) Full Function Dependency ઉદ હરણ સનહત સમજાવો.
[3 marks]What is Deadlock? Explain with example. (ડ) Deadlock શ ાછ? ઉદ હરણ સનહત સમજાવો.
[3 marks]Insert a record in Account table. If branch name is other than ‘surat’, ‘patan’ or ‘nadiad’, raise and handle user-defined exception. (ડ) Account ટબલમ ારક ોડણ ઉમરો. જો બ ાચન ાન મ ‘surat’, ‘patan’ ક ‘nadiad’ નસવ યના હોય તો user-defined exceptionન raise કરી તન handle કરો.
[4 marks]