📞 0339-0387701 (WhatsApp)
Contact
☰
🔍
Home
Important MCQs
Computer
Current Affairs
Data Science & AI (NCCIA)
Database & Data Handling (NCCIA)
English
Everyday Science
General Knowledge
General Science
Information & Networking (NCCIA)
Islamic Studies MCQs
Maths MCQs
Pak Study
Pedagogy
Software Engineering (NCCIA)
Telecom / Electrical Fundamentals (NCCIA)
Urdu MCQs
Past Papers
ASF Past Papers
FIA Past Papers
FPSC Past Papers
NCCIA Past Papers
NTS Past Papers
PPSC Past Papers
Latest Jobs
Army Jobs
Education Department
Federal Govt Jobs
Health Department
Police Jobs
Sindh Govt Jobs
Resources
About Us
Contact
🔍
Home
» Which of the following is a valid use of the CHECK constraint?
« Back to Database & Data Handling (NCCIA)
Which of the following is a valid use of the CHECK constraint?
A. CHECK (Salary > 0) ✅
B. CHECK (Salary cannot be empty)
C. CHECK (Salary is unique)
D. CHECK (Salary links to another table)
Correct Answer:
A. CHECK (Salary > 0)
Explanation
CHECK (Salary > 0) enforces a valid range for salary.
Uniqueness is UNIQUE, linking is FOREIGN KEY and emptiness is NOT NULL.
« In a table OrderItem(OrderID, ProductID, Quantity), what is the composite…
In SQL, which data type stores approximate floating-point numbers? »
Related MCQs
In the relational model, data is organised primarily as which of the following?
In a one-to-many relationship, what is the minimum cardinality on the many side?
In a library database, is a Copy of a Book a weak or strong entity?
How is aggregation represented in an ER diagram?
Which of the following is true about participation constraints and cardinality together?
Which of the following is a classic example of a weak entity?
What is ON UPDATE CASCADE?
In the same tables, which column is the primary key of Employee?