Select Operations in CSQL

811 views

Published on

This diagram gives a brief idea about How to write a query.

Published in: Education, Technology, Business
  • Be the first to comment

Select Operations in CSQL

  1. 1. SELECT OPERATION IN CSQL
  2. 2. <ul><li>Select query retrieves information from a database and structures them into a result table. </li></ul><ul><li>Writing SELECT queries is a skill that you need a lot in your job. </li></ul><ul><li>Basically SELECT queries are difficult when there is the question of the occurrences of the following. </li></ul><ul><ul><li>Using Aggregate Functions </li></ul></ul><ul><ul><ul><li>Without GROUP BY </li></ul></ul></ul><ul><ul><ul><li>With GROUP BY </li></ul></ul></ul><ul><ul><li>JOIN </li></ul></ul><ul><ul><li>Sub Query </li></ul></ul><ul><li>These Structures can be easily understood if you will follow the diagrammatic representation given below. </li></ul><ul><li>What you will get from the Diagram? </li></ul><ul><li>This digram gives a brief idea about How to write a query. </li></ul><ul><li>It contains all most all keywords and clauses, which are used in SQL query, and those which are supported in CSQL </li></ul><ul><li>You can also collect a huge collection of syntaxes for SELECT query. </li></ul>
  3. 3. WHERE GROUP BY CROSS JOIN ORDER BY INNER JOIN SELF JOIN <AGG(f1)...> * LIMIT <[f1], ... > <[f1], AGG(f2)> SELECT < [t1.][f1]...> < [t1.][f1],... AGG([t2.][f2])...> FROM <t1> FROM <t1>, <t2>,... <PREDICATE> <PREDICATE on Aggregate> DISTINCT HAVING ON FROM <table_name>... <table_name>... LEFT JOIN <[t1.][f1]...> JOIN PREDICATE <[t1.][f1]...>

×