create account

SteemSQL, it opens the door to data by verhp11

View this thread on: hive.blogpeakd.comecency.com
· @verhp11 ·
$0.83
SteemSQL, it opens the door to data
![](https://cdn.steemitimages.com/DQmNxcLqT2Wo5EfmiqQf14pEDYtDyB9cMTH1ZyoUtvfVKvy/image.png)
[Source](https://www.pexels.com/photo/business-charts-commerce-computer-265087/)
Almost every application on the Steem blockchain uses data from the Blockchain database. And there are a lot of way's to get that data. I ran into SteemSQL (I saw it mentioned in the Curie discord channel).  

@steemsql  is a actual copy of the Steem database in Microsoft SQL Server. Microsoft SQL Server is the RDBMS (Relational Database Management System) of Microsoft and is a widely used Database product.  There is a lot to say and think of Microsoft but a strong point of their products is that  almost every product can work with the other, for instance the Office Suite, all products (Word, Excel, Powerpoint, Outlook) can work or export to eachother. So for Microsoft SQL you can easy implort data from databases into word or excel, so this creates an 'easy' way of fetching data from the steemdatabase.


![Line-Break.png](https://cdn.steemitimages.com/DQmS3CcC2pwMMncn83ywS9oBzVpnSwa9YQy5CGYigpvk8ur/Line-Break.png)
<h1>So what is SQL?</h1>
SQL stands for Structured Query Language and is a kind of language with which you can 'talk' to a database. Many database vendors have a slightly different approach of the language but mostly it's tsql. (trnasact SQL). 

If you want to know some more about SQL you can have a look at [w3schools](https://www.w3schools.com/sql/default.asp).

But in basic you give the SQL server a command like this:

<code>Select author 
from comments
where author = 'verhp11'</code>

You litteraly say to the database: Read the table with comments, select all the authors who's name is verhp11.

The result:
verhp11
verhp11
verhp11
verhp11
verhp11
verhp11
verhp11
verhp11
verhp11
verhp11
verhp11

As you can see I get 11 returns of the same authorname, why is that? That is because I didn't tell the database to look for a unique name so to give me one record. This result (11 times) is because my name was registred with 11 comments in the database, so the database will return them all.

It goes to far to explain how you can achieve all the requirements you want to implement to only show that information that you want, but this is in a nutshell how SQL works. You ask the database for information with certain parameters, and the database returns you the information.

![Line-Break.png](https://cdn.steemitimages.com/DQmS3CcC2pwMMncn83ywS9oBzVpnSwa9YQy5CGYigpvk8ur/Line-Break.png)
<h1>What can you get from the Steem database?</h1>
Although I just started to have a look around, you can get almost all the information about everything that's happening on the Steem blockchain. 

- Information about posts
- Information about payouts
- Information about resteems
- Information about comments
- Information about flags
- and so on, and so on...

For instance

<code>
Select name, votes
from witnesses
order by votes desc</code>

will show a list of all witnesses ordered in the ammount of votes they got. 

![](https://cdn.steemitimages.com/DQmQEcHUWjehULy7EnTFzePBGjuFE6V1wGuJqJtuYF4xDdR/image.png)


<code>select top 20 author, title, body
from dbo.TxComments
where author like '%verhp11%'</code>

Gives the top 20 comments which I gave. The data that's shown are the author, title of the post (if applicable) and the body of the comment.

![](https://cdn.steemitimages.com/DQmdatfmnKpXajGvv1ABeXTDH386WQq7Wc9RRvRV4oEaZAw/image.png)

![Line-Break.png](https://cdn.steemitimages.com/DQmS3CcC2pwMMncn83ywS9oBzVpnSwa9YQy5CGYigpvk8ur/Line-Break.png)

Steemsql isn't free to use, you can either get access for a day (which cost 1 SBD) or you can get access for a month (which cost 10 SBD)..  So if you want to show statistics or want to gather more information then is available by default you can consider using @steemsql , it's easy to use without a lot of programknowledge.

Tools you can use for using the database are (for exmaple
- Microsoft SQL management Studio (free download)
- Linqpad (free  download)
- Excel
- Word
- Access

<h2>Have a great sunny day</h2>

---

<center><a href="https://steemit.com/qurator/@qurator/qurator-3-0-update-post-guidelines-or-registration-details-or-tier-changes"><img src="https://cdn.steemitimages.com/DQmdbayK1c8wHTdwEyghnUs922mVTm2J69Tr7yT4TGUXGZn/image.png"></a></center>

![Alt text](https://cdn.steemitimages.com/DQmXppjX2tRo6WJepiVEGPn2PQ95K1kBT5DvJwSJb1qszEh/image.png)
[Proud member of SMG](https://discord.gg/yFn5wmN")

---
<b><i><center>I fully support @s3rg3 and @exyle, who are witness with their developer group @blockbrothers for the Steem blockchain. If you want to support them, they would appreciate your vote [here](https://steemit.com/~witnesses).
<br>
They are the creators of Steemify, THE notification app for your Steemit account for IOS. </center></i></b>

___


<center>![steem-banner.jpg](https://steemitimages.com/DQmZ3UhNiAn3AkPEYVGRZ1afAzg7bEofMw6pQ7c6t9wMTTZ/steem-banner.jpg)</center>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorverhp11
permlinksteemsql-it-opens-the-door-to-data
categorysteemsql
json_metadata{"tags":["steemsql","steem","blockchain","data","busy"],"users":["steemsql","s3rg3","exyle","blockbrothers"],"image":["https://cdn.steemitimages.com/DQmNxcLqT2Wo5EfmiqQf14pEDYtDyB9cMTH1ZyoUtvfVKvy/image.png","https://cdn.steemitimages.com/DQmS3CcC2pwMMncn83ywS9oBzVpnSwa9YQy5CGYigpvk8ur/Line-Break.png","https://cdn.steemitimages.com/DQmQEcHUWjehULy7EnTFzePBGjuFE6V1wGuJqJtuYF4xDdR/image.png","https://cdn.steemitimages.com/DQmdatfmnKpXajGvv1ABeXTDH386WQq7Wc9RRvRV4oEaZAw/image.png","https://cdn.steemitimages.com/DQmdbayK1c8wHTdwEyghnUs922mVTm2J69Tr7yT4TGUXGZn/image.png","https://cdn.steemitimages.com/DQmXppjX2tRo6WJepiVEGPn2PQ95K1kBT5DvJwSJb1qszEh/image.png","https://steemitimages.com/DQmZ3UhNiAn3AkPEYVGRZ1afAzg7bEofMw6pQ7c6t9wMTTZ/steem-banner.jpg"],"links":["https://www.pexels.com/photo/business-charts-commerce-computer-265087/","https://www.w3schools.com/sql/default.asp","https://steemit.com/qurator/@qurator/qurator-3-0-update-post-guidelines-or-registration-details-or-tier-changes","https://discord.gg/yFn5wmN\"","https://steemit.com/~witnesses"],"app":"steemit/0.1","format":"markdown"}
created2018-07-04 07:25:51
last_update2018-07-04 07:25:51
depth0
children5
last_payout2018-07-11 07:25:51
cashout_time1969-12-31 23:59:59
total_payout_value0.733 HBD
curator_payout_value0.100 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4,970
author_reputation101,983,719,324,115
root_title"SteemSQL, it opens the door to data"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id63,349,671
net_rshares355,005,487,002
author_curate_reward""
vote details (55)
@bozz ·
This is really cool.  I haven't done any SQL programming since I was in college, but it was a very interesting class.  It is super powerful and I can see the benefit of having all of that data from the blockchain available to run queries on.
👍  
properties (23)
authorbozz
permlinkre-verhp11-steemsql-it-opens-the-door-to-data-20180710t150651305z
categorysteemsql
json_metadata{"tags":["steemsql"],"app":"steemit/0.1"}
created2018-07-10 15:09:18
last_update2018-07-10 15:09:18
depth1
children1
last_payout2018-07-17 15:09:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length241
author_reputation2,247,772,568,773,648
root_title"SteemSQL, it opens the door to data"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id64,172,747
net_rshares2,754,137,830
author_curate_reward""
vote details (1)
@verhp11 ·
I'm still thinking of a cool way to use it :)
properties (22)
authorverhp11
permlinkre-bozz-re-verhp11-steemsql-it-opens-the-door-to-data-20180710t152009789z
categorysteemsql
json_metadata{"tags":["steemsql"],"app":"steemit/0.1"}
created2018-07-10 15:20:12
last_update2018-07-10 15:20:12
depth2
children0
last_payout2018-07-17 15:20:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length45
author_reputation101,983,719,324,115
root_title"SteemSQL, it opens the door to data"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id64,174,119
net_rshares0
@larik359 ·
**Ru**
Приветствую. Представляю студию блокчейн-копирайтинга. Предлагаю наши услуги по написанию WhitePaper, созданию видеороликов , написанию уникальных статей и обзоров (в том числе для steemit), переводов.  Огромный опыт и большой штат сотрудников. Списко наших услуг и портфолио в нашем [телеграм канале]( @contentmakerstudio) или на [сайте](http://contentmaker.studio).
**En**
Hello everyone! I present to you our blockchain copywriting studio. We propose to you next services: writing WhitePaper, creating videos, , translations, writing unique articles and reviews (Including for steemit). Extensive experience and highly qualified team. List of services and portforlio in our [telegram channel](@contentmakerstudio) or on our [website](http://contentmaker.studio).
properties (22)
authorlarik359
permlinkre-verhp11-steemsql-it-opens-the-door-to-data-20180704t081350957z
categorysteemsql
json_metadata{"tags":["steemsql"],"links":["@contentmakerstudio","http://contentmaker.studio"],"app":"steemit/0.1"}
created2018-07-04 08:13:51
last_update2018-07-04 08:13:51
depth1
children0
last_payout2018-07-11 08:13:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length772
author_reputation-79,751,800,253
root_title"SteemSQL, it opens the door to data"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id63,354,498
net_rshares0
@steevc ·
$0.05
I've worked a lot with Oracle SQL so I should be able to handle this. Just not had time yet. I do want to do more coding with steemit.
👍  
properties (23)
authorsteevc
permlinkre-verhp11-steemsql-it-opens-the-door-to-data-20180704t075045694z
categorysteemsql
json_metadata{"tags":["steemsql"],"app":"steemit/0.1"}
created2018-07-04 07:50:48
last_update2018-07-04 07:50:48
depth1
children1
last_payout2018-07-11 07:50:48
cashout_time1969-12-31 23:59:59
total_payout_value0.036 HBD
curator_payout_value0.010 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length134
author_reputation1,376,596,139,949,694
root_title"SteemSQL, it opens the door to data"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id63,352,095
net_rshares20,748,035,423
author_curate_reward""
vote details (1)
@verhp11 ·
$0.06
yes then this shouldnt be a problem at all... I just am checking out which info could be interesting to extract.  For instance I wanted to look how many people now truely started a power down , just for the numbers :)
👍  
properties (23)
authorverhp11
permlinkre-steevc-re-verhp11-steemsql-it-opens-the-door-to-data-20180704t084307176z
categorysteemsql
json_metadata{"tags":["steemsql"],"app":"steemit/0.1"}
created2018-07-04 08:43:06
last_update2018-07-04 08:43:06
depth2
children0
last_payout2018-07-11 08:43:06
cashout_time1969-12-31 23:59:59
total_payout_value0.056 HBD
curator_payout_value0.001 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length217
author_reputation101,983,719,324,115
root_title"SteemSQL, it opens the door to data"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id63,357,396
net_rshares25,334,284,214
author_curate_reward""
vote details (1)