Question
The ratio of age of βBβ after 5 years from now and
age of βCβ 4 years ago from now is 7:4, respectively. The present age of βCβ is 40% of the present age of βAβ. If present age of βAβ is 50 years then find the present age of βBβ.Solution
Present age of βCβ = 0.4 Γ 50 = 20 years 4 years ago from now, age of βCβ = 20 β 4 = 16 years 5 years hence from now, age of βBβ = 16 Γ (7/4) = 28 years Present age of βBβ = 28 β 5 = 23 years
Which SQL keyword prevents duplicate rows in result?
Which of the following SQL constructs avoids returning duplicate rows?
What is the output of this SQL snippet if the price column contains NULL values?
SELECT SUM(price) FROM products;
Which SQL constraint ensures that a columnβs values are unique across the table?
Which clause is used to sort query results in SQL?
Which SQL command is used to modify existing records in a table?
What is the primary purpose of a `SEQUENCE` in SQL?
What is an SQL `VIEW`?
Which SQL function returns the largest value in a column?
Given a table employees(id, dept_id, salary), which query returns departments with average salary greater than overall average across the company?