Database Management System (3330703) MCQs

MCQs of Relational Algebra and implementation using SQL

Showing 1 to 10 out of 60 Questions
1.

Selection is denoted by _______

(સિલેકશન ને ____ દ્રારા દર્શાવામાં આવે છે)

(a)

π

(b)

(c)

σ

(d)

φ

Answer:

Option (c)

2.

Display the detail of Employee belongs to “HR” Department having Salary more than 20000, then which of the following relational algebra operation is correct for it ?

(Employee HR ડીપાર્ટમેન્ટ માં હોય અને જેમની  સેલેરી 20000 કરતા વધારે હોય તેમને ડિસ્પ્લે કરવા માટે નીચે ના માંથી કયું  relational algebra operation સાચું છે ?)

(a)

σ Department='HR'  Salary>20000(Employee)

(b)

π Department='HR'  Salary>20000(Employee)

(c)

σ Department='HR'  Salary>20000(Employee)

(d)

π Department='HR'  Salary>20000(Employee)

Answer:

Option (a)

3.

Display Employee name and salary only from employee relation, then which of the following relational algebra operation is correct for it ?

(Employee નામ ના રીલેશન માંથી ફક્ત નામ અને સેલેરી ડિસ્પ્લે કરવા માટે, નીચે ના માંથી કયું  relational algebra operation સાચું છે ? )

(a)

σ Name,Salary(Employee)

(b)

π Name,Salary(Employee)

Answer:

Option (b)

4.

Display Student name who has secured greater than 8 spi and whose branch is CE, then which of the following relational algebra operation is correct for it ?

(ફક્ત Student ના નામ ડિસ્પ્લે કરાવો કે જેમણે 8 કરતા વધારે spi મેળવેલ હોય અને તેમની બ્રાન્ચ CE હોય,તો તેમના માટે નીચે ના માંથી કયું  relational algebra operation સાચું છે ?)

(a)

σ Name( π SPI>8 Branch='CE'(Student))

(b)

π Name( σ SPI>8 Branch='CE'(Student))

(c)

σ Name( π SPI>8 Branch='CE'(Student))

(d)

π Name( σ SPI>8 Branch='CE'(Student))

Answer:

Option (b)

5.

Display Employee name who are from Admin or HR Department, then which of the following relational algebra operation is correct for it ?

(ફક્ત Employee ના નામ ડિસ્પ્લે કરાવો કે જે HR અથવા Admin ડીપાર્ટમેન્ટ માં હોય, તો તેમના માટે નીચે ના માંથી કયું  relational algebra operation સાચું છે ?)

(a)

π Name( σ Dep='HR' Dep='Admin'(Employee))

(b)

π Name( σ Dep='HR' Dep='Admin'(Employee))

(c)

π Name,Dep( σ Dep='HR' Dep='Admin'(Employee))

(d)

π Name,Dep( σ Dep='HR' Dep='Admin'(Employee))

Answer:

Option (a)

6.

Display only those Bookname whose type is not Engineering and Name of the Publication is Tata mcgraw hill, then which of the following relational algebra operation is correct for it ?

(ફક્ત તે જ Bookના નામ ડિસ્પ્લે કરાવો કે જેમની બુક નો પ્રકાર Engineering નથી અને જે Tata mcgraw hill પબ્લીકેશન એ પબ્લીશ કરી છે, તો તેમના માટે નીચે ના માંથી કયું  relational algebra operation સાચું છે ?)

(a)

π Name( σ Type='Engineering' Publication='Tata mcgraw hill'(BookDetails))

(b)

π Name( σ Type!='Engineering' Publication='Tata mcgraw hill'(BookDetails))

(c)

π Name( σ Type<>'Engineering' Publication='Tata mcgraw hill'(BookDetails))

(d)

π Name( σ Type 'Engineering' Publication='Tata mcgraw hill'(BookDetails))

Answer:

Option (c)

7.

Following relational algebra statement is valid or not ? 

σ Branch='CE'  Sem=6 (Student) × σ SPI>7 BL=3 (Result)

નીચે આપેલ relational algebra statement સાચું છે કે નહિ?

σ Branch='CE'  Sem=6 (Student) × σ SPI>7 BL=3 (Result)

(a)

TRUE

(b)

FALSE

Answer:

Option (a)

8.

Following two relational algebra statement will return you same output ?

1.) π Name(Staff) π Name(Student)

2.) π Name(Student)    π Name(Staff)

નીચે આપેલ બંને relational algebra statement સરખું આઉટપુટ રીટર્ન કરશે

1.) π Name(Staff) π Name(Student)

2.) π Name(Student)    π Name(Staff)

(a)

YES

(b)

NO

Answer:

Option (a)

9.

Following two relational algebra statement will return you same output ?

1.) π Name(Staff) - π Name(Student)

2.) π Name(Student) - π Name(Staff)

નીચે આપેલ બંને relational algebra statement સરખું આઉટપુટ રીટર્ન કરશે

1.) π Name(Staff) - π Name(Student)

2.) π Name(Student) - π Name(Staff)

(a)

YES

(b)

NO

Answer:

Option (b)

10.

Rename operator is denoted by ______

(Rename ઓપરેટર ને _____ દ્રારા દર્શાવામાં આવે છે)

(a)

ϕ

(b)

ε

(c)

ρ

(d)

κ

Answer:

Option (c)

Showing 1 to 10 out of 60 Questions