Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. учись - главное знать все из запросов
  2. <SELECT statement> ::=
  3. [ WITH { [ XMLNAMESPACES ,] [ <common_table_expression> [,...n] ] } ]
  4. <query_expression>
  5. [ ORDER BY { order_by_expression | column_position [ ASC | DESC ] }
  6. [ ,...n ] ]
  7. [ <FOR Clause>]
  8. [ OPTION ( <query_hint> [ ,...n ] ) ]
  9. <query_expression> ::=
  10. { <query_specification> | ( <query_expression> ) }
  11. [ { UNION [ ALL ] | EXCEPT | INTERSECT }
  12. <query_specification> | ( <query_expression> ) [...n ] ]
  13. <query_specification> ::=
  14. SELECT [ ALL | DISTINCT ]
  15. [TOP ( expression ) [PERCENT] [ WITH TIES ] ]
  16. < select_list >
  17. [ INTO new_table ]
  18. [ FROM { <table_source> } [ ,...n ] ]
  19. [ WHERE <search_condition> ]
  20. [ <GROUP BY> ]
  21. [ HAVING < search_condition > ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement