I am new to SQL query. Can you please help me with the following?
id value quotePointId asOfTime
SELECT
QuoteObservations.id,
QuoteObservations.value,
QuoteObservations.asOfTime,
QuotePoints.quoteType
FROM
QuoteObservations
LEFT JOIN QuotePoints
ON QuoteObservations.quotePointId = QuotePoints.id
WHERE
QuotePoints.quoteType = 1
OR QuotePoints.quoteType = 2
ORDER BY
QuoteObservations.asOfTime DESC
LIMIT 1;