stevensanderson, to medical
@stevensanderson@mstdn.social avatar

DNFB for medicine is discharged not final billed and is used a lot at hospitals as it represents the AR not yet billable. It is important to keep this to a minimum of days for efficiency and ability to get paid. It affects cashflow, so the lower the better. I wrote a quick diddy that sifted 147mllion rows in 2 seconds to give me my average dnfb by AR snapshot month

#SQL #AR #billing #medicalbilling #medical

nihilistdatascientist, to datascience
@nihilistdatascientist@mastodon.social avatar

Once I learned that SQL is usually case-insensitive I decided to write all my SQL in SpongeMock, because nothing fucking matters:

seLeCt
cOl2
,CoL1
fROm mY_tAblE
wHeRe cOl1 iS nOt nUlL
aNd CoL2 = 23

argv_minus_one, to rust
@argv_minus_one@mstdn.party avatar

I wonder if anyone has ever written an embedded in which there is no run-time interpreter, and all SQL queries are translated into machine code at compile time.

Kinda like sqlx, except queries are fully compiled at compile time, not just checked for correct syntax and types.

I'm guessing this would be extremely specific to one language, and outright impossible in most programming languages.

joelanman, to random
@joelanman@hachyderm.io avatar

Another db question! I'm using migration files whenever I make a change to the db. When I'm doing dev, whats a good source of truth for the current structure of the tables (column names, types and so on)? I could app switch to my db admin app but I'd prefer a quick way to reference inside VS Code
#sql

joelanman, to random
@joelanman@hachyderm.io avatar

I have a database question - say you have an items table and a messages table, and messages can refer to items. If someone needs to delete an item, you can't because of the foreign reference in messages.

I know you could 'soft delete' - set a status column to deleted, but what if you really need to delete, for example because the content is illegal or the user has a legal right to delete it?

nurkiewicz, to random
@nurkiewicz@fosstodon.org avatar

Little Bobby Tables? More like Little Bobby's Street: "Council claims database pain forced it to drop apostrophes from street names". Sadly, it was not #SQL injection | https://www.theregister.com/2024/05/07/north_yorkshire_council_blames_databases/

skribe, to django
@skribe@aus.social avatar

Django peeps. I want to link my languages table (English, French, Chinese, etc) to the word classes (Nouns, Verbs, Adjectives, etc) table. It would be a many-to-many relationship, but I'm not sure whether to use a join table or the many-to-many model. What's the most Django way?

OldGrumpyBitWrangler, to php
@OldGrumpyBitWrangler@mastodon.social avatar

An instance of a popular CMS is used for a website. While analyzing I'm coming across a a table in it's MySQL database where a column called "deleted" is defined as such:

