chunk_id
large_stringlengths
5
11
question_id
large_stringlengths
2
8
language
large_stringclasses
1 value
chunk_index
int64
0
8
chunk_text
large_stringlengths
106
3k
sparse_text
large_stringlengths
65
3.16k
dense_vector
listlengths
3.58k
3.58k
sparse_indices
listlengths
3
283
sparse_values
listlengths
3
283
export_source
large_stringclasses
1 value
17609793_c0
17609793
sql
0
Title: sql query for each day Problem title: sql query for each day Tags: sql, mariadb, mysql Problem: sql query for each day
sql query for each day sql query for each day sql mariadb mysql sql query for each day i have a table main: i want to create a query so for each day i get the sum of qty on that day and all days before that so for this data i get: thanks in advance
[ 0.0208740234375, -0.01275634765625, -0.00982666015625, 0.040283203125, -0.0167236328125, 0.006072998046875, -0.0133056640625, 0.01544189453125, 0.003936767578125, -0.0033416748046875, -0.01177978515625, -0.01806640625, -0.00750732421875, 0.005157470703125, -0.018310546875, 0.0108642578...
[ 91, 99247, 41, 1294, 100, 12638, 5155, 5786, 712, 275, 759, 7, 765, 23180, 5201, 3444, 28282, 2046, 10554, 111, 8096, 939, 98, 450, 756, 13312, 8108, 2053, 17, 45458, 129745 ]
[ 0.049346923828125, 0.25537109375, 0.16162109375, 0.156982421875, 0.1478271484375, 0.1805419921875, 0.2037353515625, 0.1199951171875, 0.0726318359375, 0.1407470703125, 0.06365966796875, 0.0108642578125, 0.00152587890625, 0.1107177734375, 0.0830078125, 0.055633544921875, 0.096008300781...
embed
5986439_c0
5986439
sql
0
Title: select data with mysql Problem title: select data with mysql Tags: sql, mysql, datetime-generation Problem: select data with mysql
select data with mysql select data with mysql sql mysql datetime-generation select data with mysql for instance if I have a table like this how can I write select statement to get output like this?
[ 0.003631591796875, -0.0037689208984375, 0.0020751953125, 0.0133056640625, -0.00537109375, -0.01263427734375, -0.0242919921875, 0.0120849609375, -0.0106201171875, -0.0296630859375, 0.002471923828125, -0.0031280517578125, -0.008544921875, -0.006500244140625, -0.0194091796875, -0.02221679...
[ 36849, 2053, 678, 759, 7, 99247, 5622, 6032, 48281, 100, 110527, 765, 23180, 1884, 903, 3642, 831, 33022, 63805, 2046, 140992 ]
[ 0.2314453125, 0.15380859375, 0.134033203125, 0.1326904296875, 0.051422119140625, 0.20751953125, 0.1060791015625, 0.160888671875, 0.14453125, 0.016387939453125, 0.03179931640625, 0.0234527587890625, 0.1868896484375, 0.0970458984375, 0.0728759765625, 0.032958984375, 0.0143280029296875,...
embed
54176142_c0
54176142
sql
0
Title: Least frequent in SQL Problem title: Least frequent in SQL Tags: sql, mysql Problem: Least frequent in SQL Code signals: Least, SQL
Least frequent in SQL Least frequent in SQL sql mysql Least SQL Least frequent in SQL I made a table which contain: I want to show the less frequent id which is 101 and 104 . I found out how to make the most frequent but how to shot the least frequent?
[ 0.0242919921875, 0.00012683868408203125, -0.0036468505859375, -0.017822265625, -0.002777099609375, -0.000072479248046875, -0.01385498046875, -0.03125, -0.002105712890625, -0.00102996826171875, 0.0023345947265625, -0.019287109375, 0.01434326171875, 0.01177978515625, -0.026611328125, 0.0...
[ 636, 4438, 103351, 23, 80866, 91, 99247, 759, 7, 87, 7228, 23180, 70541, 3444, 7639, 40715, 3447, 83, 21027, 136, 30994, 6, 3642, 3249, 70, 2684, 1284, 47, 51876, 19713 ]
[ 0.157958984375, 0.2474365234375, 0.305419921875, 0.0958251953125, 0.275146484375, 0.0355224609375, 0.218994140625, 0.10137939453125, 0.0196685791015625, 0.0148468017578125, 0.0275421142578125, 0.1776123046875, 0.06787109375, 0.07806396484375, 0.1280517578125, 0.2366943359375, 0.16052...
embed
22198532_c0
22198532
sql
0
Title: sql select throught join table Problem title: sql select throught join table Tags: join, sql Problem: sql select throught join table
sql select throught join table sql select throught join table join sql sql select throught join table Hy all, I need a little help with writing a select...the problem is the following: I have the following tables: I need to select those helps, whish has the ids i give. So for example if i give tag_id 2, than both help ...
[ 0.005828857421875, -0.01397705078125, -0.0198974609375, 0.0172119140625, -0.0064697265625, -0.019287109375, -0.030029296875, 0.02392578125, 0.006591796875, -0.0244140625, 0.00031280517578125, -0.00909423828125, -0.017333984375, -0.006378173828125, -0.0322265625, 0.01458740234375, -0....
[ 99247, 36849, 8305, 18, 33284, 23180, 91, 3905, 756, 3871, 10176, 4358, 32562, 2967, 25632, 112397, 148, 4745, 1556, 3447, 7, 17, 8337, 7909, 532, 116, 15044, 4734, 615, 37842, 25737, 513, 73, 5881, 6936, 30185, 4420, 787 ]
[ 0.20361328125, 0.2213134765625, 0.172119140625, 0.06329345703125, 0.219970703125, 0.187744140625, 0.00958251953125, 0.00921630859375, 0.0236968994140625, 0.057830810546875, 0.0677490234375, 0.1644287109375, 0.140869140625, 0.0859375, 0.0540771484375, 0.1671142578125, 0.00555419921875...
embed
5511878_c0
5511878
sql
0
Title: mysql join query Problem title: mysql join query Tags: mysql, sql Problem: mysql join query Code signals: product_id, test.com, product1
mysql join query mysql join query mysql sql product_id test.com product1 mysql join query I am using the 2 following MySQL tables: Sample tbl_customers Dataset Sample tbl_products Dataset want to join both tables. Thanks!
[ 0.004730224609375, 0.009521484375, -0.00787353515625, -0.00127410888671875, 0.006683349609375, 0.0234375, -0.032958984375, 0.00482177734375, 0.01434326171875, -0.028076171875, 0.0045166015625, 0.022705078125, -0.00933837890625, -0.0296630859375, -0.00634765625, 0.017578125, -0.006805...
[ 759, 7, 99247, 33284, 41, 1294, 12996, 532, 3034, 277, 418, 17368, 116, 25632, 157146, 23180, 947, 33209, 808, 9030, 11680, 188, 31648, 11809, 3509, 57877, 3444, 47, 15044 ]
[ 0.09783935546875, 0.0150604248046875, 0.1859130859375, 0.231201171875, 0.128173828125, 0.075439453125, 0.1751708984375, 0.07000732421875, 0.172119140625, 0.0316162109375, 0.04156494140625, 0.100830078125, 0.0404052734375, 0.0726318359375, 0.2166748046875, 0.217529296875, 0.0448913574...
embed
66322110_c0
66322110
sql
0
Title: SQL Split to columns Problem title: SQL Split to columns Tags: sql Problem: SQL Split to columns Code signals: SQL, Split, F100, Item, Form
SQL Split to columns SQL Split to columns sql SQL Split F100 Item Form SQL Split to columns How split sql to columns? Example Split to Thank you!
[ 0.0184326171875, -0.01611328125, -0.031982421875, 0.0137939453125, -0.01165771484375, 0.0037078857421875, -0.005828857421875, -0.00927734375, -0.01251220703125, 0.019287109375, 0.00555419921875, -0.0157470703125, 0.000308990478515625, 0.0263671875, -0.0213623046875, -0.0196533203125, ...
[ 80866, 46474, 47, 3365, 316, 1779, 91, 99247, 563, 3559, 78426, 15236, 11249, 65450, 89536, 8705, 38 ]
[ 0.2464599609375, 0.257568359375, 0.16748046875, 0.1456298828125, 0.1771240234375, 0.1214599609375, 0.0986328125, 0.2469482421875, 0.08953857421875, 0.185791015625, 0.15478515625, 0.177490234375, 0.07177734375, 0.209716796875, 0.119384765625, 0.047088623046875, 0.01025390625 ]
embed
75177311_c1
75177311
sql
1
020-06-11 2020-06-12 84.0000000000000000 4 293.82 2020-02-16 2020-02-18 73.4550000000000000 4 2236.92 2018-09-24 2018-09-27 559.2300000000000000 4
020-06-11 2020-06-12 84.0000000000000000 4 293.82 2020-02-16 2020-02-18 73.4550000000000000 4 2236.92 2018-09-24 2018-09-27 559.2300000000000000 4
[ -0.00115203857421875, 0.007720947265625, -0.025146484375, 0.0145263671875, -0.00823974609375, 0.0032806396484375, -0.00701904296875, 0.00506591796875, 0.0296630859375, 0.045166015625, 0.00311279296875, 0.0015716552734375, -0.01300048828125, -0.02197265625, -0.00555419921875, 0.01916503...
[ 6, 113266, 44037, 1662, 11075, 1530, 14885, 5, 28568, 197094, 201, 1702, 135527, 304, 43627, 2485, 1819, 361, 172508, 90393, 122216, 165160, 267, 38118, 2357, 3768, 4859, 151309, 7739 ]
[ 0.1363525390625, 0.271484375, 0.230712890625, 0.2254638671875, 0.240478515625, 0.1707763671875, 0.26953125, 0.1324462890625, 0.1766357421875, 0.292236328125, 0.2257080078125, 0.2548828125, 0.204833984375, 0.1907958984375, 0.1702880859375, 0.180419921875, 0.1375732421875, 0.15075683...
embed
39470125_c0
39470125
sql
0
Title: Having sum values in sql Problem title: Having sum values in sql Tags: sql, sql-server Problem: Having sum values in sql Code signals: Having
Having sum values in sql Having sum values in sql sql sql-server Having Having sum values in sql Assume the following sample data: I want to have my output contain one record for each value of column a and b, and also sum of column d by distinct c. So, my end result should look like this: is there any specific statemen...
[ 0.01177978515625, -0.01409912109375, -0.0028228759765625, 0.0128173828125, -0.0291748046875, -0.0245361328125, -0.0040283203125, 0.00080108642578125, 0.0145263671875, -0.00360107421875, -0.007293701171875, -0.00592041015625, 0.007293701171875, -0.0126953125, -0.0159912109375, 0.0070190...
[ 171855, 10554, 142424, 23, 91, 99247, 39642, 66596, 121413, 2053, 3444, 765, 140992, 70541, 1632, 17164, 100, 12638, 34292, 3365, 316, 19, 10, 136, 876, 104, 117781, 501, 3564, 16750, 6713, 1884, 29458, 63805, 20594, 903, 80866 ]
[ 0.1727294921875, 0.258056640625, 0.2257080078125, 0.1068115234375, 0.0506591796875, 0.247802734375, 0.13916015625, 0.034393310546875, 0.1318359375, 0.04766845703125, 0.1138916015625, 0.08935546875, 0.1588134765625, 0.111083984375, 0.09326171875, 0.1595458984375, 0.0217742919921875, ...
embed
9656883_c0
9656883
sql
0
Title: sql - get parent values based on id Problem title: sql - get parent values based on id Tags: sql Problem: sql - get parent values based on id
sql - get parent values based on id sql - get parent values based on id sql sql - get parent values based on id I have a table named as employee employee table fields and sample values Here I need to take the name field value of current, parent and grand parent values for given id value. I need the output as below Assu...
[ 0.01806640625, -0.006591796875, -0.01611328125, -0.0024261474609375, -0.03173828125, -0.019775390625, -0.01055908203125, 0.0079345703125, -0.0093994140625, -0.0235595703125, 0.0019073486328125, -0.004241943359375, -0.0196533203125, 0.00592041015625, -0.02001953125, -0.00360107421875, ...
[ 91, 99247, 2046, 49129, 142424, 35509, 98, 3447, 20, 87, 765, 23180, 24, 4806, 237, 188183, 44457, 121413, 11853, 3871, 47, 5646, 9351, 34292, 43581, 9963, 34475, 140992, 35064, 66596, 70, 107730, 201, 84751, 11249, 831, 33022, 41, 1294, ...
[ 0.043304443359375, 0.252685546875, 0.140869140625, 0.2349853515625, 0.2415771484375, 0.1622314453125, 0.1015625, 0.18505859375, 0.0304107666015625, 0.0142364501953125, 0.0174102783203125, 0.1798095703125, 0.00244140625, 0.0221405029296875, 0.013885498046875, 0.1640625, 0.16650390625,...
embed
20661035_c0
20661035
sql
0
Title: SQL table column filling Problem title: SQL table column filling Tags: sql Problem: SQL table column filling Code signals: SQL, EFF_DT, END_DATE
SQL table column filling SQL table column filling sql SQL EFF_DT END_DATE SQL table column filling i have a table A as I need a temp table #temp as What is the best way to achieve this? END_DATE for an EFF_DT is 1 day less than next EFF_DT in order of sorting
[ 0.0086669921875, -0.0218505859375, -0.02685546875, 0.0257568359375, -0.032958984375, 0.021728515625, -0.0028076171875, 0.00518798828125, 0.000934600830078125, 0.049072265625, -0.00457763671875, -0.012451171875, 0.0036468505859375, 0.0172119140625, -0.03662109375, 0.0037078857421875, ...
[ 80866, 23180, 3365, 316, 26292, 214, 99247, 241, 30110, 454, 41072, 39015, 397, 35746, 17, 765, 62, 3871, 20805, 468, 34224, 237, 70, 2965, 3917, 69307, 903, 6, 83, 106, 5155, 40715, 11737, 12989, 12096 ]
[ 0.21875, 0.198974609375, 0.100341796875, 0.117919921875, 0.1651611328125, 0.05975341796875, 0.158935546875, 0.0723876953125, 0.2161865234375, 0.059844970703125, 0.2049560546875, 0.1834716796875, 0.1234130859375, 0.1407470703125, 0.03045654296875, 0.009674072265625, 0.1143798828125, ...
embed
23720339_c0
23720339
sql
0
Title: Get top n most used tags Problem title: Get top n most used tags Tags: sql, php, mysql Problem: Get top n most used tags Code signals: Get, html5
Get top n most used tags Get top n most used tags sql php mysql Get html5 Get top n most used tags Hello guys i am trying to get the most used tags from the database as show below: I want to get the n most used tags in this table I hoping you guys can help me set up a SQL Query, i cant find myself a way to start, thank...
[ 0.0123291015625, 0.00537109375, 0.01251220703125, -0.023193359375, -0.018310546875, 0.00909423828125, 0.002166748046875, -0.00457763671875, -0.00124359130859375, -0.056396484375, 0.0172119140625, -0.031982421875, -0.012939453125, 0.004150390625, -0.027099609375, 0.00537109375, -0.006...
[ 20779, 2663, 653, 2684, 11814, 69141, 99247, 3958, 759, 7693, 758, 35378, 51484, 31577, 2046, 70, 1295, 63399, 7639, 35064, 3444, 47, 903, 23180, 156377, 4358, 5423, 1257, 80866, 58836, 53, 45767, 7413, 35978, 4034 ]
[ 0.0906982421875, 0.149169921875, 0.1558837890625, 0.147216796875, 0.1810302734375, 0.254638671875, 0.1527099609375, 0.1212158203125, 0.06201171875, 0.1114501953125, 0.1033935546875, 0.01318359375, 0.044189453125, 0.050750732421875, 0.09295654296875, 0.03765869140625, 0.00521850585937...
embed
30495048_c0
30495048
sql
0
Title: Sql to group by 36 hours Problem title: Sql to group by 36 hours Tags: t-sql, sql, sql-server Problem: Sql to group by 36 hours Code signals: Sql
Sql to group by 36 hours Sql to group by 36 hours t-sql sql sql-server Sql Sql to group by 36 hours How do you write sql to return back results grouped by a 36 hour time period. With the results returning back the starting date of the 36 hour period, which would be be midnight. example data in table results wanted retu...
[ 0.0101318359375, -0.0048828125, -0.00506591796875, -0.017333984375, -0.030029296875, -0.0289306640625, -0.035400390625, 0.007537841796875, 0.0113525390625, -0.00469970703125, -0.0238037109375, -0.0034942626953125, 0.00970458984375, -0.003204345703125, -0.0023651123046875, 0.0244140625,...
[ 159, 99247, 47, 21115, 390, 4039, 21974, 808, 9, 7, 91, 39642, 11249, 54, 33022, 30646, 4420, 50339, 37769, 71, 56816, 1733, 14922, 72134, 5622, 2806, 186, 4122, 54350, 27781, 2053, 23180, 36663, 176377 ]
[ 0.074462890625, 0.27783203125, 0.114990234375, 0.25244140625, 0.1383056640625, 0.285888671875, 0.24951171875, 0.1383056640625, 0.039215087890625, 0.07769775390625, 0.09124755859375, 0.1424560546875, 0.009368896484375, 0.00921630859375, 0.1578369140625, 0.164306640625, 0.1351318359375...
embed
28310489_c0
28310489
sql
0
Title: Sum two amounts per ID Problem title: Sum two amounts per ID Tags: sql, oracle-database Problem: Sum two amounts per ID Code signals: Sum, Amount
Sum two amounts per ID Sum two amounts per ID sql oracle-database Sum Amount Sum two amounts per ID I have a table with two amounts per ID: How do I create a query to return the total of the two amounts for each ID? Like this:
[ 0.01544189453125, -0.01007080078125, -0.01519775390625, 0.040283203125, -0.01068115234375, -0.005950927734375, -0.0004062652587890625, 0.023681640625, 0.018798828125, 0.00836181640625, 0.0072021484375, 0.0281982421875, -0.0185546875, -0.021728515625, 0.0169677734375, 0.01171875, -0.0...
[ 36335, 6626, 41170, 7, 117, 11338, 99247, 3620, 11030, 10135, 37382, 62, 121147, 23180, 678, 11249, 54, 28282, 41, 1294, 47, 30646, 3622, 111, 70, 100, 12638, 18852, 903 ]
[ 0.239013671875, 0.2071533203125, 0.224365234375, 0.07098388671875, 0.167236328125, 0.2203369140625, 0.188232421875, 0.111328125, 0.164794921875, 0.0308990478515625, 0.14404296875, 0.0174407958984375, 0.2276611328125, 0.2000732421875, 0.012847900390625, 0.041290283203125, 0.0037536621...
embed
44521415_c0
44521415
sql
0
Title: sql error syntax declare Problem title: sql error syntax declare Tags: mysql, sql Problem: sql error syntax declare sql error1 here sql error2 here
sql error syntax declare sql error syntax declare mysql sql sql error syntax declare sql error1 here sql error2 here
[ 0.0147705078125, 0.00799560546875, -0.032470703125, -0.0023956298828125, -0.0196533203125, 0.01544189453125, -0.037109375, -0.01397705078125, 0.006988525390625, 0.01080322265625, 0.0177001953125, 0.0098876953125, 0.011962890625, -0.0107421875, 0.0257568359375, 0.002410888671875, -0.0...
[ 91, 99247, 18499, 6002, 86531, 159978, 759, 418, 3688, 304 ]
[ 0.064208984375, 0.2186279296875, 0.2181396484375, 0.1566162109375, 0.13671875, 0.235107421875, 0.07525634765625, 0.07403564453125, 0.1383056640625, 0.10723876953125 ]
embed
51435064_c0
51435064
sql
0
Title: postgresql table select or insert Problem title: postgresql table select or insert Tags: sql, postgresql Problem: postgresql table select or insert
postgresql table select or insert postgresql table select or insert sql postgresql postgresql table select or insert hi everybody i have an issue in postgresql i have a table like this and i have date table like so the problem is i'm new in postgresql and i want make another table like msisdn different but date still r...
[ -0.0021820068359375, -0.0142822265625, -0.0029296875, 0.00823974609375, -0.01434326171875, -0.0203857421875, 0.0003490447998046875, 0.01373291015625, 0.004364013671875, 0.012939453125, 0.02685546875, 0.007476806640625, -0.01434326171875, 0.0037078857421875, -0.005828857421875, 0.022705...
[ 1305, 17562, 99247, 23180, 36849, 707, 183540, 1274, 195348, 31089, 23, 1884, 903, 5622, 2967, 3525, 3444, 3249, 15700, 6023, 19, 12921, 1284, 7464, 28601, 59090, 6494, 175457 ]
[ 0.074462890625, 0.1243896484375, 0.1790771484375, 0.236328125, 0.2227783203125, 0.09527587890625, 0.2210693359375, 0.042694091796875, 0.09381103515625, 0.078857421875, 0.005096435546875, 0.08135986328125, 0.0430908203125, 0.158203125, 0.06634521484375, 0.03326416015625, 0.05819702148...
embed
54811905_c0
54811905
sql
0
Title: Return clickhouse array as column Problem title: Return clickhouse array as column Tags: clickhouse, sql Problem: Return clickhouse array as column
Return clickhouse array as column Return clickhouse array as column clickhouse sql Return clickhouse array as column Is it possible with Clickhouse to have result containing a pair of array transformed as columns? Form this result: to : The idea is to not have to repeat the header values for each line. In my case, the ...
[ 0.00958251953125, -0.0174560546875, 0.00083160400390625, 0.032958984375, -0.00555419921875, 0.01312255859375, -0.006317138671875, -0.02099609375, 0.00482177734375, -0.002349853515625, -0.00144195556640625, 0.004608154296875, -0.010498046875, -0.003631591796875, -0.0128173828125, -0.009...
[ 173340, 18158, 23923, 10298, 53, 237, 3365, 316, 19, 99247, 442, 7722, 678, 21138, 765, 16750, 70541, 80836, 27198, 297, 1779, 15236, 47, 6528, 959, 119140, 10336, 56, 142424, 13315, 31251, 1238, 363, 36998, 390, 41, 33284, 420, 5442 ]
[ 0.204345703125, 0.1884765625, 0.22802734375, 0.177490234375, 0.1309814453125, 0.07855224609375, 0.1700439453125, 0.1796875, 0.0168304443359375, 0.174072265625, 0.0218048095703125, 0.1478271484375, 0.0256805419921875, 0.2119140625, 0.03375244140625, 0.178955078125, 0.094970703125, 0...
embed
31493498_c0
31493498
sql
0
Title: creating table in in cmd Problem title: creating table in in cmd Tags: sql, oracle-database Problem: creating table in in cmd Code signals: varchar2
creating table in in cmd creating table in in cmd sql oracle-database varchar2 creating table in in cmd I am getting an error:
[ 0.0274658203125, -0.0014495849609375, -0.0157470703125, 0.039306640625, 0.01025390625, 0.0013275146484375, 0.01361083984375, -0.0035400390625, -0.01177978515625, 0.01708984375, -0.00494384765625, 0.005279541015625, -0.006439208984375, -0.006683349609375, -0.03271484375, 0.028076171875,...
[ 105233, 23180, 23, 1827, 71, 99247, 3620, 11030, 37382, 285, 9254, 304, 20949, 18499, 12 ]
[ 0.174072265625, 0.2247314453125, 0.15576171875, 0.21044921875, 0.0858154296875, 0.1280517578125, 0.0732421875, 0.10205078125, 0.0965576171875, 0.0614013671875, 0.1551513671875, 0.1197509765625, 0.0169219970703125, 0.18408203125, 0.0190277099609375 ]
embed
23633790_c0
23633790
sql
0
Title: SQL "splitted" group by Problem title: SQL "splitted" group by Tags: mysql, sql Problem: SQL "splitted" group by Code signals: SQL
SQL "splitted" group by SQL "splitted" group by mysql sql SQL SQL "splitted" group by I have the following table: I need to obtain a selection groub by first column and then 4 columns with the sum of: col2 for A flag, col3 for A flag, col2 for B flag and col3 for B flag. How can I get this? SQLFiddl...
[ 0.017822265625, 0.0030670166015625, -0.01007080078125, -0.01104736328125, -0.0322265625, 0.0135498046875, -0.00860595703125, 0.00482177734375, 0.0133056640625, 0.01416015625, -0.005096435546875, 0.017333984375, 0.00007295608520507812, 0.00372314453125, -0.019287109375, 0.00830078125, ...
[ 80866, 7008, 4353, 3674, 21115, 390, 759, 99247, 25632, 23180, 3871, 113054, 10, 132216, 11969, 5829, 5117, 3365, 316, 201, 1779, 10554, 304, 100, 62, 49938, 363, 335, 2046, 903, 6159, 4028, 133 ]
[ 0.268310546875, 0.083251953125, 0.1884765625, 0.138427734375, 0.2188720703125, 0.1468505859375, 0.07464599609375, 0.1998291015625, 0.0225677490234375, 0.178466796875, 0.0931396484375, 0.1290283203125, 0.0243682861328125, 0.1939697265625, 0.110107421875, 0.1719970703125, 0.04272460937...
embed
35986246_c0
35986246
sql
0
Title: sql sorting by subgroup sum data Problem title: sql sorting by subgroup sum data Tags: sql, group-by, sorting Problem: sql sorting by subgroup sum data
sql sorting by subgroup sum data sql sorting by subgroup sum data sql group-by sorting sql sorting by subgroup sum data How sort this to (by third column sum): since (55+44+8) > (15+3+34)
[ 0.01904296875, -0.00885009765625, 0.00141143798828125, 0.02197265625, -0.02734375, -0.01104736328125, -0.0126953125, 0.01263427734375, 0.0078125, 0.0079345703125, -0.007110595703125, 0.00830078125, 0.0019683837890625, -0.0218505859375, -0.019287109375, -0.00167083740234375, -0.013854...
[ 91, 99247, 12096, 214, 390, 1614, 51588, 10554, 2053, 21115, 1272, 11249, 903, 47, 50960, 3365, 316, 19, 16792, 15, 11663, 1328, 12465, 50490, 977, 20808, 85398, 121763 ]
[ 0.0277252197265625, 0.2391357421875, 0.2744140625, 0.06976318359375, 0.0753173828125, 0.1822509765625, 0.2308349609375, 0.2413330078125, 0.1416015625, 0.163330078125, 0.0997314453125, 0.06396484375, 0.10491943359375, 0.1551513671875, 0.2415771484375, 0.16015625, 0.176025390625, 0.0...
embed
40319986_c0
40319986
sql
0
Title: MySql - average each rows Problem title: MySql - average each rows Tags: sql, mysql Problem: MySql - average each rows Code signals: MySql, ID_USER, AVG
MySql - average each rows MySql - average each rows sql mysql MySql ID_USER AVG MySql - average each rows I have this table: How can average for each id_user. To have a table of this type: Thank you!
[ 0.00494384765625, -0.0184326171875, 0.0062255859375, 0.02197265625, -0.000766754150390625, 0.0205078125, 0.0206298828125, 0.00872802734375, 0.00921630859375, -0.0037689208984375, -0.00116729736328125, -0.0218505859375, -0.0022735595703125, -0.002960205078125, -0.006805419921875, 0.0250...
[ 2646, 294, 99247, 83080, 12638, 15555, 7, 759, 11338, 1062, 50184, 62, 79855, 87, 765, 903, 23180, 11249, 831, 100, 3447, 65918, 10644 ]
[ 0.128662109375, 0.06536865234375, 0.2130126953125, 0.25048828125, 0.1722412109375, 0.2054443359375, 0.06573486328125, 0.101318359375, 0.10009765625, 0.10498046875, 0.05926513671875, 0.040008544921875, 0.1904296875, 0.003997802734375, 0.000213623046875, 0.0300445556640625, 0.177368164...
embed
51188366_c0
51188366
sql
0
Title: Hours on a day between dates Problem title: Hours on a day between dates Tags: sql, sql-server Problem: Hours on a day between dates Code signals: Hours
Hours on a day between dates Hours on a day between dates sql sql-server Hours Hours on a day between dates I have a table with the following columns: gkey, ata, atd ata and atd are both date times. I want to work out hours per day that something arrived before it left. Example data: Expected Result:
[ 0.004669189453125, -0.0267333984375, -0.006378173828125, 0.01177978515625, -0.0203857421875, -0.0224609375, -0.020263671875, 0.0038604736328125, 0.00640869140625, -0.021484375, -0.038330078125, -0.0186767578125, -0.01104736328125, 0.01312255859375, 0.00933837890625, -0.00860595703125, ...
[ 133250, 7, 98, 10, 5155, 17721, 112474, 91, 99247, 9, 39642, 87, 765, 23180, 25632, 3365, 316, 706, 19770, 4522, 99, 71, 136, 621, 15044, 5622, 20028, 3444, 47, 4488, 1810, 21974, 117, 450, 9844, 174920, 8108, 25737, 89536, 2053, 60075,...
[ 0.25341796875, 0.084228515625, 0.1668701171875, 0.079833984375, 0.1798095703125, 0.239501953125, 0.193603515625, 0.010711669921875, 0.1964111328125, 0.006134033203125, 0.145263671875, 0.0201416015625, 0.01617431640625, 0.164306640625, 0.03265380859375, 0.06964111328125, 0.07800292968...
embed
27469565_c0
27469565
sql
0
Title: mysql get free time set set meeting Problem title: mysql get free time set set meeting Tags: sql, mysql, time Problem: mysql get free time set set meeting
mysql get free time set set meeting mysql get free time set set meeting sql mysql time mysql get free time set set meeting Ι have a table in MySQL with I need the sql query to give back to me the time that I can set a new meeting for 30 min
[ 0.00714111328125, -0.0035552978515625, 0.01031494140625, -0.00154876708984375, -0.0135498046875, -0.0361328125, -0.0244140625, 0.0003566741943359375, 0.0103759765625, -0.01080322265625, 0.007720947265625, 0.036865234375, 0.01446533203125, -0.0017242431640625, -0.0303955078125, 0.009033...
[ 759, 99247, 2046, 4092, 1733, 5423, 41714, 91, 7, 11393, 23180, 157146, 3871, 41, 1294, 8337, 4420, 831, 3525, 100, 496, 881 ]
[ 0.092041015625, 0.1868896484375, 0.0865478515625, 0.1781005859375, 0.211181640625, 0.2003173828125, 0.2091064453125, 0.009246826171875, 0.01214599609375, 0.044952392578125, 0.1275634765625, 0.202880859375, 0.06298828125, 0.073974609375, 0.050750732421875, 0.0103759765625, 0.059082031...
embed
44563205_c0
44563205
sql
0
Title: Need help in joining 4 tables Problem title: Need help in joining 4 tables Tags: join, sql Problem: Need help in joining 4 tables Code signals: Need, Ccode
Need help in joining 4 tables Need help in joining 4 tables join sql Need Ccode Need help in joining 4 tables I have following 4 tables. T1 T2 T3 T4 The result set I need should satisfy the following condition. I need t4.code, t4.name, sum(amount) as s1 if bill type =0, sum(t1.amount)as s2 if billtype =1 i.e the result...
[ 0.01239013671875, 0.0252685546875, -0.00543212890625, 0.00066375732421875, -0.0194091796875, 0.0157470703125, -0.019775390625, 0.00060272216796875, 0.0145263671875, -0.00921630859375, -0.01263427734375, -0.021240234375, -0.0274658203125, -0.0108642578125, -0.0255126953125, 0.0224609375...
[ 52889, 4358, 23, 33284, 214, 201, 23180, 7, 91, 99247, 313, 40899, 25632, 384, 418, 304, 363, 617, 16750, 5423, 3871, 5608, 40407, 35431, 808, 11627, 10554, 121147, 237, 54727, 10644, 145407, 162, 50986, 33000, 186 ]
[ 0.0987548828125, 0.1607666015625, 0.03857421875, 0.1866455078125, 0.08856201171875, 0.1923828125, 0.26806640625, 0.08184814453125, 0.05267333984375, 0.2108154296875, 0.0531005859375, 0.252197265625, 0.075927734375, 0.0400390625, 0.03900146484375, 0.04107666015625, 0.0616455078125, ...
embed
23793529_c0
23793529
sql
0
Title: Merge from 1 table to another Problem title: Merge from 1 table to another Tags: sql Problem: Merge from 1 table to another Code signals: 1, Merge, k12, k11
Merge from 1 table to another Merge from 1 table to another sql 1 Merge k12 k11 Merge from 1 table to another I have the following two tables: What I want to do is to merge the data in table 2 with the data in table 1 if there is no matching id. So 123456789 should be ignored as the member already shows with the id k12...
[ 0.01092529296875, 0.02490234375, -0.009033203125, 0.01470947265625, 0.0035400390625, -0.0035400390625, -0.020751953125, 0.002685546875, 0.025634765625, 0.0107421875, -0.00823974609375, 0.00634765625, -0.002960205078125, 0.0166015625, -0.0262451171875, 0.0024566650390625, -0.005096435...
[ 6035, 429, 1295, 106, 23180, 47, 15700, 99247, 472, 1530, 1662, 25632, 6626, 3444, 42564, 2053, 116, 678, 110, 14858, 214, 3447, 37638, 121317, 153781, 5608, 124962, 32786, 21771, 45831, 54877, 105546, 65040, 49814, 615 ]
[ 0.1788330078125, 0.09576416015625, 0.0692138671875, 0.0638427734375, 0.18408203125, 0.10699462890625, 0.10791015625, 0.1710205078125, 0.05316162109375, 0.1905517578125, 0.16943359375, 0.0350341796875, 0.07440185546875, 0.024993896484375, 0.2115478515625, 0.08843994140625, 0.133544921...
embed
48073439_c0
48073439
sql
0
Title: How to make rows shuffle? Problem title: How to make rows shuffle? Tags: postgresql, sql Problem: How to make rows shuffle? Code signals: table, How, cst_id
How to make rows shuffle? How to make rows shuffle? postgresql sql table How cst_id How to make rows shuffle? There is a table with over 10+ rows, and now needed to shuffle all rows randomly and create a new table on it. any ideas ? Using select * from table order by random() seems slow. raw table is like,and the targe...
[ -0.00188446044921875, -0.00262451171875, 0.0146484375, 0.0030975341796875, 0.000629425048828125, -0.007537841796875, 0.0067138671875, 0.005096435546875, 0.0045166015625, -0.004150390625, -0.0050048828125, 0.005096435546875, 0.00579833984375, 0.020263671875, -0.01348876953125, 0.0077514...
[ 11249, 47, 3249, 15555, 7, 170052, 32, 1305, 17562, 99247, 23180, 501, 271, 454, 532, 645, 209, 1328, 5036, 44841, 756, 96759, 28282, 3525, 98, 25647, 36849, 661, 1295, 12989, 37202, 72803, 49649, 1884, 30388, 3365, 316, 84797, 3934, 6626...
[ 0.084716796875, 0.07635498046875, 0.1192626953125, 0.2325439453125, 0.1298828125, 0.27392578125, 0.02630615234375, 0.03363037109375, 0.1292724609375, 0.1563720703125, 0.1685791015625, 0.006011962890625, 0.1309814453125, 0.00067138671875, 0.13525390625, 0.06787109375, 0.079345703125, ...
embed
55700311_c0
55700311
sql
0
Title: Getting previous month data Problem title: Getting previous month data Tags: ms-access, sql Problem: Getting previous month data Code signals: Getting, Item
Getting previous month data Getting previous month data ms-access sql Getting Item Getting previous month data I have a transaction records table in ms-access with item field, date field and quantity field. I would like to add a new column, with transaction quantity for the previous month. For example, I have a row tha...
[ -0.003387451171875, -0.004180908203125, 0.005279541015625, 0.039794921875, 0.00007915496826171875, -0.0159912109375, 0.00469970703125, -0.0059814453125, -0.00408935546875, -0.0169677734375, 0.01025390625, 0.005706787109375, 0.0184326171875, -0.01031494140625, -0.0250244140625, 0.010559...
[ 210732, 96362, 31150, 2053, 68163, 9, 113041, 99247, 78426, 87, 124161, 115923, 23180, 23, 678, 35735, 44457, 5622, 102134, 939, 1884, 15190, 3525, 3365, 316, 19, 27781, 15555, 33342, 903, 3444, 10, 45831, 6713, 42459, 41, 1294, 17203 ]
[ 0.13818359375, 0.2093505859375, 0.173095703125, 0.1822509765625, 0.1278076171875, 0.055999755859375, 0.2469482421875, 0.1322021484375, 0.18408203125, 0.0167999267578125, 0.1925048828125, 0.1224365234375, 0.1407470703125, 0.039581298828125, 0.033294677734375, 0.1744384765625, 0.130004...
embed
59515672_c0
59515672
sql
0
Title: PostgreSQL simple query Problem title: PostgreSQL simple query Tags: postgresql, sql Problem: PostgreSQL simple query Code signals: PostgreSQL, NYT, Guardian
PostgreSQL simple query PostgreSQL simple query postgresql sql PostgreSQL NYT Guardian PostgreSQL simple query My problem is to write a query (PostgreSQL) to get a 'propno' where 'newsname' is not equal 'NYT' (the answer is 40). Thanks for help
[ 0.0242919921875, 0.005523681640625, -0.005157470703125, 0.01513671875, -0.00274658203125, -0.00127410888671875, -0.0076904296875, -0.01092529296875, 0.007110595703125, -0.0238037109375, 0.030517578125, -0.0250244140625, -0.004852294921875, 0.015869140625, -0.0308837890625, 0.0104370117...
[ 2795, 7134, 158897, 8781, 41, 1294, 1305, 17562, 99247, 22056, 618, 81589, 2967, 33022, 49411, 16, 2046, 36290, 157, 7177, 11627, 25, 83, 959, 105950, 25182, 35166, 1112, 4358 ]
[ 0.1082763671875, 0.1590576171875, 0.2052001953125, 0.1541748046875, 0.1588134765625, 0.1436767578125, 0.06842041015625, 0.1341552734375, 0.13427734375, 0.154296875, 0.1927490234375, 0.277587890625, 0.0865478515625, 0.08056640625, 0.0880126953125, 0.0386962890625, 0.0802001953125, 0...
embed
8813062_c0
8813062
sql
0
Title: MYSQL get row rank Problem title: MYSQL get row rank Tags: sql, php, mysql Problem: MYSQL get row rank Code signals: MYSQL, ex1, ex2, ex3, ex4, SELECT, WHERE
MYSQL get row rank MYSQL get row rank sql php mysql MYSQL ex1 ex2 ex3 ex4 SELECT WHERE MYSQL get row rank I have a mysql table and I need to get random row and get the rank of total view for example : $rand may be 1 or 2 etc .. I need to get rank of this row by totalview thank's
[ 0.0167236328125, 0.0196533203125, 0.006591796875, 0.0030670166015625, -0.0164794921875, -0.0111083984375, 0.0120849609375, -0.002655029296875, 0.0047607421875, 0.0322265625, 0.01104736328125, -0.01373291015625, -0.003753662109375, -0.0091552734375, -0.03857421875, -0.01483154296875, ...
[ 54133, 158897, 2046, 15555, 30648, 99247, 3958, 759, 1119, 418, 304, 363, 617, 6755, 144832, 841, 30096, 23180, 3871, 96759, 3622, 21455, 3650, 37214, 1543, 186, 106, 116, 22751 ]
[ 0.10693359375, 0.2431640625, 0.117431640625, 0.2344970703125, 0.259521484375, 0.144775390625, 0.10546875, 0.068115234375, 0.09136962890625, 0.0206756591796875, 0.013885498046875, 0.03692626953125, 0.101806640625, 0.04010009765625, 0.177001953125, 0.038848876953125, 0.0670166015625, ...
embed
68302079_c1
68302079
sql
1
08-24 14:00:00.000 2020-08-24 14:30:00.000 2020-08-24 15:30:00.000 Second NULL 2020-08-24 13:00:00.000 2020-08-24 14:30:00.000 Code signals: Getting, sql-server-2008
08-24 14:00:00.000 2020-08-24 14:30:00.000 2020-08-24 15:30:00.000 Second NULL 2020-08-24 13:00:00.000 2020-08-24 14:30:00.000 Code signals: Getting, sql-server-2008
[ 0.0262451171875, -0.000827789306640625, 0.006561279296875, 0.03515625, -0.02099609375, -0.004547119140625, -0.0306396484375, 0.00543212890625, 0.00634765625, 0.035888671875, -0.010986328125, -0.0096435546875, 0.0035552978515625, -0.0081787109375, -0.020263671875, 0.006561279296875, 0...
[ 3843, 33503, 52727, 8557, 11075, 47355, 2357, 160584, 155299, 77648, 18057, 23708, 65838, 28864, 26073, 7, 210732, 91, 99247, 39642, 105011 ]
[ 0.1214599609375, 0.142822265625, 0.1387939453125, 0.043609619140625, 0.129638671875, 0.10748291015625, 0.1109619140625, 0.1092529296875, 0.07659912109375, 0.16552734375, 0.1715087890625, 0.1910400390625, 0.07012939453125, 0.2158203125, 0.239013671875, 0.04754638671875, 0.244873046875...
embed
31507499_c0
31507499
sql
0
Title: sql :creating table in cmd Problem title: sql :creating table in cmd Tags: sql, oracle-database Problem: sql :creating table in cmd Code signals: SQL, varchar2
sql :creating table in cmd sql :creating table in cmd sql oracle-database SQL varchar2 sql :creating table in cmd i am getting an error: * ERROR at line 1:
[ 0.032470703125, -0.003448486328125, -0.015869140625, 0.039794921875, 0.007568359375, 0.000843048095703125, 0.0086669921875, -0.0030975341796875, -0.0125732421875, 0.012451171875, -0.0018463134765625, -0.0002727508544921875, -0.0033721923828125, -0.00469970703125, -0.0322265625, 0.01892...
[ 99247, 129147, 449, 23180, 23, 1827, 71, 3620, 11030, 37382, 80866, 285, 9254, 304, 444, 20949, 18499, 661, 151206, 24638, 99, 13315, 13806 ]
[ 0.1973876953125, 0.156005859375, 0.119873046875, 0.2349853515625, 0.08770751953125, 0.2122802734375, 0.129638671875, 0.09552001953125, 0.11376953125, 0.10003662109375, 0.162109375, 0.026336669921875, 0.1163330078125, 0.095703125, 0.007354736328125, 0.04656982421875, 0.1898193359375, ...
embed
56347005_c0
56347005
sql
0
Title: Row merging in sql Problem title: Row merging in sql Tags: sql Problem: Row merging in sql How to merge the duplicate records in single rows. Code signals: Row
Row merging in sql Row merging in sql sql Row Row merging in sql How to merge the duplicate records in single rows.
[ -0.00860595703125, 0.01318359375, -0.000705718994140625, 0.0125732421875, -0.0087890625, -0.0198974609375, -0.0091552734375, 0.00604248046875, 0.004425048828125, 0.016357421875, -0.0179443359375, -0.01031494140625, 0.0029754638671875, 0.005218505859375, -0.03076171875, -0.0013885498046...
[ 96190, 1143, 9966, 23, 91, 99247, 11249, 47, 42564, 70, 171763, 67, 115923, 11001, 6, 15555, 7 ]
[ 0.2154541015625, 0.1837158203125, 0.0948486328125, 0.1021728515625, 0.0693359375, 0.233154296875, 0.032745361328125, 0.04376220703125, 0.2322998046875, 0.029632568359375, 0.2198486328125, 0.1517333984375, 0.2064208984375, 0.1817626953125, 0.0369873046875, 0.2386474609375, 0.103149414...
embed
42515026_c0
42515026
sql
0
Title: Get the value based on row before Problem title: Get the value based on row before Tags: mysql, sql Problem: Get the value based on row before Code signals: Get
Get the value based on row before Get the value based on row before mysql sql Get Get the value based on row before Here is my table Given a value let's say 100, I need to get the first row of this value where the row before is equal to 0 (in the order of increasing A). The output would be :
[ -0.00628662109375, 0.0208740234375, -0.00689697265625, 0.02783203125, -0.02294921875, -0.02294921875, 0.005950927734375, 0.00830078125, 0.0169677734375, -0.0230712890625, 0.0125732421875, 0.0244140625, -0.025146484375, -0.00008344650268554688, -0.0172119140625, 0.008056640625, -0.009...
[ 20779, 70, 34292, 35509, 98, 15555, 8108, 759, 99247, 91, 23180, 77878, 805, 3871, 2046, 5117, 111, 105950, 757, 12989, 118055, 62, 140992, 2806 ]
[ 0.119384765625, 0.053375244140625, 0.21240234375, 0.1925048828125, 0.1268310546875, 0.2315673828125, 0.2001953125, 0.0950927734375, 0.188720703125, 0.004425048828125, 0.1475830078125, 0.0312347412109375, 0.1348876953125, 0.05316162109375, 0.09600830078125, 0.09002685546875, 0.0146484...
embed
50566331_c0
50566331
sql
0
Title: sql, limiting the hours Problem title: sql, limiting the hours Tags: sql, datetime, mysql Problem: sql, limiting the hours Code signals: Date, time_in, time_out
sql, limiting the hours sql, limiting the hours sql datetime mysql Date time_in time_out sql, limiting the hours Hie, i have been working on a simple data set like i was asked to limit the maximum number of extra hours within 2, that is the extra hours have to be compensated for a weekend on (Saturday or Sunday) extra ...
[ 0.005706787109375, -0.004730224609375, 0.000888824462890625, -0.00836181640625, 0.0025787353515625, -0.0159912109375, -0.04150390625, 0.015869140625, 0.00823974609375, -0.01373291015625, -0.0033721923828125, -0.027099609375, -0.002227783203125, 0.004150390625, -0.01263427734375, -0.010...
[ 91, 99247, 17475, 214, 70, 21974, 5622, 6032, 759, 7, 25512, 1733, 73, 6056, 2673, 17, 20697, 98, 8781, 2053, 5423, 37170, 47, 38132, 14012, 4173, 28032, 116, 186, 56381, 3674, 14000, 16989, 707, 52305, 757, 6489, 764, 43240, 72864, 136...
[ 0.071533203125, 0.2568359375, 0.2119140625, 0.0694580078125, 0.04571533203125, 0.259765625, 0.047454833984375, 0.086669921875, 0.101806640625, 0.03729248046875, 0.079345703125, 0.1285400390625, 0.03564453125, 0.1448974609375, 0.021820068359375, 0.009674072265625, 0.1136474609375, 0...
embed
33017005_c0
33017005
sql
0
Title: Running SUM in T-SQL Problem title: Running SUM in T-SQL Tags: sql-server, sql, t-sql Problem: Running SUM in T-SQL Code signals: Running, SUM, T-SQL, Count, HIT
Running SUM in T-SQL Running SUM in T-SQL sql-server sql t-sql Running SUM T-SQL Count HIT Running SUM in T-SQL Sorry for bad topic but I wasn't sure what to call it.. I have a table looking like this: I'm trying to make a select from this table where every time the SUM of row1 + row2 + row3 (etc) reaches 10, then it's...
[ 0.0184326171875, 0.02197265625, 0.01361083984375, 0.0186767578125, -0.0233154296875, -0.015625, -0.0286865234375, -0.00982666015625, 0.00543212890625, -0.0272216796875, -0.0036468505859375, 0.01446533203125, 0.002197265625, 0.0179443359375, -0.00150299072265625, 0.0263671875, 0.01904...
[ 28398, 592, 127944, 23, 384, 9, 158897, 99247, 39642, 808, 108210, 103385, 90502, 6494, 28451, 11782, 23180, 16487, 1884, 903, 31577, 3249, 36849, 11907, 1733, 15555, 418, 997, 304, 363, 111879, 58359, 90, 209, 10, 54529, 4034, 645, 13438, ...
[ 0.1563720703125, 0.101806640625, 0.27392578125, 0.07415771484375, 0.154541015625, 0.043975830078125, 0.2308349609375, 0.1500244140625, 0.09228515625, 0.1361083984375, 0.174560546875, 0.2432861328125, 0.009521484375, 0.0280914306640625, 0.0234222412109375, 0.018798828125, 0.1500244140...
embed
69612333_c0
69612333
sql
0
Title: Loop through two dates columns Problem title: Loop through two dates columns Tags: sql-server, sql Problem: Loop through two dates columns Code signals: to, Loop
Loop through two dates columns Loop through two dates columns sql-server sql to Loop Loop through two dates columns I want to loop through table has two dates column My table like I expect result as
[ 0.0303955078125, -0.01275634765625, -0.0245361328125, 0.036865234375, -0.005828857421875, 0.018798828125, -0.0228271484375, 0.006134033203125, 0.01507568359375, -0.0184326171875, -0.0106201171875, 0.00439453125, 0.00390625, 0.010498046875, -0.01177978515625, -0.006317138671875, -0.01...
[ 199694, 8305, 6626, 112474, 3365, 316, 91, 99247, 9, 39642, 47, 1779, 3444, 40956, 23180, 1556, 1884, 87, 41206, 16750, 237 ]
[ 0.18310546875, 0.171875, 0.1492919921875, 0.2093505859375, 0.1318359375, 0.1624755859375, 0.0161590576171875, 0.1827392578125, 0.0108642578125, 0.1265869140625, 0.07269287109375, 0.008087158203125, 0.0657958984375, 0.16796875, 0.1898193359375, 0.017822265625, 0.063232421875, 0.0080...
embed
18943934_c0
18943934
sql
0
Title: Sqlite GROUP BY priority Problem title: Sqlite GROUP BY priority Tags: sqlite, sql, group-by Problem: Sqlite GROUP BY priority Code signals: Sqlite, GROUP, SELECT
Sqlite GROUP BY priority Sqlite GROUP BY priority sqlite sql group-by Sqlite GROUP SELECT Sqlite GROUP BY priority this is my table and I want to group by id but I sometimes I need language "en" to have priority and sometimes I need to have language "zh" as priority gives me a list of all uniqe ids but places zh in fav...
[ 0.022216796875, 0.01422119140625, -0.0034942626953125, 0.003326416015625, -0.0179443359375, 0.0002593994140625, -0.0186767578125, -0.004547119140625, 0.007537841796875, 0.016357421875, 0.0003643035888671875, -0.0031890869140625, -0.007232666015625, -0.002471923828125, -0.031494140625, ...
[ 159, 95255, 67, 177314, 57766, 25343, 91, 99247, 21115, 1272, 6755, 144832, 53, 903, 23180, 3444, 390, 3447, 68018, 3871, 46876, 33, 765, 8848, 5303, 19844, 11567, 44677, 97, 127, 10862, 106, 7722, 15190, 100, 104851, 140992, 7079, 759, 7...
[ 0.032562255859375, 0.197021484375, 0.158935546875, 0.205078125, 0.1689453125, 0.205078125, 0.011322021484375, 0.2095947265625, 0.1962890625, 0.1265869140625, 0.051177978515625, 0.17138671875, 0.1171875, 0.004241943359375, 0.149658203125, 0.072509765625, 0.0780029296875, 0.109375, ...
embed
5160120_c0
5160120
sql
0
Title: Trailing Sum Query Problem title: Trailing Sum Query Tags: mysql, sql, sum Problem: Trailing Sum Query Code signals: keywordSum, Trailing, Sum, Query, Date, Total
Trailing Sum Query Trailing Sum Query mysql sql sum keywordSum Trailing Sum Query Date Total Trailing Sum Query I am looking to summarize date and need to find a way of doing a 3 day trailing sum, sum of the current date and the 2 previous days. I am using MariaDB, a MYSQL fork. Here is a subset of the data; I would li...
[ 0.021484375, 0.0299072265625, 0.0023651123046875, 0.025390625, -0.02880859375, -0.0096435546875, -0.0054931640625, 0.01177978515625, 0.004669189453125, -0.00732421875, -0.0223388671875, -0.01458740234375, -0.00579833984375, -0.0107421875, -0.00689697265625, 0.03466796875, -0.00921630...
[ 130431, 214, 36335, 58836, 53, 759, 99247, 10554, 166117, 316, 25512, 33867, 16487, 29334, 14096, 13, 5622, 3871, 7413, 3917, 20594, 138, 5155, 141037, 43581, 136, 116, 96362, 13312, 17368, 5379, 39463, 54133, 158897, 100, 92, 1614, 3509, 2...
[ 0.2225341796875, 0.1719970703125, 0.2235107421875, 0.18798828125, 0.04486083984375, 0.07147216796875, 0.1634521484375, 0.2159423828125, 0.16357421875, 0.1798095703125, 0.1087646484375, 0.131103515625, 0.07672119140625, 0.144775390625, 0.1142578125, 0.09234619140625, 0.13720703125, ...
embed
31114984_c0
31114984
sql
0
Title: Tips for proper row_number use Problem title: Tips for proper row_number use Tags: rank, sql Problem: Tips for proper row_number use Code signals: Tips, row_number
Tips for proper row_number use Tips for proper row_number use rank sql Tips row_number Tips for proper row_number use Is there anyone that could help me with creating 'SORT' column. Here are two examples, how this should work. Notice that two last rows in second table, are numered as 4 and 5 because type column is chan...
[ 0.01513671875, -0.0032196044921875, 0.00787353515625, 0.011474609375, -0.0220947265625, -0.0240478515625, 0.00567626953125, -0.003936767578125, 0.023193359375, -0.0081787109375, 0.0019989013671875, -0.0311279296875, 0.0057373046875, 0.022705078125, -0.004241943359375, 0.003707885742187...
[ 13785, 27798, 15555, 2606, 1297, 4527, 30648, 99247, 454, 4358, 105233, 294, 105259, 3365, 316, 19, 6626, 27781, 5608, 4488, 24494, 4568, 17932, 23180, 22542, 237, 201, 136, 190, 10644, 98816, 92, 14012, 3525, 5622, 5701, 89536 ]
[ 0.1455078125, 0.12744140625, 0.20947265625, 0.17431640625, 0.1336669921875, 0.1231689453125, 0.19091796875, 0.1982421875, 0.002532958984375, 0.03436279296875, 0.0955810546875, 0.0894775390625, 0.253662109375, 0.123291015625, 0.14404296875, 0.05963134765625, 0.049041748046875, 0.091...
embed
22530094_c0
22530094
sql
0
Title: MySql query for duplicate fields Problem title: MySql query for duplicate fields Tags: sql, mysql, php Problem: MySql query for duplicate fields Code signals: MySql
MySql query for duplicate fields MySql query for duplicate fields sql mysql php MySql MySql query for duplicate fields I have sql table with fowling content: for example i want to find all results for joined after 2014-03-20 10:00:00 and ip found more than once in all records so in this case my result should be: becaus...
[ -0.004852294921875, 0.0167236328125, 0.004425048828125, 0.004425048828125, -0.0035858154296875, 0.011962890625, 0.0098876953125, -0.00390625, -0.0159912109375, -0.0021514892578125, -0.006134033203125, 0.007293701171875, 0.0076904296875, -0.0021820068359375, -0.032470703125, 0.012268066...
[ 2646, 294, 99247, 41, 1294, 100, 171763, 67, 44457, 759, 6, 3958, 91, 23180, 5775, 434, 2069, 10941, 3444, 7413, 756, 50339, 33284, 7103, 1049, 37151, 1549, 26694, 6632, 254, 14037, 1286, 24145, 115923, 16750, 5608, 186, 6863, 17, 110844,...
[ 0.1248779296875, 0.035369873046875, 0.2132568359375, 0.1749267578125, 0.126708984375, 0.1075439453125, 0.2470703125, 0.166015625, 0.23681640625, 0.09100341796875, 0.0160675048828125, 0.08428955078125, 0.031890869140625, 0.1466064453125, 0.0919189453125, 0.1396484375, 0.1702880859375,...
embed
2178460_c0
2178460
sql
0
Title: SQL update undo Problem title: SQL update undo Tags: undo, sql, sql-update Problem: SQL update undo Is there a way we can undo a SQL update query? Code signals: SQL
SQL update undo SQL update undo undo sql sql-update SQL SQL update undo Is there a way we can undo a SQL update query?
[ -0.0146484375, 0.03369140625, 0.0224609375, -0.00445556640625, -0.0220947265625, 0.0128173828125, -0.0181884765625, 0.0084228515625, -0.0003108978271484375, 0.0419921875, -0.0196533203125, 0.0025787353515625, 0.0029754638671875, 0.0027008056640625, -0.00225830078125, 0.01318359375, -...
[ 80866, 28350, 165, 31, 99247, 117008, 3917, 642, 831, 41, 1294 ]
[ 0.259765625, 0.209228515625, 0.19970703125, 0.223388671875, 0.17431640625, 0.1634521484375, 0.0703125, 0.0161895751953125, 0.051116943359375, 0.1370849609375, 0.1351318359375 ]
embed
34855808_c0
34855808
sql
0
Title: SQL count return codes by date Problem title: SQL count return codes by date Tags: pivot, sql, count Problem: SQL count return codes by date Code signals: SQL, Date
SQL count return codes by date SQL count return codes by date pivot sql count SQL Date SQL count return codes by date I'm stuck with the question: how many return codes of different types do I have per day. So I have to transform this input data: into something like this: I'll appreciate any ideas.
[ 0.0242919921875, -0.0194091796875, -0.0167236328125, 0.039306640625, 0.003204345703125, -0.00592041015625, -0.0106201171875, 0.004638671875, -0.0020904541015625, 0.0025177001953125, -0.033203125, -0.038330078125, 0.0166015625, 0.018310546875, -0.031494140625, -0.004974365234375, -0.0...
[ 80866, 54529, 30646, 18151, 390, 5622, 7, 80953, 18, 99247, 25512, 179933, 9655, 3642, 5941, 12921, 52895, 54, 765, 117, 5155, 27198, 107730, 2053, 3934, 1884, 903, 77947, 25647 ]
[ 0.2325439453125, 0.1903076171875, 0.25146484375, 0.2242431640625, 0.1136474609375, 0.1602783203125, 0.0159912109375, 0.1387939453125, 0.0584716796875, 0.181884765625, 0.12548828125, 0.07489013671875, 0.037750244140625, 0.0214996337890625, 0.0662841796875, 0.0816650390625, 0.140380859...
embed
25844609_c0
25844609
sql
0
Title: How to set row number() Problem title: How to set row number() Tags: sql-server-2008, sql Problem: How to set row number() Code signals: How, RowNo, sql-server-2008
How to set row number() How to set row number() sql-server-2008 sql How RowNo sql-server-2008 How to set row number() I have a table like this - I want to set row no like this - How can I make by query? or there is only way to loop this table? Thanks..
[ 0.0166015625, 0.0179443359375, 0.017578125, 0.035400390625, -0.01190185546875, -0.0284423828125, -0.005523681640625, -0.005279541015625, -0.00262451171875, 0.0054931640625, -0.0194091796875, -0.018310546875, 0.00408935546875, 0.01263427734375, -0.0181884765625, -0.004669189453125, 0....
[ 11249, 47, 5423, 15555, 14012, 132, 99247, 39642, 105011, 96190, 5021, 23180, 1884, 903, 3444, 110, 3249, 390, 41, 1294, 3917, 40956 ]
[ 0.0657958984375, 0.05474853515625, 0.1517333984375, 0.2464599609375, 0.2139892578125, 0.057952880859375, 0.156005859375, 0.125, 0.20263671875, 0.1654052734375, 0.219970703125, 0.158203125, 0.0816650390625, 0.030670166015625, 0.0517578125, 0.195068359375, 0.0445556640625, 0.02836608...
embed
16867416_c0
16867416
sql
0
Title: Difference between times in PHP Problem title: Difference between times in PHP Tags: sql, php Problem: Difference between times in PHP Code signals: Difference, PHP
Difference between times in PHP Difference between times in PHP sql php Difference PHP Difference between times in PHP I have a temporary table in the database that contains: I would like to get an answer as follows: I've tried 'TIMEDIFF' scripts ( max(time) , min(time) ), but it does not output what I want. Please hel...
[ 0.0208740234375, 0.013916015625, 0.001922607421875, 0.0245361328125, -0.008056640625, -0.0089111328125, -0.020751953125, 0.0037078857421875, -0.01214599609375, -0.027099609375, 0.00897216796875, 0.0150146484375, -0.0007476806640625, 0.0220947265625, -0.01226806640625, 0.012451171875, ...
[ 803, 18234, 6620, 17721, 20028, 23, 47302, 91, 99247, 3958, 87, 765, 142458, 53, 23180, 63399, 70541, 1884, 35166, 28960, 37842, 68665, 66973, 30110, 26499, 18389, 6032, 881, 247, 1284, 14602, 959, 140992, 3444, 4358, 17368 ]
[ 0.10302734375, 0.2127685546875, 0.112548828125, 0.1817626953125, 0.2364501953125, 0.10369873046875, 0.26123046875, 0.005035400390625, 0.1676025390625, 0.1929931640625, 0.0154571533203125, 0.0163726806640625, 0.1693115234375, 0.048492431640625, 0.154296875, 0.1246337890625, 0.07287597...
embed
17623386_c0
17623386
sql
0
Title: populating missing rows in oracle sql Problem title: populating missing rows in oracle sql Tags: sql, oracle-database Problem: populating missing rows in oracle sql
populating missing rows in oracle sql populating missing rows in oracle sql sql oracle-database populating missing rows in oracle sql I have following data: Is it possible to create query in sql/plsql that would populate missing rows based on dates? I mean i would like to get following result: i.e. create missing dates...
[ 0.02001953125, -0.01202392578125, -0.004241943359375, 0.01513671875, -0.015625, -0.002593994140625, 0.0079345703125, 0.0185546875, -0.0032196044921875, 0.01422119140625, -0.0017547607421875, 0.0023345947265625, -0.01373291015625, -0.01220703125, -0.01611328125, -0.00186920166015625, ...
[ 27623, 1916, 132283, 15555, 7, 23, 3620, 11030, 91, 99247, 37382, 25632, 2053, 7722, 28282, 41, 1294, 64, 2424, 67, 35509, 98, 112474, 2806, 1884, 16750, 171763, 12996, 18151, 74481, 41170 ]
[ 0.1578369140625, 0.06640625, 0.213623046875, 0.2073974609375, 0.048126220703125, 0.04925537109375, 0.1337890625, 0.1502685546875, 0.0572509765625, 0.2138671875, 0.082763671875, 0.0494384765625, 0.022705078125, 0.1053466796875, 0.049407958984375, 0.084716796875, 0.0859375, 0.0166931...
embed
48011905_c0
48011905
sql
0
Title: DESC command in SQL Problem title: DESC command in SQL Tags: mysql, sql Problem: DESC command in SQL What is the use of DESC command in SQL ? Code signals: DESC, SQL
DESC command in SQL DESC command in SQL mysql sql DESC SQL DESC command in SQL What is the use of DESC command in SQL ?
[ 0.033203125, 0.005096435546875, 0.002838134765625, 0.02197265625, -0.010009765625, 0.0072021484375, -0.022705078125, -0.01092529296875, 0.00341796875, 0.01336669921875, 0.01470947265625, -0.0164794921875, 0.0135498046875, 0.01080322265625, -0.02734375, 0.0223388671875, 0.015319824218...
[ 51552, 441, 75101, 23, 80866, 759, 99247, 4865, 83, 70, 4527, 111, 705 ]
[ 0.25048828125, 0.2197265625, 0.2451171875, 0.10284423828125, 0.25439453125, 0.062042236328125, 0.1131591796875, 0.04705810546875, 0.0645751953125, 0.06591796875, 0.1422119140625, 0.043426513671875, 0.01727294921875 ]
embed
9317597_c0
9317597
sql
0
Title: select values that having maximum timestamp Problem title: select values that having maximum timestamp Tags: sql Problem: select values that having maximum timestamp
select values that having maximum timestamp select values that having maximum timestamp sql select values that having maximum timestamp I have a table: And i need to select id and val with maximum updated value. So for this table result should be:
[ 0.00750732421875, -0.00133514404296875, 0.017822265625, 0.0079345703125, -0.004913330078125, -0.032958984375, -0.0133056640625, 0.00506591796875, -0.00885009765625, -0.01495361328125, 0.005126953125, -0.023681640625, -0.00799560546875, -0.0308837890625, -0.0223388671875, 0.000206947326...
[ 36849, 142424, 450, 19441, 38132, 1733, 590, 2676, 99247, 765, 23180, 3871, 3447, 136, 3502, 678, 150011, 34292, 16750, 5608, 186 ]
[ 0.166015625, 0.2042236328125, 0.0294189453125, 0.099609375, 0.2044677734375, 0.1143798828125, 0.145751953125, 0.1646728515625, 0.2122802734375, 0.016754150390625, 0.198974609375, 0.0787353515625, 0.12841796875, 0.06683349609375, 0.1552734375, 0.044403076171875, 0.18359375, 0.149291...
embed
55102179_c0
55102179
sql
0
Title: SQL server pivot order Problem title: SQL server pivot order Tags: pivot, sql, sql-server Problem: SQL server pivot order Code signals: SQL, SMS, FOLLETO, LIQUIDACION
SQL server pivot order SQL server pivot order pivot sql sql-server SQL SMS FOLLETO LIQUIDACION SQL server pivot order I have the next table I have the next table. This table is way much bigger, but this helps with the example, what i need to do is for certain rut, get the "monto" by "tipo". And I need to get something ...
[ 0.036865234375, 0.0038604736328125, -0.01458740234375, 0.010009765625, -0.006134033203125, -0.007110595703125, -0.029541015625, -0.0003108978271484375, 0.01043701171875, 0.0289306640625, 0.0030364990234375, -0.015625, 0.015869140625, -0.0023651123046875, -0.0142822265625, 0.00607299804...
[ 80866, 10723, 80953, 18, 12989, 99247, 39642, 11162, 563, 122080, 123732, 16970, 68019, 6538, 95619, 87, 765, 11737, 23180, 3917, 5045, 167785, 4, 112397, 27781, 3871, 24233, 16014, 2046, 15477, 31, 390, 118, 771, 9844, 1884, 903 ]
[ 0.1607666015625, 0.135986328125, 0.181396484375, 0.104248046875, 0.2205810546875, 0.1097412109375, 0.1011962890625, 0.1961669921875, 0.02142333984375, 0.081298828125, 0.1348876953125, 0.03411865234375, 0.1065673828125, 0.1107177734375, 0.07373046875, 0.0037841796875, 0.03109741210937...
embed
45277239_c1
45277239
sql
1
, p378, p379, p380, p381, p382, p383, p384, p385, p386, p387, p388, p389, p390, p391, p392, p393, p394, p395, p396, p397, p398, p399, p400, p401, p402, p403, p404, p405, p406
it keeps on throwing errors. It works sometimes but fails at other times. Since the code is same, I suspect this has to be related to the infrastructural level changes. Here's how the snapshot of my DTU usage looks in Azure: This probably rules out database throughput. NB: The cloned entity has nested structure with s...
[ -0.0142822265625, 0.005889892578125, -0.0166015625, 0.0033721923828125, -0.00579833984375, -0.0019683837890625, -0.00421142578125, -0.0189208984375, 0.0208740234375, 0.0419921875, -0.0279541015625, 0.01446533203125, -0.007232666015625, -0.0126953125, -0.004119873046875, 0.017333984375,...
[ 442, 13695, 7, 98, 104250, 214, 18499, 1650, 43240, 68018, 1284, 35782, 3789, 20028, 18151, 83, 5701, 92610, 903, 62548, 20100, 36716, 17366, 65572, 72697, 391, 19454, 127689, 33342, 176071, 31895, 91736, 1810, 63399, 8305, 7077, 20450, 14534...
[ 0.097412109375, 0.146484375, 0.0670166015625, 0.092041015625, 0.139892578125, 0.058197021484375, 0.209228515625, 0.024017333984375, 0.1258544921875, 0.105224609375, 0.0672607421875, 0.1639404296875, 0.046173095703125, 0.097900390625, 0.158935546875, 0.000030517578125, 0.118896484375,...
embed
42221246_c0
42221246
sql
0
Title: how to write special query Problem title: how to write special query Tags: sql Problem: how to write special query Code signals: clock_BarCode, code_BDate, Clock_BTime
how to write special query how to write special query sql clock_BarCode code_BDate Clock_BTime how to write special query this is my table: i want to write a query that show me this result : how can i write??
[ 0.0166015625, 0.0028076171875, -0.0196533203125, -0.006072998046875, -0.005218505859375, -0.01470947265625, -0.0264892578125, -0.004058837890625, 0.0101318359375, 0.019775390625, -0.01055908203125, -0.01373291015625, 0.017578125, 0.0086669921875, -0.018310546875, 0.01507568359375, -0...
[ 3642, 33022, 5361, 41, 1294, 47, 91, 99247, 21135, 25267, 114211, 18151, 571, 86291, 70059, 903, 83, 23180, 17, 3444, 7639, 163, 16750, 831, 4767 ]
[ 0.0947265625, 0.210693359375, 0.2197265625, 0.199462890625, 0.1759033203125, 0.058685302734375, 0.004547119140625, 0.199951171875, 0.198974609375, 0.13720703125, 0.170166015625, 0.12841796875, 0.0599365234375, 0.11279296875, 0.1737060546875, 0.0302734375, 0.004791259765625, 0.13305...
embed
59033291_c0
59033291
sql
0
Title: MS access Group by Problem title: MS access Group by Tags: group-by, sql, ms-access Problem: MS access Group by Code signals: Group, Point, ParaA, Modvalue, MinofParaA
MS access Group by MS access Group by group-by sql ms-access Group Point ParaA Modvalue MinofParaA MS access Group by I have a big access database table and part of it is given below and I want to get the minimum value by group, which is the minimum value for 3, 5, 9,.... I have tried in the query using minimum value o...
[ 0.0281982421875, 0.00628662109375, -0.00225830078125, 0.031982421875, -0.0108642578125, 0.00421142578125, -0.00958251953125, 0.0150146484375, 0.0260009765625, 0.01458740234375, -0.007476806640625, 0.0164794921875, 0.0130615234375, -0.0191650390625, -0.011962890625, 0.01025390625, -0....
[ 16265, 17203, 10760, 390, 21115, 1272, 91, 99247, 68163, 113041, 41097, 1720, 284, 16269, 27494, 4211, 4390, 55292, 6957, 63399, 23180, 2831, 34475, 35064, 3444, 47, 2046, 70, 15440, 34292, 83, 100, 138, 190, 483, 37842, 41, 1294, 69427, ...
[ 0.1854248046875, 0.212646484375, 0.2548828125, 0.2186279296875, 0.2430419921875, 0.2147216796875, 0.01129150390625, 0.185546875, 0.162841796875, 0.2156982421875, 0.149658203125, 0.1375732421875, 0.10296630859375, 0.1353759765625, 0.171875, 0.1375732421875, 0.135986328125, 0.1264648...
embed
68810325_c0
68810325
sql
0
Title: Select min from a given range Problem title: Select min from a given range Tags: sql, postgresql Problem: Select min from a given range Code signals: a, Select, req_id
Select min from a given range Select min from a given range sql postgresql a Select req_id Select min from a given range I have the following data: ... And i would need to group these records based on their id, selecting just the min values for a given range of 'detected' (+- 20 for example). This is what i'd be expect...
[ -0.00799560546875, -0.001953125, 0.010986328125, 0.021484375, -0.01483154296875, 0.0145263671875, 0.00775146484375, 0.000579833984375, 0.00341796875, -0.006072998046875, 0.02294921875, 0.03271484375, -0.007415771484375, 0.003753662109375, -0.015869140625, 0.00830078125, -0.0003013610...
[ 51620, 881, 1295, 34475, 37457, 99247, 1305, 17562, 456, 864, 532, 25632, 2053, 2806, 3871, 21115, 115923, 35509, 3447, 36849, 214, 1660, 142424, 100, 112, 67, 89829, 22183, 9, 387, 27781, 41206, 3917, 678, 80866, 5351, 54, 903, 388, 1733...
[ 0.204833984375, 0.262451171875, 0.100341796875, 0.0799560546875, 0.217041015625, 0.1724853515625, 0.0280914306640625, 0.121337890625, 0.05810546875, 0.1171875, 0.1282958984375, 0.05450439453125, 0.1094970703125, 0.026702880859375, 0.0728759765625, 0.1834716796875, 0.17041015625, 0....
embed
54683677_c0
54683677
sql
0
Title: SQL query required for below issue Problem title: SQL query required for below issue Tags: postgresql, sql Problem: SQL query required for below issue Code signals: SQL
SQL query required for below issue SQL query required for below issue postgresql sql SQL SQL query required for below issue I have a table like need output as enter image description here
[ 0.022705078125, 0.0211181640625, -0.0029296875, 0.00162506103515625, -0.0216064453125, -0.002166748046875, -0.0189208984375, -0.00390625, 0.00885009765625, 0.003570556640625, 0.027099609375, -0.01446533203125, -0.0020294189453125, 0.00811767578125, -0.013916015625, 0.0208740234375, -...
[ 80866, 41, 1294, 56065, 100, 35064, 31089, 1305, 17562, 99247, 91, 765, 23180, 1884, 3871, 140992, 237, 30957, 29569, 76811, 3688 ]
[ 0.266845703125, 0.186279296875, 0.1190185546875, 0.2298583984375, 0.1029052734375, 0.2406005859375, 0.1605224609375, 0.0273284912109375, 0.1378173828125, 0.1234130859375, 0.005279541015625, 0.04583740234375, 0.190673828125, 0.0970458984375, 0.1282958984375, 0.2164306640625, 0.0778808...
embed
26298180_c0
26298180
sql
0
Title: Repeatedly fill missing 0 values Problem title: Repeatedly fill missing 0 values Tags: sql-server, sql Problem: Repeatedly fill missing 0 values Code signals: Repeatedly
Repeatedly fill missing 0 values Repeatedly fill missing 0 values sql-server sql Repeatedly Repeatedly fill missing 0 values I have for example following data: How to create view, where will be all the shifts (A,B,C) in each day? I need to have all the three production shifts (A,B,C) filled for each day, where at least...
[ -0.0145263671875, -0.00421142578125, -0.035888671875, 0.02001953125, -0.032470703125, 0.0003032684326171875, 0.01904296875, 0.004669189453125, 0.00933837890625, 0.037841796875, -0.00081634521484375, -0.000873565673828125, 0.0019683837890625, 0.024658203125, 0.00144195556640625, 0.01263...
[ 33742, 13, 27686, 538, 26292, 132283, 757, 142424, 91, 99247, 39642, 27781, 25632, 2053, 11249, 28282, 21455, 7440, 1221, 186, 756, 122925, 7, 571, 441, 12638, 5155, 3871, 765, 17262, 36049, 152382, 19713, 113771, 4488 ]
[ 0.165771484375, 0.1502685546875, 0.123291015625, 0.04473876953125, 0.2236328125, 0.178955078125, 0.189697265625, 0.189208984375, 0.0273590087890625, 0.2303466796875, 0.156005859375, 0.03363037109375, 0.01373291015625, 0.0909423828125, 0.02935791015625, 0.118408203125, 0.2396240234375...
embed
48945889_c0
48945889
sql
0
Title: Oracle DB version column sorting Problem title: Oracle DB version column sorting Tags: oracle-database, sql Problem: Oracle DB version column sorting Code signals: Oracle
Oracle DB version column sorting Oracle DB version column sorting oracle-database sql Oracle Oracle DB version column sorting I have Version_ref_no column having values like Is there any way in Oracle to sort it so that OP should be
[ 0.022705078125, 0.01519775390625, 0.0010986328125, 0.0196533203125, -0.005523681640625, -0.00537109375, 0.00121307373046875, 0.00518798828125, -0.0101318359375, 0.038818359375, -0.0233154296875, 0.0279541015625, -0.00579833984375, -0.00946044921875, -0.044189453125, -0.0035858154296875...
[ 146785, 57976, 11389, 3365, 316, 12096, 214, 3620, 11030, 37382, 99247, 40647, 29087, 157, 19441, 142424, 1884, 3917, 28023, 5608 ]
[ 0.2183837890625, 0.17041015625, 0.22607421875, 0.10223388671875, 0.127685546875, 0.18505859375, 0.04351806640625, 0.08447265625, 0.05950927734375, 0.03973388671875, 0.09368896484375, 0.1893310546875, 0.1678466796875, 0.13623046875, 0.0139923095703125, 0.0933837890625, 0.0709838867187...
embed
32560946_c0
32560946
sql
0
Title: Interview questions sql Problem title: Interview questions sql Tags: mysql, sql Problem: Interview questions sql What is nvarchar2 in sql or MySQL Code signals: Interview
Interview questions sql Interview questions sql mysql sql Interview Interview questions sql What is nvarchar2 in sql or MySQL
[ 0.0021820068359375, -0.0014801025390625, -0.01043701171875, 0.02490234375, -0.004150390625, 0.034423828125, -0.01422119140625, 0.0123291015625, -0.018798828125, -0.0011138916015625, 0.0120849609375, -0.0135498046875, 0.004913330078125, 0.005340576171875, -0.0279541015625, 0.02026367187...
[ 79265, 17582, 91, 99247, 759, 4865, 83, 653, 1961, 9254, 304, 23, 707, 157146 ]
[ 0.1927490234375, 0.1483154296875, 0.08062744140625, 0.263916015625, 0.0775146484375, 0.012420654296875, 0.056732177734375, 0.0892333984375, 0.20556640625, 0.2705078125, 0.2193603515625, 0.0679931640625, 0.088134765625, 0.25927734375 ]
embed
43996034_c0
43996034
sql
0
Title: sql query to count the rows Problem title: sql query to count the rows Tags: sql Problem: sql query to count the rows i have a table like this enter image description here
sql query to count the rows sql query to count the rows sql sql query to count the rows i have a table like this enter image description here
[ 0.0155029296875, 0.004791259765625, -0.0167236328125, 0.0146484375, -0.0084228515625, -0.00830078125, 0.003021240234375, 0.016845703125, -0.0123291015625, -0.0166015625, -0.0048828125, -0.033935546875, 0.00311279296875, 0.025390625, -0.0301513671875, 0.006103515625, -0.01397705078125...
[ 99247, 41, 1294, 47, 54529, 70, 15555, 7, 91, 6, 17, 765, 23180, 1884, 903, 30957, 29569, 76811, 3688 ]
[ 0.175537109375, 0.112548828125, 0.10205078125, 0.096923828125, 0.20751953125, 0.09954833984375, 0.2381591796875, 0.07080078125, 0.0269622802734375, 0.001007080078125, 0.05126953125, 0.041015625, 0.1619873046875, 0.1026611328125, 0.04998779296875, 0.0860595703125, 0.1416015625, 0.16...
embed
26301596_c0
26301596
sql
0
Title: MySql query group by day and by time Problem title: MySql query group by day and by time Tags: mysql, sql Problem: MySql query group by day and by time Code signals: MySql
MySql query group by day and by time MySql query group by day and by time mysql sql MySql MySql query group by day and by time I'm trying create an SQL query to resolve my problem. My Table: I want to sum value in groups by days and this days in three sub groups like a 'morning'(06:00 - 12:00), 'afternoon'(12:00 - 18:0...
[ 0.01385498046875, 0.00347900390625, 0.007598876953125, 0.0179443359375, -0.00775146484375, -0.00110626220703125, -0.024658203125, 0.0031890869140625, -0.0115966796875, -0.0130615234375, -0.00872802734375, 0.01556396484375, -0.007537841796875, -0.0032196044921875, -0.043212890625, 0.005...
[ 2646, 294, 99247, 41, 1294, 21115, 390, 5155, 136, 1733, 759, 7, 91, 31577, 28282, 80866, 103608, 2967, 112997, 3444, 47, 10554, 34292, 23, 94407, 13312, 903, 17262, 1614, 1884, 10, 4514, 592, 9016, 20, 40008, 247, 46327, 157, 134186, 6...
[ 0.1744384765625, 0.0635986328125, 0.2109375, 0.1693115234375, 0.125732421875, 0.255615234375, 0.130126953125, 0.1881103515625, 0.122314453125, 0.2073974609375, 0.1531982421875, 0.030303955078125, 0.010101318359375, 0.049407958984375, 0.08880615234375, 0.1788330078125, 0.0899047851562...
embed
14769267_c0
14769267
sql
0
Title: mysql join with varchar fields Problem title: mysql join with varchar fields Tags: join, mysql, php, sql Problem: mysql join with varchar fields Code signals: ref_no, HRTU
mysql join with varchar fields mysql join with varchar fields join mysql php sql ref_no HRTU mysql join with varchar fields I need to join 2 tables a) table_a b) table_b these 2 tables will be joined by their ref_no. and will give me output like below c) output_table
[ -0.007781982421875, 0.00323486328125, -0.00445556640625, 0.01263427734375, -0.00159454345703125, 0.004119873046875, -0.0159912109375, -0.005523681640625, 0.01141357421875, 0.0030975341796875, 0.0146484375, -0.0120849609375, 0.016845703125, -0.0169677734375, -0.02099609375, 0.0043334960...
[ 759, 7, 99247, 33284, 678, 285, 9254, 44457, 3958, 18831, 157, 572, 201495, 3871, 116, 23180, 11, 876, 275, 140992, 35064, 501, 22819 ]
[ 0.1185302734375, 0.02935791015625, 0.1756591796875, 0.181396484375, 0.099853515625, 0.1142578125, 0.2091064453125, 0.183837890625, 0.0955810546875, 0.177734375, 0.15087890625, 0.020233154296875, 0.17626953125, 0.067626953125, 0.1070556640625, 0.1805419921875, 0.05828857421875, 0.02...
embed
30480149_c0
30480149
sql
0
Title: select from table using sql query Problem title: select from table using sql query Tags: postgresql, sql Problem: select from table using sql query Code signals: table, sql
select from table using sql query select from table using sql query postgresql sql table sql select from table using sql query Table I need to select columns name,x,y,z if in refer column it refers to id column and name must be of that id's name. Is it possible with a single query? can anyone please help here, output s...
[ 0.009033203125, 0.00128173828125, -0.0159912109375, 0.02099609375, -0.0135498046875, -0.00750732421875, -0.01104736328125, 0.021484375, -0.0087890625, -0.0184326171875, 0.017578125, -0.0213623046875, -0.0185546875, 0.03515625, -0.0233154296875, 0.02783203125, -0.021240234375, 0.013...
[ 36849, 1295, 23180, 17368, 91, 99247, 41, 1294, 1305, 17562, 112997, 87, 3871, 47, 3365, 316, 1779, 9351, 425, 53, 169, 2174, 15005, 3447, 136, 8110, 186, 111, 450, 2071, 7722, 678, 10, 11001, 831, 35672, 22936, 4358, 3688, 140992, 5608...
[ 0.220703125, 0.16162109375, 0.2091064453125, 0.08990478515625, 0.06268310546875, 0.2230224609375, 0.1644287109375, 0.12841796875, 0.03179931640625, 0.1026611328125, 0.197509765625, 0.05120849609375, 0.10595703125, 0.005523681640625, 0.096923828125, 0.12841796875, 0.047088623046875, ...
embed
3014285_c0
3014285
sql
0
Title: SQL - Rank() on a table Problem title: SQL - Rank() on a table Tags: sql, oracle10g Problem: SQL - Rank() on a table Code signals: dual, SQL, Rank, to_date, HH24, oracle10g
SQL - Rank() on a table SQL - Rank() on a table sql oracle10g dual SQL Rank to_date HH24 oracle10g SQL - Rank() on a table From this table, how to rank() over 'value', partitioning by each hour of the day? and select only the 1st ranked result?
[ 0.028076171875, -0.0135498046875, -0.00653076171875, 0.02294921875, -0.0208740234375, -0.0211181640625, -0.00640869140625, -0.00009107589721679688, -0.00634765625, -0.01019287109375, -0.00701904296875, 0.0137939453125, -0.00909423828125, -0.0167236328125, -0.036865234375, 0.00028038024...
[ 80866, 134405, 132, 98, 23180, 20, 10, 99247, 3620, 11030, 963, 177, 87758, 47, 17489, 78288, 2357, 903, 3642, 30648, 645, 27494, 2878, 1363, 12638, 56816, 5155, 36849, 4734, 106, 271, 297, 16750 ]
[ 0.224365234375, 0.268310546875, 0.1474609375, 0.1072998046875, 0.1993408203125, 0.0173797607421875, 0.008819580078125, 0.14794921875, 0.0919189453125, 0.1234130859375, 0.116943359375, 0.05072021484375, 0.1368408203125, 0.054107666015625, 0.07293701171875, 0.09124755859375, 0.10632324...
embed
15638997_c0
15638997
sql
0
Title: Complex mysql selection query Problem title: Complex mysql selection query Tags: sql, django, mysql Problem: Complex mysql selection query Code signals: Complex, date_value
Complex mysql selection query Complex mysql selection query sql django mysql Complex date_value Complex mysql selection query my table is like this: I'd like to select ((more than 2 times duplicate value 's count) /( value 's count except duplicate)) In the above case, result is 1/3 (because only value a is 2 times mor...
[ -0.0162353515625, 0.00086212158203125, -0.000507354736328125, 0.007354736328125, -0.00958251953125, 0.000728607177734375, -0.0264892578125, 0.020751953125, -0.011962890625, -0.0167236328125, -0.0037078857421875, -0.01611328125, 0.005401611328125, 0.0108642578125, -0.031982421875, -0.00...
[ 113197, 759, 99247, 132216, 41, 1294, 107473, 27803, 5622, 27494, 23180, 1884, 903, 71, 47, 36849, 17678, 3501, 116, 20028, 171763, 67, 34292, 7, 54529, 248, 242, 40494, 36917, 7225, 16750, 83, 62366, 4734, 10, 1286, 11249, 17, 3249, 91, ...
[ 0.225830078125, 0.1104736328125, 0.2254638671875, 0.1767578125, 0.1087646484375, 0.051361083984375, 0.0545654296875, 0.2069091796875, 0.083984375, 0.1064453125, 0.173828125, 0.1131591796875, 0.009613037109375, 0.0182342529296875, 0.031494140625, 0.2088623046875, 0.118896484375, 0.0...
embed
62703426_c0
62703426
sql
0
Title: Skip row that results in zero Problem title: Skip row that results in zero Tags: postgresql, sql Problem: Skip row that results in zero Code signals: Skip, Col1, Col2, col3
Skip row that results in zero Skip row that results in zero postgresql sql Skip Col1 Col2 col3 Skip row that results in zero Is there a way to skip all rows that result in zero after division. For example Then col3 = col1 /col2 giving:
[ -0.005645751953125, -0.01373291015625, -0.002532958984375, 0.01177978515625, -0.0098876953125, -0.0108642578125, 0.033935546875, 0.005615234375, 0.01025390625, 0.04443359375, -0.0047607421875, -0.005706787109375, -0.0250244140625, 0.00762939453125, -0.0211181640625, 0.01043701171875, ...
[ 91958, 15555, 50339, 23, 45234, 1305, 17562, 99247, 11554, 418, 304, 3365, 363, 450, 2685, 10, 3917, 47, 21658, 756, 7, 16750, 7103, 91853, 248, 8447, 68772 ]
[ 0.2276611328125, 0.2366943359375, 0.1314697265625, 0.045501708984375, 0.2135009765625, 0.0369873046875, 0.12890625, 0.14501953125, 0.12744140625, 0.04656982421875, 0.1190185546875, 0.1328125, 0.156494140625, 0.008056640625, 0.006683349609375, 0.03070068359375, 0.07421875, 0.0556640...
embed
13100445_c0
13100445
sql
0
Title: Add missing dates in a table Problem title: Add missing dates in a table Tags: postgresql, time-series, sql, datetime Problem: Add missing dates in a table Code signals: Add
Add missing dates in a table Add missing dates in a table postgresql time-series sql datetime Add Add missing dates in a table I have a table that contains data for every day in 2002, but it has some missing dates. Namely, 354 records for 2002 (instead of 365). For my calculations, I need to have the missing data in th...
[ 0.005401611328125, 0.0022430419921875, -0.0128173828125, 0.0211181640625, -0.032958984375, 0.002166748046875, 0.0089111328125, 0.021728515625, -0.004302978515625, -0.004669189453125, 0.005279541015625, -0.007080078125, 0.0079345703125, 0.03369140625, -0.01019287109375, 0.00848388671875...
[ 29117, 132283, 112474, 23, 23180, 1305, 17562, 99247, 1733, 32832, 5622, 6032, 10, 87, 70541, 2053, 11907, 5155, 5726, 1284, 1556, 3060, 2273, 617, 115923, 100, 824, 27728, 74481, 3871, 765, 70, 678, 1429, 1181, 142424, 52288, 8318, 83, 3...
[ 0.1673583984375, 0.2578125, 0.2236328125, 0.051727294921875, 0.2333984375, 0.06304931640625, 0.11865234375, 0.1728515625, 0.06201171875, 0.125244140625, 0.09429931640625, 0.1064453125, 0.001739501953125, 0.000885009765625, 0.05181884765625, 0.1346435546875, 0.0760498046875, 0.09838...
embed
19393071_c0
19393071
sql
0
Title: Get sum of paired time differences Problem title: Get sum of paired time differences Tags: sql, sqlite Problem: Get sum of paired time differences Code signals: Get, card_id
Get sum of paired time differences Get sum of paired time differences sql sqlite Get card_id Get sum of paired time differences I have an sqlite table of card controlled entry door usages. I need the sum of the even-odd time intervals, so for example the expected sum for card 02 is (12:03 - 08:07) + (16:03 - 14:52) = 0...
[ 0.006744384765625, -0.0086669921875, 0.003509521484375, 0.00182342529296875, -0.0079345703125, -0.00034332275390625, -0.033203125, 0.00689697265625, 0.0177001953125, -0.037353515625, 0.0194091796875, 0.0267333984375, -0.005859375, -0.009033203125, -0.025634765625, -0.016357421875, -0...
[ 20779, 10554, 111, 80836, 297, 1733, 60212, 7, 99247, 91, 95255, 67, 20596, 532, 23180, 6226, 6259, 42805, 1911, 127689, 3871, 3853, 13606, 51514, 84751, 4648, 21204, 28724, 3843, 32682, 997, 23175, 616, 33915, 5098, 34546, 3413, 25619, 477...
[ 0.07501220703125, 0.202880859375, 0.088623046875, 0.202880859375, 0.088623046875, 0.189208984375, 0.2301025390625, 0.026275634765625, 0.2130126953125, 0.017364501953125, 0.18212890625, 0.1612548828125, 0.1925048828125, 0.14990234375, 0.1572265625, 0.10986328125, 0.033477783203125, ...
embed
53795637_c0
53795637
sql
0
Title: SQL: Year of last occurence? Problem title: SQL: Year of last occurence? Tags: sql, mysql Problem: SQL: Year of last occurence? Code signals: SQL, Year, Table, Dates, Output
SQL: Year of last occurence? SQL: Year of last occurence? sql mysql SQL Year Table Dates Output SQL: Year of last occurence? How can I find the last time, the day and year combination has happened. So, I have long list of date and I need output with last occurring year. For example, Suppose, 31/12/2018 has not happened...
[ 0.00775146484375, 0.004974365234375, 0.01025390625, 0.026123046875, -0.0137939453125, 0.019775390625, -0.003570556640625, 0.005157470703125, -0.01373291015625, 0.010498046875, -0.0198974609375, -0.0274658203125, 0.002838134765625, -0.004852294921875, -0.0169677734375, -0.0079345703125,...
[ 80866, 12, 42552, 111, 4568, 74918, 6620, 32, 91, 99247, 759, 7, 112997, 25512, 13538, 7077, 11249, 831, 87, 7413, 1733, 70, 5155, 136, 6602, 162515, 1556, 73659, 4, 4989, 5303, 5622, 3871, 140992, 678, 2852, 121691, 1936, 145652, 959, ...
[ 0.287841796875, 0.0958251953125, 0.2490234375, 0.2374267578125, 0.264892578125, 0.233642578125, 0.180908203125, 0.052032470703125, 0.05755615234375, 0.2244873046875, 0.135009765625, 0.0426025390625, 0.195068359375, 0.1304931640625, 0.1396484375, 0.11279296875, 0.077392578125, 0.107...
embed
35765225_c0
35765225
sql
0
Title: How to Add a Column Problem title: How to Add a Column Tags: indexing, python, sql Problem: How to Add a Column Code signals: How, Add, Column, City, State, ZIP, MIAMI, Index
How to Add a Column How to Add a Column indexing python sql How Add Column City State ZIP MIAMI Index How to Add a Column I'm looking for a sql or python solution to add am index to my table: Lets say I have: I want the table to add an index that is unique by city and state irregardless of zipcode to look like:
[ 0.00537109375, 0.00024318695068359375, -0.0205078125, 0.038818359375, -0.010498046875, -0.003753662109375, 0, -0.0067138671875, 0.005615234375, 0.0042724609375, 0.0185546875, -0.037109375, -0.01202392578125, 0.01531982421875, -0.01287841796875, -0.0150146484375, 0.008056640625, -0....
[ 11249, 47, 29117, 10, 233987, 63262, 214, 17198, 50828, 91, 99247, 6406, 22836, 567, 10931, 13763, 47180, 31471, 16487, 29806, 15190, 444, 23180, 5154, 765, 3444, 70, 142, 36998, 390, 26349, 136, 11341, 66617, 42077, 9393, 111, 68330, 40899...
[ 0.07318115234375, 0.07464599609375, 0.1744384765625, 0.1109619140625, 0.256591796875, 0.2205810546875, 0.08099365234375, 0.073486328125, 0.13720703125, 0.029754638671875, 0.1827392578125, 0.09295654296875, 0.0966796875, 0.0770263671875, 0.119384765625, 0.0794677734375, 0.189697265625...
embed
36035918_c0
36035918
sql
0
Title: Pivot table in sql server 2008 R2 Problem title: Pivot table in sql server 2008 R2 Tags: sql-server, sql, pivot Problem: Pivot table in sql server 2008 R2 Code signals: Pivot
Pivot table in sql server 2008 R2 Pivot table in sql server 2008 R2 sql-server sql pivot Pivot Pivot table in sql server 2008 R2 I have this table as input I need this output using pivot
[ 0.01708984375, 0.00244140625, -0.0034942626953125, 0.014404296875, -0.0233154296875, -0.004913330078125, -0.02099609375, -0.006591796875, 0.0017547607421875, 0.0093994140625, -0.01416015625, 0.00165557861328125, 0.007293701171875, 0.017333984375, -0.0194091796875, 0.0179443359375, 0....
[ 436, 5777, 18, 23180, 23, 99247, 10723, 2021, 627, 304, 39642, 80953, 765, 903, 237, 107730, 3871, 140992, 17368 ]
[ 0.0643310546875, 0.2095947265625, 0.149169921875, 0.2080078125, 0.06732177734375, 0.1707763671875, 0.110107421875, 0.223876953125, 0.06402587890625, 0.1768798828125, 0.07940673828125, 0.1966552734375, 0.01910400390625, 0.054656982421875, 0.06787109375, 0.1531982421875, 0.106140136718...
embed
46597509_c0
46597509
sql
0
Title: MySQL Count Column Problem title: MySQL Count Column Tags: sql, mysql Problem: MySQL Count Column Code signals: MySQL, Count, Column, product_id, David, Charlie, product_id_1
MySQL Count Column MySQL Count Column sql mysql MySQL Count Column product_id David Charlie product_id_1 MySQL Count Column I have the following db table, and I would like to be able to count amount of each product_id per name. I would like to able to create a result set like the following; So, please help me how to qu...
[ 0.00811767578125, -0.005615234375, -0.0076904296875, 0.03125, 0.008544921875, 0.0093994140625, -0.0174560546875, -0.01025390625, 0.0157470703125, -0.0020904541015625, -0.01361083984375, 0.00151824951171875, 0.00848388671875, 0.0052490234375, -0.034423828125, -0.018798828125, -0.00714...
[ 157146, 108210, 233987, 99247, 759, 7, 12996, 532, 6765, 71305, 115187, 25632, 40041, 23180, 2806, 1884, 19048, 47, 54529, 41170, 111, 12638, 454, 117, 9351, 28282, 10, 16750, 5423, 22936, 4358, 3642, 41, 1294, 100, 36917, 2967 ]
[ 0.21142578125, 0.2137451171875, 0.230224609375, 0.138671875, 0.1016845703125, 0.009185791015625, 0.2044677734375, 0.16455078125, 0.1778564453125, 0.2283935546875, 0.055023193359375, 0.069091796875, 0.1041259765625, 0.1453857421875, 0.045166015625, 0.09033203125, 0.0848388671875, 0....
embed
46769141_c0
46769141
sql
0
Title: How to format Time Stored in DB2 Problem title: How to format Time Stored in DB2 Tags: sql, db2 Problem: How to format Time Stored in DB2 Code signals: How, Time, Stored, DB2
How to format Time Stored in DB2 How to format Time Stored in DB2 sql db2 How Time Stored DB2 How to format Time Stored in DB2 I have time in DB2 for i like this: I want result like this: How I can achieve this in DB2 (7.1) on iSeries? Thanks.
[ 0.0191650390625, -0.0025482177734375, 0.007293701171875, 0.0152587890625, 0.0012054443359375, 0.01092529296875, 0.00075531005859375, 0.0230712890625, -0.004730224609375, 0.03173828125, 0.01495361328125, 0.01202392578125, -0.0086669921875, -0.010986328125, -0.007080078125, 0.00927734375...
[ 11249, 47, 9384, 19055, 14934, 71, 23, 57976, 304, 99247, 40041, 765, 1733, 100, 17, 1884, 903, 3444, 16750, 69307, 165830, 138724 ]
[ 0.068115234375, 0.0791015625, 0.237060546875, 0.205810546875, 0.17529296875, 0.128173828125, 0.0765380859375, 0.1925048828125, 0.2369384765625, 0.156982421875, 0.1021728515625, 0.026885986328125, 0.1732177734375, 0.0570068359375, 0.0711669921875, 0.157958984375, 0.062042236328125, ...
embed
68823957_c0
68823957
sql
0
Title: Pair record with closest from join Problem title: Pair record with closest from join Tags: sql, postgresql Problem: Pair record with closest from join Code signals: join, Pair
Pair record with closest from join Pair record with closest from join sql postgresql join Pair Pair record with closest from join I have the following tables: and What i need to do, is to JOIN these to tables by id, matching records from the first table, with its closest fulfilled counterpart. For example: ... and so o...
[ 0.00555419921875, -0.004425048828125, -0.01611328125, -0.01129150390625, -0.0113525390625, 0.012939453125, -0.0101318359375, -0.00010967254638671875, 0.0189208984375, 0.007537841796875, -0.00567626953125, -0.0096435546875, -0.00439453125, -0.01251220703125, -0.0220947265625, -0.0065917...
[ 1342, 481, 17164, 678, 20903, 271, 1295, 33284, 99247, 1305, 17562, 25632, 23180, 3871, 54, 47, 21253, 8852, 6097, 390, 3447, 14858, 214, 115923, 5117, 211394, 105416, 17365, 3917, 903, 2053, 1733 ]
[ 0.1507568359375, 0.129150390625, 0.20654296875, 0.047119140625, 0.1898193359375, 0.1663818359375, 0.14013671875, 0.255126953125, 0.189208984375, 0.012939453125, 0.1341552734375, 0.04913330078125, 0.1781005859375, 0.06427001953125, 0.037994384765625, 0.099853515625, 0.181640625, 0.1...
embed
76009779_c0
76009779
sql
0
Title: Temporal clustering in SQL Problem title: Temporal clustering in SQL Tags: sql, gaps-and-islands, presto, trino Problem: Temporal clustering in SQL Code signals: Temporal, SQL
Temporal clustering in SQL Temporal clustering in SQL sql gaps-and-islands presto trino Temporal SQL Temporal clustering in SQL I have a list of timestamps that I'd like to cluster together. For example, given the following timestamps: I would like to return something like: Is this possible in modern SQL?
[ 0.01483154296875, 0.0031585693359375, -0.00193023681640625, 0.0220947265625, -0.01495361328125, -0.01239013671875, -0.0240478515625, -0.01611328125, 0.00933837890625, -0.00787353515625, -0.020263671875, 0.0244140625, -0.00457763671875, 0.005218505859375, -0.02734375, 0.0189208984375, ...
[ 42748, 7263, 234737, 214, 80866, 91, 99247, 43599, 7, 2940, 164, 15534, 66865, 1927, 157, 23, 5303, 20028, 2537, 6423, 71, 1884, 47, 25842, 34475, 25632, 2806, 30646, 2071, 903, 7722, 5744 ]
[ 0.17578125, 0.12353515625, 0.2425537109375, 0.08984375, 0.25048828125, 0.003143310546875, 0.193603515625, 0.135986328125, 0.005950927734375, 0.04608154296875, 0.056793212890625, 0.1314697265625, 0.1666259765625, 0.1171875, 0.145263671875, 0.007354736328125, 0.0972900390625, 0.06518...
embed
35575481_c0
35575481
sql
0
Title: PostgreSQL- splitting rows Problem title: PostgreSQL- splitting rows Tags: regex, postgresql, sql Problem: PostgreSQL- splitting rows Code signals: PostgreSQL, Jack, John, Alex
PostgreSQL- splitting rows PostgreSQL- splitting rows regex postgresql sql PostgreSQL Jack John Alex PostgreSQL- splitting rows I have got a table that looks like this: And what to split it like this: How can I do it in postgresql?
[ 0.005126953125, 0.0037841796875, -0.005950927734375, 0.0264892578125, -0.0159912109375, 0.0020751953125, 0.0194091796875, 0.01165771484375, 0.00168609619140625, 0.0042724609375, 0.01190185546875, 0.01324462890625, 0.0030059814453125, 0.0135498046875, -0.014404296875, 0.0166015625, 0....
[ 2795, 7134, 158897, 9, 65450, 1916, 15555, 7, 6835, 3355, 1305, 17562, 99247, 21763, 4939, 20984, 87, 765, 4163, 23180, 33342, 1884, 903, 3493, 2367, 47, 442, 11249, 831, 54, 23 ]
[ 0.086181640625, 0.1640625, 0.221923828125, 0.060516357421875, 0.23974609375, 0.143310546875, 0.2227783203125, 0.0987548828125, 0.107421875, 0.117431640625, 0.049835205078125, 0.1546630859375, 0.170654296875, 0.0882568359375, 0.0755615234375, 0.12744140625, 0.0153045654296875, 0.015...
embed
32200531_c0
32200531
sql
0
Title: count hours in same column Problem title: count hours in same column Tags: datetime, sql-server-2005, sql Problem: count hours in same column Code signals: d31, sql-server-2005
count hours in same column count hours in same column datetime sql-server-2005 sql d31 sql-server-2005 count hours in same column i'm trying to query a table that contains employee records of presence. It records the employee id and datetime of the chipping as follows: i was trying to produce a query that gets but the ...
[ 0.0233154296875, -0.01397705078125, -0.0137939453125, 0.0169677734375, -0.00811767578125, -0.039794921875, -0.037841796875, -0.0006866455078125, 0.0120849609375, -0.027099609375, -0.037353515625, -0.0179443359375, 0.0115966796875, 0.000911712646484375, -0.0185546875, 0.00494384765625, ...
[ 54529, 21974, 23, 5701, 3365, 316, 5622, 6032, 99247, 39642, 132583, 5016, 31577, 41, 1294, 23180, 188183, 115923, 169424, 3447, 1658, 26783, 27489, 62163, 2704, 16750, 16487, 14012, 79786, 5155, 390, 4393, 31150, 2046, 47644, 4527, 64152, 96...
[ 0.2127685546875, 0.25634765625, 0.079833984375, 0.12548828125, 0.144775390625, 0.1650390625, 0.0206146240234375, 0.1181640625, 0.1524658203125, 0.078125, 0.1527099609375, 0.1578369140625, 0.0293121337890625, 0.029754638671875, 0.06744384765625, 0.164794921875, 0.123046875, 0.084594...
embed
6441223_c0
6441223
sql
0
Title: SQL : using reserved words as names Problem title: SQL : using reserved words as names Tags: sql, excel Problem: SQL : using reserved words as names Code signals: reserved, SQL
SQL : using reserved words as names SQL : using reserved words as names sql excel reserved SQL SQL : using reserved words as names
[ 0.0262451171875, -0.0069580078125, -0.00113677978515625, -0.001678466796875, -0.0023040771484375, -0.01068115234375, -0.00113677978515625, 0.007354736328125, 0.00150299072265625, 0.018798828125, -0.00946044921875, -0.00732421875, 0.0208740234375, -0.006500244140625, -0.002899169921875, ...
[ 80866, 152, 17368, 70488, 34153, 237, 123055, 91, 99247, 64152 ]
[ 0.27685546875, 0.03509521484375, 0.10516357421875, 0.2467041015625, 0.19140625, 0.1273193359375, 0.1614990234375, 0.034027099609375, 0.1640625, 0.162109375 ]
embed
66798785_c0
66798785
sql
0
Title: Get data by Id and Rank in MySql Problem title: Get data by Id and Rank in MySql Tags: linq, mysql, sql Problem: Get data by Id and Rank in MySql Code signals: Get, Rank, MySql
Get data by Id and Rank in MySql Get data by Id and Rank in MySql linq mysql sql Get Rank MySql Get data by Id and Rank in MySql Here is a sample original data Now for example User give me an Id = 2705 whose rank is 9 Now I have to get data between rank 6 and rank 12 How can I do it.
[ -0.0002803802490234375, 0.004364013671875, -0.00921630859375, 0.0185546875, -0.0093994140625, 0.01226806640625, 0.0025482177734375, -0.0205078125, 0.002532958984375, -0.0291748046875, 0.02685546875, 0.007568359375, -0.0022430419921875, -0.0267333984375, -0.025634765625, -0.001075744628...
[ 20779, 2053, 390, 24799, 136, 134405, 23, 2646, 294, 99247, 96, 44982, 759, 7, 91, 121413, 7311, 53400, 1438, 8194, 30648, 483, 765, 47, 2046, 17721, 305, 427, 831, 54, 442 ]
[ 0.1268310546875, 0.1859130859375, 0.14111328125, 0.2177734375, 0.1856689453125, 0.267578125, 0.099853515625, 0.162109375, 0.0994873046875, 0.25146484375, 0.0289459228515625, 0.1533203125, 0.1141357421875, 0.00653076171875, 0.01641845703125, 0.0770263671875, 0.0430908203125, 0.12548...
embed
40749024_c0
40749024
sql
0
Title: postgresql query Problem title: postgresql query Tags: select, sql, postgresql Problem: postgresql query Please help me with the query Below are the table and requirement details
postgresql query postgresql query select sql postgresql postgresql query Please help me with the query Below are the table and requirement details
[ 0.00994873046875, 0.0166015625, -0.012451171875, 0.028076171875, -0.00482177734375, -0.00152587890625, -0.009521484375, 0.010009765625, -0.005126953125, 0.00579833984375, 0.0233154296875, -0.003570556640625, -0.01806640625, 0.01519775390625, -0.04052734375, 0.02734375, -0.01483154296...
[ 1305, 17562, 99247, 41, 1294, 36849, 91, 30607, 4358, 163, 678, 17336, 621, 23180, 136, 64209, 674, 41653 ]
[ 0.087158203125, 0.1331787109375, 0.2164306640625, 0.1644287109375, 0.1378173828125, 0.1907958984375, 0.0154876708984375, 0.037322998046875, 0.14501953125, 0.086669921875, 0.0791015625, 0.10504150390625, 0.036865234375, 0.1986083984375, 0.0721435546875, 0.185791015625, 0.103271484375,...
embed
31697259_c0
31697259
sql
0
Title: firebird sql order by Problem title: firebird sql order by Tags: sql-order-by, sql Problem: firebird sql order by i got a dataset which looks like this: customernumber year value
firebird sql order by firebird sql order by sql-order-by sql firebird sql order by i got a dataset which looks like this: i want it to be ordered by highest value of year 2011, but the rows of each customer need to stay together. it should look like this: is this even possible? thanks in advance!
[ 0.031494140625, -0.01092529296875, -0.0228271484375, 0.00787353515625, -0.015625, 0.010498046875, 0.00125885009765625, 0.00799560546875, 0.01708984375, 0.01043701171875, -0.0118408203125, -0.01031494140625, -0.01251220703125, -0.027587890625, -0.003570556640625, -0.020751953125, -0.0...
[ 11476, 91157, 99247, 12989, 390, 80596, 1272, 91, 17, 4163, 2053, 3509, 33342, 1884, 903, 3444, 47, 186, 297, 167375, 34292, 6602, 34975, 1284, 15555, 7, 12638, 43373, 3871, 24765, 25842, 5608, 6713, 83, 3853, 7722, 45458, 129745 ]
[ 0.08642578125, 0.22265625, 0.2301025390625, 0.236572265625, 0.1572265625, 0.201904296875, 0.138671875, 0.008056640625, 0.035858154296875, 0.03228759765625, 0.0853271484375, 0.15966796875, 0.1239013671875, 0.0625, 0.0634765625, 0.119140625, 0.02978515625, 0.0152587890625, 0.132446...
embed
35150992_c0
35150992
sql
0
Title: SQL Missing Day Data Problem title: SQL Missing Day Data Tags: sql, oracle-database Problem: SQL Missing Day Data Code signals: SQL, Missing, Day, Data, DATE_WID, PM_TOTAL, PM_WID
SQL Missing Day Data SQL Missing Day Data sql oracle-database SQL Missing Day Data DATE_WID PM_TOTAL PM_WID SQL Missing Day Data I am struggling to get desired result out details below my source data is as Source data after joined to day dimension The result out is what I wanted is Result out desired Basically the data...
[ 0.0294189453125, -0.0026702880859375, -0.018310546875, 0.0281982421875, -0.0115966796875, 0.00634765625, 0.021240234375, 0.01080322265625, 0.01031494140625, 0.0274658203125, -0.002105712890625, -0.00390625, -0.0179443359375, -0.004974365234375, -0.0029296875, -0.0045166015625, 0.0127...
[ 80866, 16771, 214, 10013, 11809, 91, 99247, 3620, 11030, 10135, 37382, 391, 35746, 1456, 7146, 7198, 8727, 30487, 237875, 2046, 104851, 16750, 1810, 41653, 35064, 31344, 2053, 237, 77641, 33284, 47, 5155, 91403, 36663, 126684, 53299, 918, 955...
[ 0.2430419921875, 0.178466796875, 0.127197265625, 0.1785888671875, 0.1751708984375, 0.001861572265625, 0.1951904296875, 0.1202392578125, 0.1546630859375, 0.0305328369140625, 0.12109375, 0.0982666015625, 0.0704345703125, 0.1024169921875, 0.142822265625, 0.194091796875, 0.1795654296875,...
embed
52677680_c0
52677680
sql
0
Title: How to create ranges per 2 rows Problem title: How to create ranges per 2 rows Tags: sql, postgresql Problem: How to create ranges per 2 rows Code signals: How, min_date, max_date
How to create ranges per 2 rows How to create ranges per 2 rows sql postgresql How min_date max_date How to create ranges per 2 rows I have the following table: How do I query in such a way so as to get the following results?
[ 0.0037384033203125, 0.0036773681640625, 0.00078582763671875, 0.047607421875, -0.00640869140625, 0.038330078125, -0.000949859619140625, -0.000579833984375, 0.0179443359375, 0.025390625, -0.0003814697265625, -0.0269775390625, 0.034912109375, -0.018310546875, -0.006317138671875, 0.0123901...
[ 11249, 28282, 37457, 7, 117, 116, 15555, 47, 99247, 1305, 17562, 881, 17489, 18389, 25632, 23180, 41, 1294, 6044, 50339 ]
[ 0.040771484375, 0.15087890625, 0.249755859375, 0.1182861328125, 0.131591796875, 0.15380859375, 0.2044677734375, 0.0161285400390625, 0.1729736328125, 0.0506591796875, 0.124755859375, 0.12939453125, 0.1121826171875, 0.0870361328125, 0.0198516845703125, 0.123779296875, 0.04144287109375,...
embed
20983428_c0
20983428
sql
0
Title: How to create this update query? Problem title: How to create this update query? Tags: sql-server, sql Problem: How to create this update query? Code signals: How, col1, col2, col3
How to create this update query? How to create this update query? sql-server sql How col1 col2 col3 How to create this update query? How do I construct an update query that will go through the following table and put any col2 and col3 on the same row if they have the same "date" values? New arrangement: Notice the chan...
[ 0.007110595703125, 0.01708984375, -0.01116943359375, 0.0286865234375, -0.00665283203125, 0.0233154296875, -0.01708984375, 0.00836181640625, 0.00982666015625, 0.0255126953125, -0.00347900390625, -0.0133056640625, 0.022216796875, -0.020751953125, -0.007598876953125, 0.0164794921875, 0....
[ 11249, 47, 28282, 903, 28350, 41, 1294, 99247, 39642, 3365, 418, 304, 363, 64549, 8305, 25632, 23180, 3884, 136, 5701, 15555, 2174, 17489, 142424, 2356, 70767, 438, 24494, 70, 15549, 112474, 138, 12477, 34841, 34278, 11436, 4734, 98, 4173, ...
[ 0.0858154296875, 0.03460693359375, 0.1617431640625, 0.10748291015625, 0.2249755859375, 0.164794921875, 0.15673828125, 0.188232421875, 0.1156005859375, 0.1248779296875, 0.0565185546875, 0.1539306640625, 0.1844482421875, 0.114013671875, 0.06744384765625, 0.04388427734375, 0.14208984375...
embed
57360133_c0
57360133
sql
0
Title: Quartile in Oracle SQL Problem title: Quartile in Oracle SQL Tags: sql, oracle-database Problem: Quartile in Oracle SQL Code signals: table1, Quartile, Oracle, SQL, NTILE, segment1
Quartile in Oracle SQL Quartile in Oracle SQL sql oracle-database table1 Quartile Oracle SQL NTILE segment1 Quartile in Oracle SQL I have a table table1 I want to divide the 10 rows into 4 buckets. I did the following: But this gives me equal distribution in 4 buckets. I would like to have decreasing 4 buckets. 1st one...
[ 0.0106201171875, -0.002960205078125, 0.002593994140625, -0.0021514892578125, -0.005889892578125, -0.0286865234375, 0.0029754638671875, -0.00144195556640625, -0.01361083984375, 0.01251220703125, -0.01611328125, 0.035888671875, -0.0242919921875, 0.005859375, -0.0009002685546875, -0.00129...
[ 48772, 1340, 23, 146785, 80866, 99247, 3620, 11030, 37382, 23180, 418, 65779, 52099, 33180, 765, 3444, 47, 101637, 209, 15555, 3934, 201, 373, 27853, 105950, 113068, 2806, 1884, 8, 7612, 162, 214, 271, 1632, 24051, 16279, 12719, 10662, 1353...
[ 0.221435546875, 0.2227783203125, 0.08367919921875, 0.2423095703125, 0.2374267578125, 0.1375732421875, 0.098876953125, 0.0908203125, 0.089599609375, 0.2000732421875, 0.070556640625, 0.06146240234375, 0.1939697265625, 0.1893310546875, 0.0382080078125, 0.0904541015625, 0.011505126953125...
embed
71781744_c0
71781744
sql
0
Title: rank a column by condition in another column Problem title: rank a column by condition in another column Tags: postgresql, sql Problem: rank a column by condition in another column
rank a column by condition in another column rank a column by condition in another column postgresql sql rank a column by condition in another column Given I want to obtain How can I do this in postgresql? Is there a way to do this without union or join? Ty
[ 0.01611328125, -0.0093994140625, -0.022216796875, 0.0224609375, -0.01385498046875, -0.009521484375, 0.010498046875, 0.0013885498046875, 0.0089111328125, 0.00823974609375, 0.01251220703125, 0.00775146484375, 0.0107421875, -0.012939453125, -0.03955078125, -0.004852294921875, -0.0106811...
[ 30648, 3365, 316, 390, 35431, 23, 15700, 10, 1305, 17562, 99247, 19, 3444, 47, 113054, 831, 54, 903, 15490, 69941, 33284, 8064 ]
[ 0.2349853515625, 0.1328125, 0.1553955078125, 0.06170654296875, 0.2373046875, 0.052703857421875, 0.102294921875, 0.0413818359375, 0.042755126953125, 0.1173095703125, 0.122802734375, 0.038299560546875, 0.01983642578125, 0.01800537109375, 0.1185302734375, 0.00421142578125, 0.00314331054...
embed
47648602_c0
47648602
sql
0
Title: query for time in mysql between hours Problem title: query for time in mysql between hours Tags: sql, php, mysql Problem: query for time in mysql between hours Code signals: user_id
query for time in mysql between hours query for time in mysql between hours sql php mysql user_id query for time in mysql between hours how to get a list of rows that is between 17:30 till tomarrow 8:30. mysql table have a time column with unix timestamp and i want get a list every day that between 17:30 till 8:30
[ -0.00689697265625, -0.008056640625, 0.01373291015625, -0.022216796875, -0.0011138916015625, -0.0031280517578125, -0.03173828125, 0.014892578125, 0.000637054443359375, -0.041015625, -0.0004825592041015625, -0.01019287109375, -0.00145721435546875, -0.00017070770263671875, -0.00518798828125...
[ 41, 1294, 100, 1733, 23, 759, 7, 99247, 17721, 21974, 3958, 38937, 532, 3642, 2046, 5303, 111, 15555, 83, 108313, 570, 17821, 382, 12, 1197, 23180, 3365, 316, 19, 678, 51, 4084, 590, 2676, 3444, 10, 11907, 5155, 450 ]
[ 0.15771484375, 0.1422119140625, 0.1539306640625, 0.2325439453125, 0.07659912109375, 0.1312255859375, 0.0863037109375, 0.229736328125, 0.2265625, 0.2347412109375, 0.1273193359375, 0.09588623046875, 0.0875244140625, 0.0229339599609375, 0.090087890625, 0.1689453125, 0.0248870849609375, ...
embed
32291299_c0
32291299
sql
0
Title: sql - update statement from another table Problem title: sql - update statement from another table Tags: sql Problem: sql - update statement from another table Code signals: another
sql - update statement from another table sql - update statement from another table sql another sql - update statement from another table Can anyone help with the following select statement? I have 2 tables and I need to update table#1 with data from table#2 The field to update is 'amount' Table#1 table#2 the update st...
[ 0.0113525390625, 0.0115966796875, -0.0155029296875, -0.000278472900390625, -0.007476806640625, 0.01422119140625, -0.01104736328125, 0.0211181640625, 0.01263427734375, -0.0203857421875, -0.01214599609375, 0.00213623046875, -0.00732421875, 0.000415802001953125, 0.0023193359375, 0.0114746...
[ 99247, 28350, 63805, 1295, 15700, 23180, 91, 35672, 4358, 25632, 36849, 116, 3871, 418, 678, 2053, 304, 44457, 47, 83, 121147, 112997, 5608, 5646, 442, 6713, 1884 ]
[ 0.20751953125, 0.1773681640625, 0.1865234375, 0.1265869140625, 0.136474609375, 0.1851806640625, 0.009307861328125, 0.0166015625, 0.1024169921875, 0.045074462890625, 0.1597900390625, 0.0784912109375, 0.044158935546875, 0.02734375, 0.02880859375, 0.03839111328125, 0.0758056640625, 0....
embed
61334284_c0
61334284
sql
0
Title: all combination of two columns from a table Problem title: all combination of two columns from a table Tags: sql Problem: all combination of two columns from a table Code signals: a
all combination of two columns from a table all combination of two columns from a table sql a all combination of two columns from a table I have a table like this If you look at the table job j3 does not have an entry for 4/2/2020. What I am looking for is I want all the possible combination of the date and job along w...
[ 0.006011962890625, 0.0030059814453125, -0.023193359375, 0.02880859375, -0.0089111328125, 0.021728515625, -0.0211181640625, -0.006622314453125, -0.01007080078125, -0.01043701171875, 0.0020294189453125, 0.01055908203125, 0.00860595703125, 0.0185546875, -0.044189453125, 0.00872802734375, ...
[ 756, 162515, 111, 6626, 3365, 316, 1779, 1295, 23180, 10, 99247, 1884, 6713, 12447, 1647, 363, 959, 42805, 201, 12477, 49409, 16487, 100, 3444, 70, 7722, 5622, 136, 47763, 2685, 56574, 41421, 33284, 84434, 5 ]
[ 0.169189453125, 0.250244140625, 0.0406494140625, 0.1641845703125, 0.138427734375, 0.1578369140625, 0.0843505859375, 0.1177978515625, 0.2421875, 0.037322998046875, 0.2027587890625, 0.0076904296875, 0.023651123046875, 0.132080078125, 0.07586669921875, 0.1270751953125, 0.03900146484375,...
embed
36883994_c0
36883994
sql
0
Title: Count multiple code by multiple date Problem title: Count multiple code by multiple date Tags: sql-server, sql Problem: Count multiple code by multiple date Code signals: Count, Date
Count multiple code by multiple date Count multiple code by multiple date sql-server sql Count Date Count multiple code by multiple date I have a table like this I want to count the table by date so the result is 3. EDIT Second Edit Code | Date ------------------------ 112 | 14-05-2016 12:03 113 | 14-05-2016 12:09 112 ...
[ 0.02294921875, -0.02001953125, -0.0240478515625, 0.053466796875, -0.007110595703125, 0.00110626220703125, -0.0157470703125, 0.015869140625, 0.010498046875, -0.001922607421875, -0.040771484375, -0.046630859375, 0.03076171875, 0.020263671875, -0.032958984375, -0.000644683837890625, -0....
[ 108210, 48716, 18151, 390, 5622, 91, 99247, 9, 39642, 25512, 87, 765, 23180, 1884, 903, 3444, 54529, 16750, 1031, 172864, 77648, 42079, 28864, 25837, 52288, 4131, 28724, 49508, 34417, 28270, 44909, 32944, 2289 ]
[ 0.220703125, 0.2666015625, 0.254150390625, 0.10406494140625, 0.1907958984375, 0.010223388671875, 0.2012939453125, 0.007354736328125, 0.1429443359375, 0.1978759765625, 0.002655029296875, 0.01910400390625, 0.208251953125, 0.055908203125, 0.0230255126953125, 0.052032470703125, 0.2023925...
embed
4170464_c0
4170464
sql
0
Title: how to write sql query? Problem title: how to write sql query? Tags: t-sql, sql, sql-server, sql-server-2008 Problem: how to write sql query? Code signals: Promocode, sql-server-2008
how to write sql query? how to write sql query? t-sql sql sql-server sql-server-2008 Promocode sql-server-2008 how to write sql query? Table : promocode I want result as plz help me ........
[ 0.0181884765625, 0.0235595703125, -0.020751953125, 0.02685546875, -0.01519775390625, 0.007415771484375, -0.039306640625, 0.0019683837890625, -0.01214599609375, -0.004547119140625, -0.0002346038818359375, -0.021240234375, 0.0155029296875, 0.0269775390625, -0.0216064453125, 0.01037597656...
[ 3642, 47, 33022, 91, 99247, 41, 1294, 32, 808, 39642, 105011, 23490, 40899, 112997, 8891, 3444, 16750, 237, 130432, 4358, 163, 32882 ]
[ 0.1163330078125, 0.112060546875, 0.2008056640625, 0.052703857421875, 0.24951171875, 0.169189453125, 0.1732177734375, 0.013427734375, 0.0965576171875, 0.1141357421875, 0.19140625, 0.1756591796875, 0.2265625, 0.18359375, 0.192138671875, 0.08740234375, 0.14794921875, 0.117431640625, ...
embed
43459622_c0
43459622
sql
0
Title: Multiplying values of same PKs Problem title: Multiplying values of same PKs Tags: sql, sql-server Problem: Multiplying values of same PKs Code signals: t, Multiplying, PKs, SUM, MIN
Multiplying values of same PKs Multiplying values of same PKs sql sql-server t Multiplying PKs SUM MIN Multiplying values of same PKs I have the following table: The result should be something like this: I wrote a code that may be only applied to the actual table, but if we add a row or more, it is not working well: Ho...
[ -0.0076904296875, 0.016845703125, 0.0152587890625, 0.0203857421875, -0.027587890625, -0.021484375, -0.00445556640625, 0.004791259765625, 0.01202392578125, 0.002166748046875, -0.01025390625, 0.025390625, 0.004669189453125, -0.00116729736328125, -0.00872802734375, 0.018798828125, 0.013...
[ 19335, 62479, 214, 142424, 111, 5701, 60836, 7, 99247, 39642, 808, 127944, 69048, 25632, 23180, 16750, 5608, 1884, 903, 54397, 18151, 1543, 4734, 190659, 8561, 15190, 15555, 1286, 959, 20697, 5299, 67330, 2811, 40383, 4488, 155965, 2046 ]
[ 0.0838623046875, 0.1591796875, 0.011932373046875, 0.1387939453125, 0.031341552734375, 0.14794921875, 0.183349609375, 0.09222412109375, 0.159912109375, 0.123046875, 0.08935546875, 0.1473388671875, 0.2117919921875, 0.043426513671875, 0.2020263671875, 0.0615234375, 0.0205078125, 0.069...
embed
2020943_c0
2020943
sql
0
Title: mysql null to 0 Problem title: mysql null to 0 Tags: sql, mysql Problem: mysql null to 0 SELECT * from book; how to convert NULL result to 0 from the sql ? Code signals: book, SELECT
mysql null to 0 mysql null to 0 sql mysql book SELECT mysql null to 0 how to convert NULL result to 0 from the sql ?
[ 0.004241943359375, -0.005096435546875, 0.0220947265625, 0.01361083984375, -0.028076171875, 0.011474609375, 0.01123046875, -0.01513671875, 0.007568359375, 0.003173828125, 0.004302978515625, -0.01495361328125, -0.007568359375, 0.01324462890625, -0.01043701171875, -0.0150146484375, 0.00...
[ 759, 7, 99247, 56574, 47, 757, 91, 12877, 6755, 144832, 3642, 96760, 18057, 23708, 16750, 1295, 705 ]
[ 0.1358642578125, 0.0643310546875, 0.2421875, 0.25341796875, 0.1710205078125, 0.2149658203125, 0.0648193359375, 0.1595458984375, 0.1085205078125, 0.2061767578125, 0.08203125, 0.15869140625, 0.1846923828125, 0.1898193359375, 0.2015380859375, 0.0789794921875, 0.002227783203125 ]
embed
54783674_c0
54783674
sql
0
Title: remove duplicate from left outer join Problem title: remove duplicate from left outer join Tags: sql Problem: remove duplicate from left outer join Code signals: left, Vendor, Amount
remove duplicate from left outer join remove duplicate from left outer join sql left Vendor Amount remove duplicate from left outer join I have two tables. table A: table B: can I use SQL to get the below result let the distinct amount only showed once?Thanks.
[ 0.0230712890625, 0.006072998046875, -0.003387451171875, 0.018798828125, 0, -0.0057373046875, 0.005828857421875, 0.0126953125, -0.00469970703125, -0.008544921875, -0.0145263671875, 0.0033416748046875, 0.005889892578125, -0.0186767578125, -0.01068115234375, 0.0152587890625, 0.006256103...
[ 87388, 171763, 67, 1295, 25737, 1810, 56, 33284, 99247, 10146, 1846, 62, 121147, 6626, 23180, 335, 831, 4527, 80866, 2046, 35064, 16750, 2633, 117781, 41170, 4734, 168360, 24145 ]
[ 0.1260986328125, 0.24169921875, 0.1240234375, 0.0706787109375, 0.1815185546875, 0.146728515625, 0.1492919921875, 0.22265625, 0.188720703125, 0.1611328125, 0.091552734375, 0.0440673828125, 0.1832275390625, 0.0926513671875, 0.181640625, 0.0804443359375, 0.042144775390625, 0.035400390...
embed
8320074_c0
8320074
sql
0
Title: using group by clause in subquery in sql Problem title: using group by clause in subquery in sql Tags: sql Problem: using group by clause in subquery in sql Code signals: group, Bids
using group by clause in subquery in sql using group by clause in subquery in sql sql group Bids using group by clause in subquery in sql I am trying to use group by clause in subquery which is in from clause but this gives error Is it possible to use group by clause in subquery in from clause in sql?
[ 0.017822265625, 0.01239013671875, -0.00171661376953125, 0.01361083984375, -0.014404296875, 0.0203857421875, -0.013916015625, 0.00616455078125, 0.01165771484375, 0.000469207763671875, -0.0140380859375, 0.01483154296875, 0.00567626953125, 0.004241943359375, -0.01470947265625, 0.023559570...
[ 17368, 21115, 390, 70731, 13, 23, 1614, 944, 1294, 91, 99247, 335, 30185, 31577, 4527, 1295, 76199, 18499, 7722 ]
[ 0.08673095703125, 0.2147216796875, 0.1422119140625, 0.219482421875, 0.125732421875, 0.04937744140625, 0.1954345703125, 0.130615234375, 0.1068115234375, 0.03741455078125, 0.2056884765625, 0.114990234375, 0.149169921875, 0.029998779296875, 0.111328125, 0.1300048828125, 0.01132202148437...
embed
100780_c0
100780
sql
0
Title: MySQL Training videos Problem title: MySQL Training videos Tags: sql, mysql Problem: MySQL Training videos Hi were can I find training videos for MySQL ? Code signals: MySQL, Training
MySQL Training videos MySQL Training videos sql mysql MySQL Training MySQL Training videos Hi were can I find training videos for MySQL ?
[ 0.0341796875, 0.03173828125, -0.00101470947265625, 0.0101318359375, 0.0093994140625, 0.0341796875, 0.01507568359375, -0.0194091796875, -0.010986328125, -0.033935546875, 0.004425048828125, -0.0322265625, 0.007720947265625, 0.00225830078125, -0.038818359375, 0.00823974609375, 0.0017471...
[ 157146, 44284, 21930, 91, 99247, 759, 7, 2673, 3542, 831, 87, 7413, 23189, 100, 705 ]
[ 0.252197265625, 0.2021484375, 0.2261962890625, 0.043792724609375, 0.1976318359375, 0.1112060546875, 0.01513671875, 0.0357666015625, 0.078125, 0.043487548828125, 0.01409912109375, 0.1024169921875, 0.21533203125, 0.0732421875, 0.016357421875 ]
embed
45481205_c0
45481205
sql
0
Title: impala sliding window Problem title: impala sliding window Tags: sql-timestamp, sliding-window, moving-average, sql, impala Problem: impala sliding window Code signals: Timestamp, Max
impala sliding window impala sliding window sql-timestamp sliding-window moving-average sql impala Timestamp Max impala sliding window I would like to run a sliding window function in impala that finds the maximum price based on 5 minutes interval in other words i want to compare the price of my current row with all ro...
[ 0.003875732421875, 0.0037841796875, 0.018310546875, 0.03125, -0.0224609375, 0.00946044921875, -0.004486083984375, -0.002777099609375, -0.00775146484375, -0.0162353515625, -0.00384521484375, -0.0203857421875, -0.02001953125, -0.0029296875, -0.00160980224609375, 0.019775390625, -0.0137...
[ 566, 16917, 132692, 214, 76896, 99247, 6032, 590, 2676, 9494, 24293, 98567, 8216, 29838, 19114, 102, 9920, 2806, 1884, 11675, 32354, 7413, 38132, 27167, 35509, 190, 14633, 51514, 3444, 69101, 43581, 15555, 678, 756, 4568, 33022, 70, 232248, ...
[ 0.119384765625, 0.27783203125, 0.220458984375, 0.134521484375, 0.2103271484375, 0.1717529296875, 0.060089111328125, 0.09765625, 0.1475830078125, 0.104248046875, 0.082763671875, 0.1124267578125, 0.1461181640625, 0.1221923828125, 0.079833984375, 0.10595703125, 0.162841796875, 0.02320...
embed
42054923_c0
42054923
sql
0
Title: Get last balance sign change in (My)SQL Problem title: Get last balance sign change in (My)SQL Tags: mysql, sql Problem: Get last balance sign change in (My)SQL Code signals: Get, SQL
Get last balance sign change in (My)SQL Get last balance sign change in (My)SQL mysql sql Get SQL Get last balance sign change in (My)SQL I have a Transaction table that records every amount added to or subtracted from the balance of a Customer, with the new balance: The Customer table stores the current balance, and l...
[ 0.00396728515625, 0.0169677734375, -0.0194091796875, -0.0010833740234375, -0.0164794921875, 0.034912109375, -0.0042724609375, 0.00537109375, 0.0091552734375, 0.0224609375, 0.01202392578125, -0.01019287109375, 0.00034332275390625, 0.0062255859375, -0.0002727508544921875, 0.0002803802490...
[ 20779, 4568, 40197, 24092, 15549, 23, 31852, 158897, 759, 99247, 80866, 11062, 44713, 23180, 115923, 11907, 41170, 49814, 1614, 1517, 124765, 3525, 4343, 43581, 33342, 15190, 218723, 42380, 3365, 316, 1733, 590, 2676, 98816, 162774, 1830, 1295,...
[ 0.10455322265625, 0.2318115234375, 0.267822265625, 0.2467041015625, 0.2222900390625, 0.08642578125, 0.1322021484375, 0.251953125, 0.09490966796875, 0.1654052734375, 0.2171630859375, 0.09893798828125, 0.0943603515625, 0.1700439453125, 0.058837890625, 0.0875244140625, 0.0570068359375, ...
embed
52751439_c1
52751439
sql
1
72 44 99 Jan-18 700 62 44 06 Jan-18 600 55 23 06 Jan-18 800 77 90 10 Feb-18 900 72 44 99 Feb-18 700 62 44 06 Feb-18 600 55 23 06 Feb-18 Code signals: score_1, score_2, Dec-17, Jan-18, Feb-18
72 44 99 Jan-18 700 62 44 06 Jan-18 600 55 23 06 Jan-18 800 77 90 10 Feb-18 900 72 44 99 Feb-18 700 62 44 06 Feb-18 600 55 23 06 Feb-18 Code signals: score_1, score_2, Dec-17, Jan-18, Feb-18
[ 0.00262451171875, 0.00732421875, -0.0283203125, 0.0260009765625, -0.0015106201171875, -0.01373291015625, 0.0012054443359375, 0.0380859375, 0.01544189453125, 0.0712890625, -0.01239013671875, -0.005584716796875, 0.0179443359375, -0.0034027099609375, -0.00726318359375, 0.001220703125, 0...
[ 9464, 5896, 10078, 3342, 9444, 10044, 10031, 4880, 6331, 4859, 1105, 7607, 14154, 2510, 209, 43677, 18351, 28864, 26073, 7, 47763, 115187, 304, 25755, 13521 ]
[ 0.24462890625, 0.3134765625, 0.30029296875, 0.1785888671875, 0.2010498046875, 0.199951171875, 0.22509765625, 0.2376708984375, 0.17919921875, 0.2408447265625, 0.21630859375, 0.198974609375, 0.2337646484375, 0.24365234375, 0.1898193359375, 0.1685791015625, 0.2301025390625, 0.21777343...
embed
65212760_c0
65212760
sql
0
Title: Get average for everyday - SQL Problem title: Get average for everyday - SQL Tags: sql-server, sql Problem: Get average for everyday - SQL Code signals: Get, SQL, Resolved, Date, Mins
Get average for everyday - SQL Get average for everyday - SQL sql-server sql Get SQL Resolved Date Mins Get average for everyday - SQL I have a field of Timestamp and I want to find the average hours spent every day. Lets say: I need my output to be: I have built a calendar table, but I'm not sure how to use it.
[ 0.0167236328125, -0.0128173828125, -0.00007724761962890625, 0.03662109375, -0.0228271484375, -0.01904296875, 0.0009002685546875, 0.01129150390625, 0.0037689208984375, -0.02685546875, 0.006134033203125, 0.00124359130859375, -0.008056640625, 0.00180816650390625, -0.023193359375, 0.013122...
[ 20779, 83080, 100, 190704, 80866, 99247, 39642, 86918, 25512, 4211, 44457, 19114, 102, 2676, 3444, 7413, 21974, 66933, 11907, 5155, 3871, 140992, 88303, 87939, 23180, 9077, 4527 ]
[ 0.08782958984375, 0.2452392578125, 0.1143798828125, 0.23779296875, 0.2393798828125, 0.1865234375, 0.08721923828125, 0.138427734375, 0.0833740234375, 0.1527099609375, 0.1124267578125, 0.05078125, 0.08544921875, 0.1708984375, 0.03753662109375, 0.055755615234375, 0.2042236328125, 0.12...
embed
22752160_c0
22752160
sql
0
Title: How to control a Sequence? Problem title: How to control a Sequence? Tags: sql, sql-server Problem: How to control a Sequence? Code signals: How, Sequence, DATE, DriverId, CodeId, STOP
How to control a Sequence? How to control a Sequence? sql sql-server How Sequence DATE DriverId CodeId STOP How to control a Sequence? I have to test a sequence in a table and have to delete the wrong records. Example: When I deleted the worng record, I have to calculate the time between GO & Stop Im using SQL Server 2...
[ 0.0223388671875, 0.021484375, -0.01531982421875, 0.02294921875, -0.0087890625, -0.006866455078125, -0.00799560546875, 0.004302978515625, 0.0009765625, -0.0167236328125, -0.0084228515625, 0.005279541015625, -0.008544921875, 0.003387451171875, 0.0035247802734375, 0.0191650390625, -0.01...
[ 11249, 47, 6226, 10, 503, 944, 3956, 32, 99247, 39642, 391, 35746, 131470, 28864, 159, 70675, 765, 3034, 40, 23180, 154109, 44691, 115923, 23432, 449, 17164, 74481, 1733, 17721, 25052, 619, 42284, 3370, 80866, 22687, 1324 ]
[ 0.1219482421875, 0.138916015625, 0.267822265625, 0.052642822265625, 0.133544921875, 0.1951904296875, 0.21142578125, 0.00128173828125, 0.139404296875, 0.122314453125, 0.08770751953125, 0.1337890625, 0.166748046875, 0.1143798828125, 0.03839111328125, 0.1927490234375, 0.0217437744140625...
embed
62639244_c0
62639244
sql
0
Title: show Query mysql with condition Problem title: show Query mysql with condition Tags: mysql, sql Problem: show Query mysql with condition Code signals: employee, Query, employee_id, ALL
show Query mysql with condition show Query mysql with condition mysql sql employee Query employee_id ALL show Query mysql with condition I have table employee below: and i want if marketing dept have null phone value they are not shown and if customer service dept, they shown all value even phone is null any possible q...
[ 0.01416015625, 0.0064697265625, -0.00555419921875, 0.00555419921875, 0.0009613037109375, 0.02099609375, -0.0024566650390625, 0.00341796875, 0.0128173828125, 0.0255126953125, 0.0120849609375, -0.01190185546875, 0.01153564453125, 0.032958984375, -0.027587890625, 0.0201416015625, 0.0089...
[ 7639, 58836, 53, 759, 7, 99247, 678, 35431, 188183, 532, 58837, 23180, 35064, 3444, 2174, 7481, 8, 6328, 56574, 24089, 34292, 959, 127887, 43373, 4516, 756, 7722, 41, 1294, 15490, 4527, 69941 ]
[ 0.15673828125, 0.2125244140625, 0.113037109375, 0.141357421875, 0.063720703125, 0.2276611328125, 0.1300048828125, 0.25537109375, 0.16943359375, 0.0804443359375, 0.051177978515625, 0.15673828125, 0.1141357421875, 0.0948486328125, 0.009521484375, 0.152587890625, 0.061767578125, 0.087...
embed
13760640_c0
13760640
sql
0
Title: SQL distinct rows and count Problem title: SQL distinct rows and count Tags: row, distinct, sql, count Problem: SQL distinct rows and count Code signals: SQL, CookieId, ef74565ea9ff5ba8
SQL distinct rows and count SQL distinct rows and count row distinct sql count SQL CookieId ef74565ea9ff5ba8 SQL distinct rows and count I have a table like this: The result should be only the distinct rows: More of that if I can get the count of the rows would be also good. How can I achieve this two result?
[ 0.0252685546875, 0.0023345947265625, 0.010986328125, 0.0052490234375, -0.00099945068359375, -0.0191650390625, -0.00762939453125, 0.01953125, 0.0166015625, -0.003936767578125, -0.01556396484375, -0.0322265625, 0.029541015625, 0.00836181640625, -0.043212890625, 0.001068115234375, -0.00...
[ 80866, 117781, 15555, 7, 136, 54529, 91, 99247, 37704, 568, 71, 9129, 183262, 12424, 87, 23180, 1884, 903, 16750, 5608, 4734, 5455, 2174, 831, 2046, 111, 2806, 4127, 69307, 6626 ]
[ 0.227294921875, 0.22021484375, 0.2103271484375, 0.068115234375, 0.1103515625, 0.1885986328125, 0.00494384765625, 0.193359375, 0.1939697265625, 0.026702880859375, 0.026153564453125, 0.057891845703125, 0.083740234375, 0.05340576171875, 0.0086669921875, 0.1563720703125, 0.04507446289062...
embed
23058113_c0
23058113
sql
0
Title: how to sort varchar numeric columns? Problem title: how to sort varchar numeric columns? Tags: mysql, sql Problem: how to sort varchar numeric columns? Code signals: ORDER, ASC, VARCHAR
how to sort varchar numeric columns? how to sort varchar numeric columns? mysql sql ORDER ASC VARCHAR how to sort varchar numeric columns? I write ... ORDER BY column ASC but my column is VARCHAR and it sorts wrong like I want to sorting numeric value but its datatype is varchar then how value like this but i want to i...
[ 0.01287841796875, -0.021484375, -0.0034332275390625, 0.0242919921875, 0.00360107421875, 0.045166015625, -0.00799560546875, -0.018310546875, -0.0020599365234375, 0.031494140625, -0.01324462890625, 0.004974365234375, -0.0024261474609375, -0.009033203125, -0.01300048828125, 0.001571655273...
[ 3642, 47, 12096, 285, 9254, 54744, 238, 3365, 316, 1779, 32, 759, 99247, 33172, 18044, 125429, 310, 169243, 11909, 33022, 57766, 1284, 19, 44691, 3444, 214, 34292, 50986, 1884, 944, 4568, 79315 ]
[ 0.09356689453125, 0.07733154296875, 0.2099609375, 0.148193359375, 0.2391357421875, 0.1798095703125, 0.08740234375, 0.1285400390625, 0.1583251953125, 0.0645751953125, 0.00537109375, 0.0687255859375, 0.1485595703125, 0.1458740234375, 0.10009765625, 0.130859375, 0.0997314453125, 0.094...
embed