Professional Documents
Culture Documents
Diploma Winter 2021
Diploma Winter 2021
______________
Q.1 (a) Draw Three-level ANSI SPARC Database Architecture and explain each 07
level in detail.
પ્રશ્ન. ૧ અ ત્રણ-સ્તરની એએનએસઆઈ સ્પાર્ક ડેટાબેસ આર્ર્ક ટેક્ચરની આર્ૃ ર્ત દોરી અને ૦૭
દરેર્ સ્તર સમજાવો.
(b) List the functions and responsibilities of Data Base Administrator and 07
describe each of them.
બ ડીબીએના ર્ાર્યો અને જવાબદારીઓની ર્યાદી ર્રી અને દરેર્ને સમજાવો. ૦૭
Q.2 (a) Describe hierarchical and network data model with example. 07
પ્રશ્ન. ૨ અ હાઇરારચીર્લ અને નેટવર્ક ડેટા મોડેલ ઉદાહરણ સાથે સમજાવો. ૦૭
(b) Describe join operations of relational algebra with an example. 07
બ ર્રલેશન એર્જજબ્રાના જોઇન ઓપરેશન ઉદાહરણ સર્હત સમજવો. ૦૭
OR
(b) List the types of data bases and explain two of them. 07
બ ડેટા બેઇઝ ના પ્રર્ારો ની ર્યાદી લખો અને ર્ોઇર્ એર્ સમજાવો.
Q.3 (a) Explain following SQL functions with an example. 07
(1) GREATEST( ) (2) CEIL( ) (3) ROUND ( ) (4) INITCAP( )
(5) SUBSTRING( ) (6) NVL( ) (7) VSIZE( )
પ્રશ્ન. અ નીચે દશાકવેલ ફં ક્શન ઉદાહરણ આપી સમજાવો. 07
૩ (1) GREATEST( ) (2) CEIL( ) (3) ROUND ( ) (4) INITCAP( )
(5) SUBSTRING( ) (6) NVL( ) (7) VSIZE( )
(b) Write the difference between: 07
(1) char and varchar-2
(2) delete and truncate
બ તફાવત લખો: ૦૭
૧ Char અને Varchar – 2
૨. Delete અને Truncate
OR
Q.3 (a) Explain following SQL functions with an example: 07
(1)NEXT-DAY (2)ABS (3)INITCAP (4)UID
પ્રશ્ન. અ નીચેના SQL ફર્શન ઉદાહરણ આપી સમજાવો : 07
૩ (1)NEXT-DAY (2)ABS (3)INITCAP (4)UID
(b) Describe the group by, having and order by clause with an example. ૦૭
1/3
બ ઉદાહરણ સાથે ગ્રુપ બાર્ય, હેર્વંગ અને ઓડર બાર્ય ક્લોસ વણકન ર્રો. ૦૭
Q.4 (a) Describe Data Definition Language and Data Manipulation Language 07
command with an example.
પ્રશ્ન. અ ઉદાહરણ સાથે ડેટા ડેર્ફનેશન લેંગ્વેજ અને ડેટા મેર્નપ્ર્યુલેશન લેંગ્વેજ ર્માન્ડનું 07
૪ વણકન ર્રો.
(b) Describe Domain Integrity, Entity Integrity and Referential Integrity ૦૭
constraints with an example.
બ ઉદાહરણ સાથે ડોમેન ઇર્ન્ટગ્રેટી, એર્ન્ટટી ઇર્ન્ટગ્રેટી અને રેફરર્ન્શર્યલ ૦૭
ઇર્ન્ટગ્રેસીટી મર્યાકદાઓનું વણકન ર્રો.
OR
Q.4 (a) Explain following functions of SQL Function: 07
(1) GREATEST (2) POWER (3) SUBSTRING (4) TO_DATE
(5) COUNT (6) LOWER
પ્રશ્ન. અ નીચેના SQL ફર્શન ઉદાહરણ આપી સમજાવો : 07
૪ (૧)GREATEST (૨) POWER (૩) SUBSTRING (૪) TO_DATE (૫)
COUNT (૬) LOWER
(b) Define Constraint. Explain primary key and foreign key constraint with ૦૭
an example.
બ Constraint વ્ર્યાખ્ર્યા લખો. પ્રાઇમરી ર્ી અને ફોરેન ર્ી constraint એર્ ૦૭
ઉદાહરણ આપી
Q.5 (a) Using given tables write SQL statements for the following queries:
Employee (personname, street, city)
Works (personname, companyname, salary) 02
(i) Display the names and cities of residence of all employees who work 02
for “TCS” company. 02
(ii) Display the maximum salary provided by each company. 01
(iii) Display the names and street addresses of employees who live in
Mumbai.
(iv) Display the names of all companies.
પ્રશ્ન. અ આપેલ ટે બલનો ઉપર્યોગ ર્રીને નીચેની ક્વેરીઝ માટે SQL queries એસક્યુએલ
૫ સ્ટે ટમેન્ટ લખો:
employee(personname, street , city)
works(personname, companyname, salary) 02
(i) "ટીસીએસ" ર્ં પની માટે ર્ામ ર્રતા તમામ ર્મકચારીઓના નામ અને શહેરો 02
02
દશાકવો.
01
(ii) દરેર્ ર્ં પની દ્વારા આપવામાં આવેલ મહત્તમ પગાર દશાકવો.
(iii)મુંબઇમાં રહેતા ર્મકચારીઓનાં નામ અને ગલીનાં સરનામાં દશાકવો.
(iv) બધી ર્ં પનીઓના નામ દશાકવો.
(b) Draw E-R diagram for library management system. ૦૭
બ લાર્યબ્રેરી મેનજ્ે મેંટ સીસ્ટમ માટે નો ઇ-આર ડાર્યાગ્રામ દોરો. ૦૭
OR
2/3
(b) Using given table write SQL statements for the following queries: ૦૭
Student(Enrollment_No , Student_Name ,DOB, Dept_No)
(1) Add primary key constraint on Enrollment_No column
(2) Display student details whose name contains ‘K’ letter
(3) Display total number of students in each department
બ આપેલ ટે બલનો ઉપર્યોગ ર્રીને નીચેની ક્વેરીઝ માટે SQL queries એસક્યુએલ ૦૭
સ્ટે ટમેન્ટ લખો:
(૧) Enrollment_No ર્ોલમ પર પ્રાર્યમરી ર્ી ઉમેરો
(૨) જેના નામમાં ‘ર્ે ’ અક્ષર છે તે ર્વદ્યાથીઓની ર્વગતો દશાકવો
(૩) દરેર્ ર્વભાગમાં ર્ુ લ ર્વદ્યાથીઓની સંખ્ ર્યા દશાકવો
3/3