Of course I understand the value of visual interfaces, but they are not a panacea. For example, take the following query:
SELECT column1, column2, column3, SUM(column4)
FROM table1
WHERE column1 BETWEEN ’01-JAN-10’ AND ’30-JUN-10’
AND column2 IS NOT NULL
AND column4 > 10000
GROUP BY column1, column2, column3 ;
The above SQL command takes a few seconds to create. It is understandable by someone without technical skills (perhaps with some minimal explanation). It is straightforward. It is simple.
Now compose the same query with a typical visual query tool:
- Find the correct table in a dropdown list of tables.
- Find column1, column2, column3, and column4 and drag them to some box on the screen.
- Double-click on column1 to open up a dialog. Select something that says “range” or “selection criteria” or “column values” or whatever which opens up another dialog.
- In the new dialog select “range” and select start and end values (’01-JAN-10’ and ’30-JUN-10’) from a list or manually type in the values.
- Save and close the open dialogs.
- Open another dialog on column2.
- Use the dialog to figure out how to exclude NULLS.
- Save and close the dialog.
- Open another dialog for column4.
- Figure out how to only select values greater than 10,000.
- Save and close the dialog.
- Find a button or link in the GUI that says something like “groupings” or “aggregations” and open the appropriate dialog.
- Create groupings on column1, column2, and column3.
- Save and close the dialog.
- Find something in the GUI that says something like “functions” or “aggregate functions”.
- Add a SUM( ) function to column 4.
- Save and close the dialog.
- Press Submit.
Was it really easier? Keep in mind that each vendor’s product has its own GUI—there is no standard. Also keep in mind that many vendors of these products also sell training which suggests that perhaps their GUI’s are not instantly intuitive.
SQL is the standard language of relational databases. With small variations, it is ubiquitous. It is easy to hire people with SQL skills. It is easy for non-programmers to learn. SQL can get somewhat complex for complicated queries, but that is also true for any query tool graphical or otherwise.
Again, I understand the value of visual interfaces. There are many useful applications that allow a user to access information with a few clicks. There are wonderful dashboards, graphing tools, and so on. But whenever serious data analysis or complex ETL is required, an enterprise shouldn’t disallow the most flexible and in many cases the simplest tool for querying data.
Change isn’t always progress. What works well tends to return.
No comments:
Post a Comment