Answer any seven out of ten. દશમ ાથી કોઇપણ સ તન જવ બ આપો. 1. Explain Database schema and Database Instance. ૧. ડટ બઝ schema અન ડટ બઝ Instance સમજાવો. 2. Explain Anchored Data type. ૨. Anchored ડટ ટ ઇપ સમજાવો. 3. What purpose the SAVEPOINT command serves? Explain. ૩. SAVEPOINT નો ઉદદશય શ ાછ ત સમજાવો. 4. List out TCL and DCL commands. ૪. TCL અન DCL કમ ાડ લખો. 5. Write PL/SQL block to do addition of two numbers (C=A + B). ૫. બ નાબર નો સરવ ળો કરવ નો PL/SQL નો પરોગર મ લખો(C=A + B). 6. Explain conditional control structure IF. ૬. કાડીશનલ કાટરોલ સટટરકચર IF સમજાવો. 7. Explain GOTO statement with example. ૭. GOTO સટટટમનટ ઉદ હરણ સ થ સમજાવો. 8. What is synonym? Explain with example. ૮. Synonym શ ાછ ? ઉદ હરણ સ થ સમજાવો. 9. Write Structure of PL/SQL block. Which are mandatory sections of the PL/SQL block? ૯. PL/SQL ન ાસટટરકચર લખો. PL/SQL બલોકન કય સકશન અનનવ યય છ? 10. Explain serializable schedule. ૧૦. Serializable નશડય લ સમજાવો.
Write Armstrong Axioms for functional dependency. પરશન. ર (અ) ફાકસનલ ડીપનડનસી મ ટન આમયસટટરોગ એનિઓમસ લખો.
[3 marks]Write steps for algorithm to find redundant functional dependency. (અ) રીડનડનટ ફાકસનલ ડીપનડનસી શોધવ મ ટન અલગોરીધમ ન સટટપસ લખો.
[3 marks]Write steps to find closure of SET (બ) કલોસર ઓફ સટ શોધવ મ ટન સટટપસ લખો.
[3 marks]1/3
[ marks]Find primary key from the following set using closure of set property R (A, B,C,G,H,I) F=AB , AC, CGH, CGI, BH (બ) કલોસર ઓફ સટ નો ઉપયોગ કરીન આપલ સટ પરથી પર યમરી કી શોધો. R (A, B,C,G,H,I) F=AB , AC, CGH, CGI, BH
[3 marks]What is decomposition? Explain in detail. (ક) Decomposition શ ાછ? નવસટત રથી સમજાવો.
[4 marks]Write short note: Functional Dependencies. (ક) ફાકસનલ ડીપનડનસી પર ટ ાક નોધ લખો.
[4 marks]Write PL/SQL block to Reverse a given string. (ડ) આપલી સટટરીગન રીવસ યકરવ મ ટ નો PL/SQL નો પરોગર મ લખો
[4 marks]Write PL/SQL block to find the sum of digit of entered number eg. 1234= 1+2+3+4=10 (ડ) આપલ નાબર ન અાકો નો સરવ ળો કરવ મ ટ નો PL/SQL નો પરોગર મ લખો. eg. 1234= 1+2+3+4=10
[4 marks]What is sequence? Create a sequence for generating numbers like 1, 11,21…111 પરશન. 3 (અ) Sequence શ ાછ? 1, 11,21…111 નાબર જનરટ કરવ મ ટ sequence બન વો.
[3 marks]Draw state transition diagram of transaction and explain each state. (અ) ટર નઝકસન સટટટ ટર નઝીસન ડ ય ગર મ દોરો અન દરક સટટટ સમજાવો.
[3 marks]How to lock table explicitly explain with example. (બ) ટબલન explicitly કવી રીત લોક કરી શક ય ત ઉદ હરણ સ થ સમજાવો.
[3 marks]How to grant permission to User2 from User1 on User1’s table account (account_no, balance, branch) .How User2 can see records of User1’s account table? write SQL query. (બ) User1 મ ાથી User1 ન ટબલ account (account_no, balance, branch) ની permission User2 ન કવી રીત આપી શક ય. User2, User1 ન account ન રકોડય કવી રીત જોઈ શક? SQL ની query લખો.
[3 marks]What is view? Write syntax to create a read only and updatable view? Create a view which takes (Account_no,balance, branch) from Account table with branch=”Pune” (ક) View શ ાછ ? read only અન updatable view બન વવ ની syntax લખો? Accounta ટબલ મ ાથી (Account_no,balance, branch) કોલમ branch=”Pune” સ થ લઈન View બન વો.
[4 marks]What is Normalization? What is important of Normalization? Write criteria of 1NF,2NF and 3NF. (ક) નોમયલ યઝશન શ ાછ ? નોમયલ યઝશન ની ઉપયોગીત શ ાછ? 1NF,2NF અન 3NF ન ફકત કર યટરીય લખો.
List out Named exception. Write a program to handle exception when select statement fetches more than one row. પરશન. ૪ (અ) Named exception લખો અન જય ર select સટટટમનટ એક કરત વધ ર રકોડય fetch કર ત exception હનડલ કરવ મ ટનો પરોગર મ લખો.
[3 marks]What is Cursor? List all attributes of Implicit cursor and explain. (અ) કસયર શ ા છ? Implicit કસયર ન બધ એટરીબય ટ લખો અન સમજાવો.
[3 marks]What is concurrency control? Explain Inconsistent Retrieval problems of concurrency. (બ) Concurrency કાટરોલ શ ાછ? Concurrency નો Inconsistent Retrieval પરોબલમ સમજાવો.
[4 marks]Explain Optimistic method for concurrency control. (બ) Concurrency કાટરોલ ની Optimistic મથડ સમજાવો.
[4 marks]Write PL/SQL block which give rise in salary to the employees as per following rules using cursor.Employee (empid,name, salary, post) IF salary =< 50000 increase salary by 10% IF salary is between 50000- 75000 increase salary by 15% IF salary >=75000 increase salary by 20% (ક) કસયર નો ઉપયોગ કરીન નીચ આપલી શરતોન આધ ર employees ન પગ ર મ ાવધ રો આપવ નો PL/SQL નો પરોગર મ લખો. જો salary =< 50000 તો પગ રમ ા૧૦ % વધ રો. જો salary 50000 અન ૭૫૦૦૦ વચચ હોઈ તો પગ રમ ા૧૫ % વધ રો. જો salary >= ૭૫000 તો પગ રમ ા૨૦% વધ રો.
[7 marks]Differentiate procedure and function. પરશન. ૫ (અ) પરોસીજર અન ફાકશન વચચ નો તફ વત લખો.
[4 marks]What is Package? Give Advantages of Package. (બ) પકજ શ ા છ ? પકજન ફ યદ ઓ લખો.
[4 marks]Write a procedure to check whether given string is in lower case or upper case. (ક) આપલી સટટરીગ lower કસ મ ાછ ક upper કસ મ ાત ચક સવ મ ટ ની પરોસીજર લખો.
[3 marks]Differentiate Shared Lock and Exclusive Lock (ડ) Shared લોક અન Exclusive લોક વચચ નો તફ વત લખો. 3/3
[3 marks]Write PL/SQL block to add 10% interest into account. (Account number entered by user) is entered by user. Account(Acoount_no, balance, branch) (ડ) અક ઉનટ મ ા૧૦ % interest જમ કરવ મ ટનો PL/SQL નો પરોગર મ લખો. Acoount_no ય સર ઈનપ ટ તરીક આપશ.Account(Acoount_no, balance, branch) 2/3
[4 marks]Write PL/SQL block to debit account with amount entered by user only if amount is less than balance in the account. User will enter amount and Acoount_no. Account(Acoount_no, balance, branch) (ડ) અક ઉનટ મ ાથી ઈનપ ટ કરલ રકમ ડબીટ કરવ મ ટ નો PL/SQL નો પરોગર મ લખો. Acoount_no અન amount ય ઝર ઈનપ ટ તરીક આપશ. Account(Acoount_no, balance, branch)
[4 marks]