Select Operations in CSQL
Upcoming SlideShare
Loading in...5
×
 

Select Operations in CSQL

on

  • 1,035 views

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

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

Statistics

Views

Total Views
1,035
Views on SlideShare
1,033
Embed Views
2

Actions

Likes
0
Downloads
3
Comments
0

1 Embed 2

http://www.slideshare.net 2

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Select Operations in CSQL Select Operations in CSQL Presentation Transcript

  • SELECT OPERATION IN CSQL
    • Select query retrieves information from a database and structures them into a result table.
    • Writing SELECT queries is a skill that you need a lot in your job.
    • Basically SELECT queries are difficult when there is the question of the occurrences of the following.
      • Using Aggregate Functions
        • Without GROUP BY
        • With GROUP BY
      • JOIN
      • Sub Query
    • These Structures can be easily understood if you will follow the diagrammatic representation given below.
    • What you will get from the Diagram?
    • This digram gives a brief idea about How to write a query.
    • It contains all most all keywords and clauses, which are used in SQL query, and those which are supported in CSQL
    • You can also collect a huge collection of syntaxes for SELECT query.
  • 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]...>