Advertisement
Guest User

Untitled

a guest
Apr 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.23 KB | None | 0 0
  1. SELECT  'Name: ', (CASE WHEN middle != '' THEN (initcap(lastname)||', '||initcap(firstname)||' '||initcap(substr(middle,1,0))||'.') ELSE (initcap(lastname)||', '||initcap(firstname)||' ')END)
  2. FROM    customers
  3. WHERE   lastname = '&vLN';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement