Started using HiveSQL and my FIRST Simple query - Top 50 accounts #HOLDING Liquid HIVE - Eliminated Accounts having more than a Million #HIVE...

Hey All,

Yes, I can code a bit and hence thought it would be interesting to first have a set up ready and then try out triggering some simple queries, see data and as I move along gain a deeper understanding of how HiveSQL works. My plan is to experiment with different queries, analyze the data, and gradually refine my approach to uncover meaningful insights. So starting with Basics right here and my first query is all about accounts holding Liquid #HIVE. The query restrict to the top 50 and can be refined accordingly by changing the Top value to any other number say 100 or more. Setting up my HiveSQL was pretty simple just follow the instructions - Register your HiveSQL account on doc.hivesql page and you should be good to have an account created for 1 HBD [Hive Backed Dollar]. OK before coming to the query part, you will need and SQL client to connect with HiveSQL and in my case I choose to use DBeaver which is a Free Universal Database Tool. I download the 24.3.5 version and with the credential that I created using the Register your HiveSQL account, I was able to login to the

host:: vip.hivesql.io
database: DBHive
port:: 1433

And now I was good to trigger queries. With some hit and trials initially and getting my MYSQL queries syntax right, I started executing queries to retrieve and analyze data. Through initial trial and error, I gradually became more comfortable with structuring efficient queries and interpreting the results. Here is the simple query to retrieve Top 50 #HIVE accounts HOLDING Liquid HIVE with their output and then there is a revised version of it to eliminate the users having more than a million #HIVE

Top 50 #HIVE accounts HOLDING Liquid HIVE

SELECT TOP 50 
    name AS account_name, 
    balance AS liquid_hive_balance
FROM Accounts
ORDER BY balance DESC;

Query Output

#Account NameLiquid HIVE Balance
1cold.dunamu137,532,682.303
2binance-hot240,908,113.963
3hive.fund37,614,565.522
4bt20hivedkdnel15,860,138.363
5freedom3,971,564.067
6bithumbsend22,072,032.132
7hot4.dunamu1,517,612.168
8hot1.dunamu1,428,260.670
9hot3.dunamu1,427,381.998
10hot2.dunamu1,421,147.847
11hot5.dunamu1,415,232.649
12honey-swap1,200,955.307
13huobi-withdrawal1,136,771.528
14gateiodeposit1,123,880.846
15keestone953,445.779
16mxchive841,261.089
17bhuz641,727.527
18blocktrades592,469.943
19jibberty567,930.469
20bittrex537,385.574
21mika533,804.807
22hivehbd500,413.243
23sternerz490,099.646
24omlakshmiom457,429.492
25user.dunamu418,117.113
26muchfun400,000.000
27alpha387,696.878
28ipromote339,659.573
29deepcrypto8338,949.194
30indodaxhive314,032.779
31coinex-hot312,124.038
32hendrikdegrote300,962.838
33alpha-homer298,670.646
34splinterlands283,410.982
35wolf-sl.cold265,711.427
36compa11ke2264,082.302
37teamsmooth-mm264,032.675
38x30260,733.163
39bitgethive241,026.165
40pfunk3228,064.780
41dele-puppy222,934.562
42arpolkin212,216.156
43ashleigh183,135.618
44anastacia183,135.618
45cleta183,135.617
46newsflash172,305.893
47probitred161,965.591
48another160,000.000
49bigbanginfinity159,066.789
50steempty157,891.097

Looking at the results it was clear that there are many exchange accounts that are coming into the picture and in order to get rid of those user accounts. I had to put in a WHERE clause and exclude accounts having 1 Million liquid #HIVE and here is the query with the output.

Top 50 #HIVE accounts HOLDING Liquid HIVE - Eliminated accounts having more than a Million #HIVE

SELECT TOP 50 
    name AS account_name, 
    balance AS liquid_hive_balance
FROM Accounts
WHERE balance <= 1000000  -- Exclude accounts with more than 1M HIVE
ORDER BY balance DESC;

Query Output

#Account NameLiquid HIVE Balance
1keestone953,445.779
2mxchive841,456.400
3bhuz641,727.527
4blocktrades592,469.943
5jibberty567,930.469
6bittrex537,385.574
7mika533,804.807
8hivehbd500,413.243
9sternerz490,099.646
10omlakshmiom457,429.492
11user.dunamu418,117.113
12muchfun400,000.000
13alpha387,696.878
14ipromote339,659.573
15deepcrypto8338,949.194
16indodaxhive314,032.779
17coinex-hot312,124.038
18hendrikdegrote300,962.838
19alpha-homer298,670.646
20splinterlands283,410.982
21wolf-sl.cold265,711.427
22compa11ke2264,082.302
23teamsmooth-mm264,032.675
24x30260,733.163
25bitgethive241,026.165
26pfunk3228,064.780
27dele-puppy222,934.562
28arpolkin212,216.156
29anastacia183,135.618
30ashleigh183,135.618
31cleta183,135.617
32newsflash172,305.893
33probitred161,965.591
34another160,000.000
35bigbanginfinity159,066.789
36steempty157,891.097
37steemmonsters155,847.503
38p4sp4sp4sp4s153,315.254
39delphisight149,476.205
40hitbtc-exchange146,086.156
41theycallmedan142,245.024
42gopax-deposit139,101.146
43introvert-dime136,553.582
44otisbrown127,519.761
45sandymeyer124,299.329
46somecallmejake116,455.566
47abit115,755.026
48xbtsio113,355.406
49renohq111,232.792
50wolf-sl109,544.977

More to come as I progress and to be honest it was a great learning experience interacting with HiveSQL getting the results for your queries and working out if there is a syntax error.

Started using HiveSQL and my FIRST Simple query - Top 50 accounts #HOLDING Liquid HIVE - Eliminated Accounts having more than a Million #HIVE...

#hivesql #DBeaver #learning #hivestatistics #data #datamining #hiveaccount #liquidhive

image source:: dbeaver

Best Regards
Paras

H2
H3
H4
Upload from PC
Video gallery
3 columns
2 columns
1 column
7 Comments