14 Answer any seven out of ten. દશમ થા ી કોઇપણ સ તન જવ બ આપો. 1. List out TCL and DCL commands. TCL DCL ૧ અન કમ ડા ની ય દી બન વો. 2. Define concurrency control. How to control concurrency? Concurrency control Concurrency control ૨. ની વય ખય આપો. કવી રીત થ ય? 3. Write general syntax of Revoke command. Revoke general syntax ૩. કમ ડા ની લખો. 4. State the importance of Anchored data type. Anchored data type ૪. ની અગતયત સમજાવો. 5. Write general syntax of for loop used in PL/SQL. PL/SQL for loop general syntax ૫. મ ા વપર ત ની લખો. 6. List out different attributes of implicit cursor. mplicit cursor attributes ૬. I ન વવવવધ ની ય દી બન વો. 7. Draw functional dependency diagram for following: {cid,ano} -- > {access_date,balance,bname} functional dependency diagram ૭. નીચન નો દોરો {cid,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 Grant command. . Grant પરશન ર (અ) કમ ડા સમજાવો
[3 marks]Explain importance of savepoint with Rollback command. ( Rollback savepoint અ) કમ ડા સ થની ની અગતયત સમજાવો.
[3 marks]Explain Unique index with example. ( Unique index બ) ઉદ હરણ સહહત સમજાવો.
[3 marks]Create following sequence 50 45 40 35 …. 1 50 45 …. ( sequence બ) નીચની બન વો 50 45 40 35 …. 1 50 45 ….
[3 marks]Explain explicit lock with example. ( Explicit lock ક) ઉદ હરણ સહહત સમજાવો.
[4 marks]What is View? Explain how View can be applied on single base table. ( View ? View ક) એટલ શ ા એકજ બઝ ટબલ પર કવી રીત લ ગ કરી શક ય ત સમજાવો.
[4 marks]Write difference between SQL and PL/SQL. ( SQL PL/SQL ડ) અન વચચનો તફ વત લખો.
[4 marks]Describe PL/SQL generic block. ( PL/SQL generic block ડ) નો વણણવો.
[4 marks]Write difference between procedure and function. . Procedure function પરશન 3 (અ) અન વચચનો તફ વત લખો.
[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 highest balance from these two accounts, and display it along with its account number. ( PL/SQL ડ) બ અલગ અલગ એક ઉટમ થી એક ઉટ નબા ર વ ચા વ મ ટનો પરોગર મ બ ન વો. આ બ એક ઉટમ થી મોટ ા બલસ શોધો અન તન એક ઉટ નબા રની સ થ બત વો.
Explain 1NF with example. . 1NF પરશન ૪ (અ) ઉદ હરણ સહહત સમજાવો.
[3 marks]Explain 2NF with example. ( 2NF અ) ઉદ હરણ સહહત સમજાવો.
[3 marks]Explain lossy and lossless decomposition. ( Lossy lossless decomposition બ) અન સમજાવો.
[4 marks]List problems of concurrency control and explain any one. ( Concurrency control બ) ન પરોબલમની ય દી બન વી કોઇપણ એક સમજાવો.
[4 marks]Remove any redundant FD’s from following set. A -->BC, B--> C, A--> B, AB--> C, AC--> D ( redundant FD’s ક) નીચન સટમ થા ી ક ઢો. A -->BC, B--> C, A--> B, AB--> C, AC--> D
[7 marks]Explain ACID property of a transaction. 0 . Transaction ACID પરશન ૫ (અ) ની પરોપટી સમજાવો.
[4 marks]Create a trigger that prevents user of account table on Sunday. ( Account table બ) ન યઝ રન રવવવ ર ટબલનો ઉપયોગ કરત રોકવ મ ટની trigger બન વો.
[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 ‘vvn’, ‘ksad’ or ‘anand’, raise and handle user-defined exception. ( Account ‘vvn’, ‘ksad’ ‘anand’ ડ) ટબલમ ા રકોડણ ઉમરો. જો બ ચા ન ા ન મ ક user-defined exception raise handle વસવ યન ા હોય તો ન કરી તન કરો.
[4 marks]