Timeline for Questions involving database queries - can we make it easier for people to create well-formatted data for testing
Current License: CC BY-SA 3.0
23 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 11, 2016 at 15:12 | history | edited | TarynStaffMod |
edited tags
|
|
Sep 10, 2015 at 14:51 | comment | added | Nikhil Vartak | Just a quick suggestion, instead of permanent table - declare @SOTemp table ( ... ). As no one would want to persist OP's table/data in question. | |
Jul 12, 2015 at 18:54 | history | edited | Peter Mortensen | CC BY-SA 3.0 |
Expansion, etc.
|
Jul 12, 2015 at 12:38 | answer | added | Siguza | timeline score: 4 | |
Jul 12, 2015 at 12:25 | comment | added | juergen d | Providing well formatted example data and table structure is minimal effort. No matter how much easier you make it - Sadly most OPs don't even care doing that. | |
Jul 11, 2015 at 8:13 | answer | added | Lalit Kumar B | timeline score: 7 | |
Jul 11, 2015 at 7:49 | history | edited | Brock Adams |
edited tags
|
|
Jul 10, 2015 at 21:08 | comment | added | PM 77-1 | SQL Fiddle has an amazing TEXT to DLL feature. It does a pretty good job of inferring types for most popular databases. | |
Jul 10, 2015 at 20:36 | comment | added | Jonathan Leffler | How would the 'create table' statement be determined? I'm dubious that it would get the types right for all DBMS (any DBMS?). The VARCHAR(255) looks like an exaggeration for the sample data shown, for example. And detecting the correct temporal types for temporal data will be … challenging? IMO, the schema (an outline schema) should be posted with the question anyway. It would be nice to ensure there was always a table name — it is remarkable how frequently people ask about nameless tables! I've not run into any major problems when data has been presented; I've often had to create data. | |
Jul 10, 2015 at 16:10 | comment | added | l4mpi | @JasonMArcher first of all "an expert has to go moving everything to an external tool" only if the OP fails to properly format their post. Second, if that's the case, the expert can simply edit the post to fix the formatting. Also, re Stack Snippets - if you could proove that a significant percentage of SO questions could hugely benefit from it, this would be a valuable feature. But I'd rather guess it would be a small improvement for an even smaller amount of questions; thus neither justifying the SE dev time nor the complexity increases of the editor widget. | |
Jul 10, 2015 at 16:07 | comment | added | user1228 | Multidupe, but they all live on meta.se now. | |
Jul 10, 2015 at 15:36 | comment | added | JasonMArcher | @l4mpi Why have Stack Snippets when JSFiddle exists? The answer is that it is such a useful feature for helping people solve problems quickly that it just makes sense. And your suggestion means that an expert has to go moving everything to an external tool to properly see the data. Wouldn't it be really efficient if this were built in to SE? | |
Jul 10, 2015 at 13:18 | comment | added | DavidPostill | And another one sensefulsolutions.com/2010/10/format-text-as-table.html | |
Jul 10, 2015 at 12:56 | comment | added | l4mpi | Found one on google: convertcsv.com/csv-to-flat-file.htm This seems to have all the options you'll ever need. | |
Jul 10, 2015 at 12:44 | comment | added | l4mpi | I'm pretty sure that there are already tools on the web which you can use to format a CSV input into a similar representation. This shouldn't be the responsibility of SE to implement; it's better to keep the SE editor simple and lightweight IMO. | |
Jul 10, 2015 at 11:30 | comment | added | 3-14159265358979323846264 | This all stems from the fact that I would like to improve my DB skills ... solving other people's problems is an ideal way to do this, but i haven't got time to go creating temporary tables every time i want to have a crack at answering a question. If i was better at DB stuff then maybe I would though, hey?! | |
Jul 10, 2015 at 11:26 | comment | added | 3-14159265358979323846264 | Lol. Suffer may be too strong, agreed, but I am talking about me making other people suffer with my formatting too! I'm no better than anyone else. Worse than most I expect! | |
Jul 10, 2015 at 11:24 | comment | added | Cerbrus | "Suffer" is a little exaggerated, don't you agree? I'm not saying the suggestion is a bad idea, just that it's not as simple as claiming some character as SQL block formatting indicator. | |
Jul 10, 2015 at 11:22 | comment | added | 3-14159265358979323846264 | I agree some new users are useless at formatting code (been there myself a few weeks ago!), but then why should the rest of us suffer because of their unfamiliarity/incompetence :0) | |
Jul 10, 2015 at 11:20 | comment | added | Cerbrus |
Okay, say we use a single pipeline (| ), like you'd use 4 spaces for a normal code block, what's to stop users from using the wrong formatting option? Users have enough trouble formatting code as it is, already. Those [] blocks you suggested seem more reliable, indeed.
|
|
Jul 10, 2015 at 11:17 | comment | added | 3-14159265358979323846264 |
Tough! I'm joking ... we already use 4 spaces to 'escape' code blocks ... I'm sure there must be a spare delimiter knocking around in the SO delimiter repository! Even enclosing the csv in a block like [SOCsvToTable] csv data [\SOCsvToTable] would work.
|
|
Jul 10, 2015 at 11:15 | comment | added | Cerbrus | What if someone actually wants to display some CSV data? | |
Jul 10, 2015 at 11:13 | history | asked | 3-14159265358979323846264 | CC BY-SA 3.0 |