deleted` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'A boolean indicating whether this data item has been deleted‘

🤦‍♂️

There should be a license allowing allowed to write software used by someone else. Like with drivers licenses it needs a points system for violations and license revocation.

aeveltstra, to random
@aeveltstra@mastodon.social avatar

Silly mistakes being silly:

Attempting to sort day name results from an #SQL query by day name.

As if the SQL engine would know day names and apply a natural sort, instead of a text based one.

I'm spoiled by Apple computers.

adamchainz, to django
@adamchainz@fosstodon.org avatar

✍️ New post on my new package django-harlequin.

🦆 This package provides a small launcher command for Harlequin, the Terminal-based SQL IDE by Ted Conbeer.

💽 Try it out and let me know what you think!

#Django #SQL

https://adamj.eu/tech/2024/05/07/django-harlequin/

davidbisset, to mastodon
@davidbisset@phpc.social avatar

From time to time I stumble onto a modern Tweet worth adding to my https://davidbisset.social collection (via #mastodon).


About #coding / #tech industry:

"Early in my career, I joined a project that used a lot of #SQL.

I was new to SQL so I found an “intro to SQL” book on the company bookshelf, and read it over a weekend.

From that point on, I was seen as an SQL expert amongst colleagues.

It was a revelation about our industry."

Also: #books still very useful.

https://twitter.com/steveofmcleod/status/1787173200121532632

wader, to random
@wader@fosstodon.org avatar

Yesterday I read the recently published JSONPath RFC (RFC9535) and listening to an interview with one of the creators of SQL https://www.datacamp.com/podcast/50-years-of-sql-with-don-chamberlin and worst of all i poked around in sqlite code to figure out how the scheme table works...guess I just have to accept that I'm a query language nerd.

stevensanderson, to stackoverflow
@stevensanderson@mstdn.social avatar

I was working on a problem today where I needed to pick out a department and a sub issue that were attached to each other as a single code in a comment.

I first went to use the traditional SUSTRING(comment_string, 1, 5) IN (my list of codes) but it was slow.

So off to work, I learned something new via and learned to make a sarge-able LIKE with what ever I want in the narrower results.

Nice to learn something new.

mortensummer, to sysadmin
@mortensummer@masto.ai avatar

I've started documenting various issues\problems that I face in my role when working in .

My first technical post is all about the challenges faced when securing in a multi-tenancy environment. I will write more as and when I come across other interesting issues!

https://mindcircuitry.com/securing-azure-sql-server-for-multi-tenancy-access

kubikpixel, (edited ) to Redis German
@kubikpixel@chaos.social avatar

I have the same question about: PoloDB¹ vs. KeyDB² or even RethinkDB³? 🤔
(all ar open-source and free)

«MongoDB vs. Redis: Which Database Should You Use?»
📄 https://www.integrate.io/blog/mongodb-vs-redis/

  1. https://www.polodb.org
  2. https://docs.keydb.dev
  3. https://rethinkdb.com


wilson, to golang

This weekend, I hacked together a markdown documentation generator for Postgres in Go. It should be extensible to other databases, as well as including other properties from database.

It's called SQLDoc — please check it out!

#golang #postgres #postgresql #sql

https://husin.dev/sqldoc/

Zekovski, to PostgreSQL French
@Zekovski@pouet.chapril.org avatar

Est-ce qu'il y a des postgresexuels qui peuvent m'aider ? Apparemment j'ai un problème dans ma base de données mais je n'y connais rien.

https://forum.funkwhale.audio/d/556-front-page-displays-errors/8

#PostgreSql #SQL #Help

kubikpixel, to rust
@kubikpixel@chaos.social avatar

Have any of you Rust developers ever used Skytable and been satisfied so far? Is it also 100% open source or do I have to pay attention to something like SurrealDB and can GraphQL or something similar also be used on it?

🦀 https://skytable.io
⚙️ https://surrealdb.com
⚙️ https://graphql.org


#rust #rustlang #database #skytable #db #RustQuestions #surrealdb #webdev #opensource #sql #question #graphql

kubikpixel,
@kubikpixel@chaos.social avatar

🧵 …I ask this above to integrate a on a / project, this make sense:

📺 vs. Explained (in 4 Minutes)
https://www.youtube.com/watch?v=_Ss42Vb1SU4

aijobs, to ai
@aijobs@mstdn.social avatar
gjergjiramku, to PostgreSQL

What's your go to db for side projects?

From now on mine will be sqlite.

So many benefits compared to other database, where do I start from?

Posit, to random
@Posit@fosstodon.org avatar

We’re most pleased to announce the release of dbplyr 2.5.0!

dbplyr is a database backend for dplyr that allows you to use a remote database as if it were a collection of local data frames. dbplyr 2.5.0 introduces succinct new syntax for literal table identifiers.

Learn more on the tidyverse blog: https://www.tidyverse.org/blog/2024/04/dbplyr-2-5-0/

#RStats #Databases #SQL #tidyverse

Posit, to random
@Posit@fosstodon.org avatar

We’re thrilled to announce dplyr powered by DuckDB: duckplyr 🎉

A collaboration between the dplyr project team at Posit, cynkra, and DuckDB, duckplyr is a powerful new option that marries the user-friendly dplyr syntax with the execution capabilities of DuckDB.

Learn more: https://posit.co/blog/duckplyr-dplyr-powered-by-duckdb/

#tidyverse #RStats #duckdb #sql #dplyr

eugenialoli, to business
@eugenialoli@mastodon.social avatar

I'm looking to start a #business designing and installing #database s for very small businesses. Not full #sql servers, but something like MS Access (local files). Unfortunately, there are no good #foss alternatives for it. #LibreBase leaves a lot to be desired, and #Kexi hasn't updated for some time now. That leaves the online #NocoDB as the best option, but I rather not deal with online stuff because internet is not reliable in my area. Plus that tends to fall into #enshittification over time.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • osvaldo12
  • ethstaker
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • everett
  • ngwrru68w68
  • khanakhh
  • JUstTest
  • InstantRegret
  • GTA5RPClips
  • Durango
  • normalnudes
  • cubers
  • tacticalgear
  • cisconetworking
  • tester
  • modclub
  • provamag3
  • anitta
  • Leos
  • lostlight
  • All magazines