36

There are a number of tags for SQL key words, and I think that makes sense, mostly.

However, many of those keywords are not very selective or descriptive by themselves as they are very common words.

As SO grows, many of them are competing with other fields.

I started editing a new tag wiki on , but now I wonder how deep the rabbit hole goes...

List of candidates

Edit: add current number (16.8.2017) after ->
x 2 -> 39
× 2,524 -> 3,167
× 1,676 -> 2,076
× 8,372 -> 12,361
- synonym of above
× 528 -> 682
× 180 - proposed synonym -> 203
× 2,752 -> 3,337
× 24 - possibly merge candidate for the above -> 39
× 2,660 -> 3,250
× 319 - possibly merge candidate for the above -> 429
× 329 -> 409
× 241 -> 324
× 2,696 -> 3,110
× 4 -> 4 (remains)

My proposal

is to create (at least) the following tags and make all some of the above (possibly more) synonyms.

I only picked the ones where I found a tag already. Feel free to edit if you agree with the general direction.

All of them shall get their tag wikis in a similar fashion, to give them a common appearance. Like, all excerpts should start with "SQL clause". Maybe with a brief example query in the tag wiki highlighting the keyword.
can serve as prototype to illustrate that.

Steps

Would be done in three steps:

  1. Create the new tags (maybe rename some in existence?)
  2. Retag where appropriate.
  3. Make some of the old keywords synonyms - I'd just propose where I see fit, and the community will vote on it. Or we could discuss that here systematically.
    Others will remain as general-purpose tags.

I would like to know how the community feels about this before I proceed.

13
  • 8
    I like it. I've felt that without the sql- prefix, the tags are really meta tags (for the most part). I'm all for retagging these, but we can't really use synonyms, we'd have to evaluate them all, because I can see situations where these definitely would be used in other contexts.
    – casperOne
    Commented Jul 28, 2012 at 4:03
  • 2
    @casperOne: We probably need to look closely where a synonym makes sense. Many of my examples are used almost exclusively for the SQL key word. Others are not as unambiguous. Commented Jul 28, 2012 at 4:06
  • Maybe, maybe not. We can't make a synonym for partial sets of tags, or only where two tags are applied. It's one-to-one. That said, we can't just carpet bomb the tags, we have to do it on a case-by-case basis, unless we are eliminating, which is not what we want to do here.
    – casperOne
    Commented Jul 28, 2012 at 4:17
  • @casperOne: I added steps to my question, taking your comment into account - if I understood you right. Would it be possible for an admin to mass-retag [groupby] to [sql-group-by], or even just rename the tag - provided we agreed it's the right thing to do (I am not yet convinced it is). Commented Jul 28, 2012 at 4:29
  • 6
    select is the deeper rabbit hole. 7k questions. And there's select-statement, mysql-select, subselect, selectall, sql-select, select-query, select-into... select tag wiki ...
    – Mat
    Commented Jul 28, 2012 at 4:37
  • 2
    groupby also exists in a non-SQL context in LINQ, Python, and probably other languages.
    – Mark Byers
    Commented Jul 28, 2012 at 4:38
  • @Mat: Yeah, I kind of avoided the big one. but I guess it should be included here. Commented Jul 28, 2012 at 4:39
  • It probably deserves a crusade of its own, given how diversely it is used.
    – Mat
    Commented Jul 28, 2012 at 4:42
  • 1
    @MarkByers: So [groupby] has to stay as general tag. Take [order-by] as example. 1504 tags. A candidate for renaming if this plan is generally well received. Commented Jul 28, 2012 at 4:45
  • And there's also insert (although there is already sql-insert, just some manual retagging required) and alter. Commented Oct 13, 2013 at 19:06
  • 4
    Pity we can just burninate all of them. I just can't think of a use for someone following a particular aspect of a sql query. sql-left-outer-join is for poseurs. sql-right-join though is the bee's knees!
    – billinkc
    Commented Dec 30, 2014 at 17:43
  • This question hasn't been active in over a year. Not sure why it got edited, but I think you'd have to examine each tag's usage before retagging anything. Many of these tags are (mis)used for non-SQL languages or for set theory, despite any tag wiki description. How can you take a general tag (such as limit, union, or where) that has multiple applications and turn it into a synonym for one specific use case?
    – user4151918
    Commented Mar 1, 2016 at 6:15

0

You must log in to answer this question.

Browse other questions tagged .