Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dbquery:test3 [2025/08/27 12:21] – Richard Whitedbquery:test3 [2025/08/27 12:26] (current) – [Test3 status query] Richard White
Line 1: Line 1:
 +====== Test3 status query ======
  
 +<code sql>
 +SELECT 
 +    IIF (lower(common_name) LIKE '%frog%', 'frog', 'notfrog') AS status,
 +    common_name AS result
 +FROM species
 +WHERE lower(common_name) LIKE '%frog%'
 +LIMIT 1;
 +</code>
 +
 +
 +===== These are the possible status codes =====
 +
 +==== frog ====
 +
 +<code html>
 +<div style="background-color: #D5E8D4">Frog: :result</div>
 +</code>
 +
 +
 +==== notfrog ====
 +
 +<code html>
 +<div style="background-color: #F8CECC">No frog found: :result</div>
 +</code>