Airlock-On-Edge Woolf University
Airlock-On-Edge Woolf University
Airlock-On-Edge Woolf University
Quiz
• Cus_id in a Customer table is Primary_key, Candidate_key and also a Super_key?
• True - correct
• False
• All Super keys are Candidate keys?
• True
• False - correct
• Mobile brand is left table, mobile phone model details is right table. What is the kind of relation between the two?
• Many to Many
• One to One
• One to Many - correct
• Many to One
• Which of the 2 statements are right? 1. Primary key cannot be a duplicate 2. Primary key can have NULL values?
• 1 - correct
• 2
• 1 and 2 are right
• Neither are right
• SQL does not support Databases where the data is stored as key-value pairs?
• True - correct
• False
Get all the products available in the market .
SELECT * FROM `farmers_market.product`
Select five product IDs and their associated product
names from the product table.
SELECT
market_date,
vendor_id,
booth_number
FROM
farmers_market.vendor_booth_assignments
LIMIT 10
Query the total amount that the customer has paid along with
date, customer id, vendor_id, qty, cost per qty and the total amt.?