Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

SQL Test

Rating
-
Sold
-
Pages
2
Grade
A+
Uploaded on
11-10-2025
Written in
2025/2026

The test is from SQL if you understand basic SQL things, you can solve this

Institution
Course

Content preview

DATABASE CONCEPTS WORKSHEET

1)Nisha is assigned the task of maintaining the staff data of an organization. She has to store the details of
the staff in the SQL table named EMPLOYEES with attributes as EMPNO, NAME, DEPARTMENT,
BASICSAL to store Employee’s Identification Number, Name, Department, and Basic Salary respectively.
There can be two or more Employees with the same name in the organization.Help Nisha to identify the
attribute which should be designated as the PRIMARY KEY .Justify your answer. (BOARD 25)

2)If a table which has one Primary key and two alternate keys. How many Candidate keys will this table
have? (SP 24-25)
a)1 b) 2 c) 3 d) 4

3)Which of the following statements is FALSE about keys in a relational database? (SP 23-24)
a)Any candidate key is eligible to become a primary key.
b)A primary key uniquely identifies the tuples in a relation
c)A candidate key that is not a primary key is a foreign key.
d)A foreign key is an attribute whose value is derived from the primary key of another relation

4)Fill in the blank: (SP 22-23)
_____________ is a non -key attribute , whose values are derived from the primary key of some other
table.
a)Primary Key b)Foreign Key c)Candidate Key d)Alternate Key

5)Fill in the blank :(Board 23)
___________ is a number of tuples in a relation,
a)attribute b)degree c)domain d)cardinality

6)The school has asked their estate manager Mr. Rahul to maintain the data of all the labs in a table LAB,
Rahul has created a table and entered data of 5 labs.
LABNO LAB_NAME INCHARGE CAPACITY FLOOR
L001 CHEMISTRY Daisy 20 I
L002 BIOLOGY Venky 20 II
L003 MATH Preeti 15 I
L004 LANGUAGE Daisy 36 III
L005 COMPUTER Mary Kom 37 II
Based on the data given above answer the following questions:
i)Identify the columns which can be considered as Candidate keys
ii)Write the degree and cardinality of the table.

7) (SP 20-21)




1

Written for

Institution
Secondary school
School year
1

Document information

Uploaded on
October 11, 2025
Number of pages
2
Written in
2025/2026
Type
Exam (elaborations)
Contains
Only questions

Subjects

$10.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
arshidaarsheya

Also available in package deal

Get to know the seller

Seller avatar
arshidaarsheya
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
8 months
Number of followers
0
Documents
9
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions