Question
Aman rides from place P to Q. At 18 km/h, he is 3.5 hours
late. At 30 km/h, he is 1.5 hours early. Find the distance between P and Q.Solution
ATQ,
Let the distance = 'd' km
Let the usual time = 't' hours
Then, (d/18) = t + 3.5
Or, t = (d/18) - 3.5
And, (d/30) = t - 1.5
Or, t = (d/30) + 1.5
So, (d/18) - 3.5 = (d/30) + 1.5
Or, (d/18) - (d/30) = 5
LCM of 18 and 30 = 90
Or, (5d - 3d)/90 = 5
Or, 2d = 450
So, d = 225
Therefore, the distance = 225 km
Which of the following is a mandatory component of a PL/SQL function's definition?
Which PL/SQL cursor attribute returns `TRUE` if the most recent `FETCH` statement returned a row, and `FALSE` otherwise?
What is the primary purpose of a PL/SQL `CURSOR`?
Which SQL clause is used for filtering rows?
In normalization, which normal form removes transitive dependencies?
What is the main function of a PL/SQL `TRIGGER`?
Given a table employees(id, dept_id, salary), which query returns departments with average salary greater than overall average across the company?
Which of the following SQL constructs avoids returning duplicate rows?
Which clause is used to sort query results in SQL?
What is the primary purpose of a `SEQUENCE` in SQL?