Advertisement
econz

Firebird - Common Table Expressions (CTE)

Mar 7th, 2012
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.14 KB | None | 0 0
  1. WITH Tab_Cidades_RS AS (
  2.   SELECT C.*
  3.   FROM Cidade C
  4.   WHERE
  5.   C.UF='RS'
  6. )
  7.  
  8. SELECT * FROM Tab_Cidades_RS
  9. WHERE
  10. DescCidade starts WITH 'F'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement