All Exams Test series for 1 year @ ₹349 only
Question

Division operation is ideally suited to handle queries of the type :

This question was previously asked in
UGC NET 2014 Paper 1 Question Paper (28-Dec-2014)
The correct answer is

customers who have an account at all branches in Delhi.

For relations r(X, Y) and s(Y), the division \(r \div s\) returns those X values that are paired in r with every Y value present in s.

So division expresses universal (“for all”) queries. With r = depositor(customer, branch) and s = the set of branches located in Delhi, \(r \div s\) gives the customers related to every Delhi branch.

A query about having an account in at least one Delhi branch is existential and needs only a join with projection; having no account needs set difference; neither needs division.

Hence, the answer is customers who have an account at all branches in Delhi..

Was this answer helpful?

Similar Questions

  1. Consider the following statements :

    I. Re-construction operation used in mixed fragmentation satisfies commutative rule.

    II. Re-construction operation used in vertical fragmentation satisfies commutative rule

    Which of the following is correct ?

  2. Which of the following is true ?

    I. Implementation of self-join is possible in SQL with table alias.

    II. Outer-join operation is basic operation in relational algebra.

    III. Natural join and outer join operations are equivalent.

  3. Consider the following three tables R, S and T. In this question, all the join operations are natural joins (\(\bowtie\)). (\(\pi\)) is the projection operation of a relation :

    RST
    ABBCAC
    126271
    322412
    568193
    788354
    982535

    Possible answer tables for this question are also given as below :

    (a)

    ABC
    124
    125
    324
    325
    562
    781
    783
    981
    983

    (b)

    ABC
    122
    325
    564
    781
    983

    (c)

    ABC
    162
    325
    524
    781
    983

    (d)

    ABC
    325
    781
    983

    What is the resulting table of \(\pi_{A,B}(R \bowtie T) \bowtie \pi_{B,C}(S \bowtie T)\) ?

  4. A ________ operation combines the rows of the two relations and outputs a new relation that has both input relations’ rows in it.

  5. Given below are the two statements:

    Statement I : Any retrieval request that is specified in the basic relational algebra can also be specified in relational calculus.

    Statement II : Any retrieval request that is specified in the relational calculus can also be specified in basic relational algebra.

    In the light of the above statements, choose the correct answer from the options given below:

  6. Consider the relations R(A, B) and S(B, C) and the following four relational algebra queries over R and S :

    I. ΠA, B (R ⋈ S)

    II. R ⋈ ΠB(S)

    III. R ∩ (ΠA(R) × ΠB(S))

    IV. ΠA,R.B (R × S) where R⋅B refers to the column B in table R.

    One can determine that :


Important Questions from Relational Algebra

  1. Consider the given relations $X$, $Y$ and $Z$. The relation $X$ has three columns $P$, $Q$ and $R$. The relation $Y$ has three columns $P$, $Q$ and $S$. The relation $Z$ has two columns $P$ and $T$. 

    Table X 

    PQR
    P1Q1R1
    P2Q2R2
    P3Q3R2

    Table Y 

    PQS
    P1Q12
    P1Q25
    P2Q16
    P3Q31

    Table Z 

    PT
    P1T1
    P3T2
    P4T3
    P4NULL

    Consider the relational algebra expression $$ \Pi_{P, R, S} \left[ \left( \sigma_{(Q = Q3 \lor R = R2)} [X \bowtie Y] \right) \bowtie \left( \sigma_{(S > 1)} [Y \bowtie Z] \right) \right] $$ where $\bowtie$ denotes natural join operation. 

    Which of the following options is the correct output for the given expression?

  2. Consider a database that includes the following relations: 

    Defender($name, rating, side, goals$) 

    Forward($name, rating, assists, goals$) 

    Team($name, club, price$) 

    Which ONE of the following relational algebra expressions checks that every name occurring in Team appears in either Defender or Forward, where $\phi$ denotes the empty set?

  3. Consider the following three relations:
    Car (model, year, serial, color)
    Make (maker, model)
    Own (owner, serial)
    A tuple in Car represents a specific car of a given model, made in a given year, with a serial number and a color. A tuple in Make specifies that a maker company makes cars of a certain model. A tuple in Own specifies that an owner owns the car with a given serial number. Keys are underlined; (owner, serial) together form key for Own. ($\bowtie$ denotes natural join)
    $ \pi_{\text{owner}} (\text{Own} \bowtie (\sigma_{\text{color}=\text{"red"}} (\text{Car} \bowtie (\sigma_{\text{maker}=\text{“ABC”}} \text{Make})))) $

  4. Consider the following tables, Loan and Borrower of a bank.
     

                         Loan          Borrower
    loan_numbranch_nameamountcustomer_nameloan_num
    L11Banjara Hills90000AnandL11
    L14Kondapur50000KarteekL11
    L15SR Nagar40000AnkitaL15
    L22SR Nagar25000GopalL19
    L23Balanagar80000KarteekL22
    L25Kondapur70000KarteekL23
    L19SR Nagar65000SunilL23
     SunilL25


    Query: $\pi_{\text{branch\_name}, \text{customer\_name}}(\mathbf{Loan} \bowtie \mathbf{Borrower}) \div \pi_{\text{branch\_name}}(\mathbf{Loan})$
    where $\bowtie$ denotes natural join.
    The number of tuples returned by the above relational algebra query is _______
    (Answer in integer)

  5. Consider a relational database schema with two relations $R(P, Q)$ and $S(X, Y)$.
    Let $E = \{\langle u \rangle \mid \exists v\ \exists w\ \langle u, v \rangle \in R\ \land\ \langle v, w \rangle \in S\}$ be a tuple relational calculus expression.
    Which one of the following relational algebraic expressions is equivalent to $E$ ?
Need Expert Advice?
Upcoming Exams
CTET
December 12, 2026
CBSE UGC NET
December 14, 2026
CSIR UGC NET
December 19, 2026
Test Series
UGC NET img
Teaching
UGC NET (Paper 2) 2026 Mock Test Series
796 Tests 2 Tests Free
4.4(40)
English
More Questions from UGC NET

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App