Database Management and Warehousing questions

Q16

GATE DA 2025 DADatabase DesignMCQ1 mark−1/3 if wrong

Report a problem with Q16

What is wrong?
If a relational decomposition is not dependency-preserving, which one of the following relational operators will be executed more frequently in order to maintain the dependencies?
Show answer without attempting

Loading the answer…

Q17

GATE DA 2025 DARelational Query LanguagesMCQ1 mark−1/3 if wrong

Report a problem with Q17

What is wrong?
Consider the following three relations:

Car(model,year,serial‾,color)\texttt{Car}(\texttt{model}, \texttt{year}, \underline{\texttt{serial}}, \texttt{color})
Make(maker,model‾)\texttt{Make}(\texttt{maker}, \underline{\texttt{model}})
Own(owner‾,serial‾)\texttt{Own}(\underline{\texttt{owner}}, \underline{\texttt{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‾)(\underline{\texttt{owner}}, \underline{\texttt{serial}}) together form key for Own. (⋈\bowtie denotes natural join)

πowner(Own⋈(σcolor=“red”(Car⋈(σmaker=“ABC”Make))))\pi_{\text{owner}}(\text{Own} \bowtie (\sigma_{\text{color}=\text{“red”}}(\text{Car} \bowtie (\sigma_{\text{maker}=\text{“ABC”}}\text{Make}))))

Which one of the following options describes what the above expression computes?
Show answer without attempting

Loading the answer…

Q33

GATE DA 2025 DARelational Query LanguagesNAT1 mark

Report a problem with Q33

What is wrong?
On a relation named Loan of a bank:
loan_numberbranch_nameamount
L11Banjara Hills90000
L14Kondapur50000
L15SR Nagar40000
L22SR Nagar25000
L23Balanagar80000
L25Kondapur70000
L19SR Nagar65000
the following SQL query is executed:
SELECT L1.loan_number
FROM Loan L1
WHERE L1.amount > (SELECT MAX (L2.amount)
                   FROM Loan L2
                   WHERE L2.branch_name = 'SR Nagar');
The number of rows returned by the query is __________ (Answer in integer)
Show answer without attempting

Loading the answer…

Q46

GATE DA 2025 DAData Warehouse ModellingMCQ2 marks−2/3 if wrong

Report a problem with Q46

What is wrong?
Consider a fact table in an OLAP application: Facts(D1, D2, val), where D1 and D2 are its dimension attributes and val is a dependent attribute. Suppose attribute D1 takes 3 values and D2 takes 2 values, and all combinations of these values are present in the table Facts. How many tuples are there in the result of the following query?
SELECT D1, D2, sum(val)
FROM Facts
GROUP BY CUBE (D1, D2);
Show answer without attempting

Loading the answer…

Q56

GATE DA 2025 DADatabase DesignMSQ2 marks

Report a problem with Q56

What is wrong?
Consider the following two relations, named Customer and Person, in a database:
Person (
    aadhaar CHAR(12) PRIMARY KEY,
    name VARCHAR(32));
Customer (
    name VARCHAR(32),
    email VARCHAR(32) PRIMARY KEY,
    phone CHAR(10),
    aadhaar CHAR(12),
    FOREIGN KEY (aadhaar) REFERENCES Person(aadhaar));
Which of the following statements is/are correct?
More than one option can be correct.
Show answer without attempting

Loading the answer…

Q57

GATE DA 2025 DADatabase DesignMSQ2 marks

Report a problem with Q57

What is wrong?
Consider a database relation R with attributes ABCDEFG, and having the following functional dependencies:
A→BCEF,E→DG,BC→AA \to BCEF, \quad E \to DG, \quad BC \to A
Which of the following statements is/are correct?
More than one option can be correct.
Show answer without attempting

Loading the answer…

Q62

GATE DA 2025 DARelational Query LanguagesNAT2 marks

Report a problem with Q62

What is wrong?
Consider the following tables, Loan and Borrower, of a bank.

Loan
loan_numbranch_nameamount
L11Banjara Hills90000
L14Kondapur50000
L15SR Nagar40000
L22SR Nagar25000
L23Balanagar80000
L25Kondapur70000
L19SR Nagar65000
Borrower
customer_nameloan_num
AnandL11
KarteekL11
KarteekL14
AnkitaL15
GopalL19
KarteekL22
KarteekL23
SunilL23
SunilL25
Query: πbranch_name,customer_name(Loan⋈Borrower)÷πbranch_name(Loan)\pi_{\text{branch\_name}, \text{customer\_name}}(\text{Loan} \bowtie \text{Borrower}) \div \pi_{\text{branch\_name}}(\text{Loan})
where ⋈\bowtie denotes natural join. The number of tuples returned by the above relational algebra query is __________ (Answer in integer)
Show answer without attempting

Loading the answer…

0/70 correct0 marks

Related topics in GATE DA