Dot NET
Dot NET

Reputation: 4897

How to represent an SQL query in an easily understandable, universal format?

I am planning a C# query tool which is to facilitate the creation of queries, to be used by individuals who have absolutely no knowledge of SQL.

I would like to display the user's query in a format which is easily understandable. Two options which I thought of are Venn Diagrams or natural language. An example of the latter case (to further elaborate on the question) could be:

The user uses the tool and the SQL statement generated by the tool would be something like SELECT SALARY FROM EMPLOYEES.

The tool could display the query as an easily understandable format, such as: "The report is going to display the salary of all employees".

That could be one approach - by using natural language techniques. Another could be by presenting Venn Diagrams, as many people can understand this notation.

Are there any other ways of representing the query, which could be easily understood?

Upvotes: 1

Views: 346

Answers (3)

Predo
Predo

Reputation: 76

Natural language is probally the best option, Venn Diagrams could confuse people. Easiest approach would be to give a couple of people some SQL training so they can make their own repports and and also act as a gate-keeper for other types of repports they can't make themself. We use this approach and it works very well.

Upvotes: 1

Yaroslav
Yaroslav

Reputation: 6534

As already commented on other asnwer, Venn diagrams are not easy to understand for eveyone, even less for non technical users. From previous experiences working with clients asking for similar funcionalities I suggest taking a couple of their most advanced users and go hard on them teaching how to use some reporting tool. Configure the tool and let them play a lot with it giving them some feedback and help. Finally after a while, if correctly done, you can leave them on the wild at those advanced users will do the job.

Upvotes: 0

Erre Efe
Erre Efe

Reputation: 15557

What do you say about Query Trees?

enter image description here

Upvotes: 1

Related Questions