DOGE employees don't understand the basics of SQL
linkedin.com
linkedin.com
Is DOGE a genuine effort at desperately needed reforms to save America from bankruptcy? Is it a secret plot to take full control of the federal government like a dictator's coup? Is it a mix of both at the same time (ie; recent Saudi and Chinese 'anti-corruption' campaigns)?
What should I believe?
All of this is going to require critical thinking skills and unfortunately you can't gain that by reading tips. Assuming you do gave critical thinking skills, it's pretty clear what's taking place and that soft truths are often used to hide deep lies.
As an ethnically Syrian person, Elon Musk has posted enraging racist epithets about me every single day on his Twitter. I strongly dislike him as a person for his firehose of slander against helpless refugees who aren't so privileged/fortunate as me. Look at how he is speaking towards poor Ukraine!
Despite this, his companies have without a doubt changed the world. His investments into e-banking, reusable rockets, mass market EVs, ChatGPT, Starlink, green energy, etc. sound like something from a comic book into how outsized an impact they make.
He wasn’t actually involved in any of the engineering ir decision making or putting the team together.
And people are invested in their lives and welfare even if all we are is dust floating blindly through the void of an uncaring universe, or whatever.
I can believe the sky is pink until I'm blue in the face. The sky won't change colors because of it.
DOGE is yet another distraction to keep the left and the right bickering while the billionaires continue to grow the wealth gap. The dollar is the global currency and its monetary policy is set by private entities that don’t care much about the other 99.99% of us - just enough to keep a revolt from happening.
By cutting spending on foreign countries the US is forcing these countries to turn elsewhere for aid which will come in the currency of the new provider and with strings attached. This can cause a domino effect which will significantly weaken the USDs standing and force the US to take up "real" debt.
DOGE could very well bankrupt the USA if they aren't careful. They don't seem careful or self-aware.
For those who missed it, DOGE claimed there were tons people who were about 150 years in the system. In actuality, the the default date in COBOL is May 20, 1875 (the date of the Metre Convention) which works out to about 150 years old.
Elon Musk publicly stated: "cursory examination of Social Security, and we got people in there that are 150 years old. Now, do you know anyone that's 150? I don't know. They should be in the Guinness Book of World Records... So that's a case where I think they're probably dead."
That's how little Musk understands about computer systems he's supposedly responsible for analyzing. And Elon has publicly stated he'll often be wrong wrt DOGE.
EDIT: Elon also posted a Tweet showing age buckets, but according to other Social Security Association folks, they didn't filter out dead people or non-recipients. When you do, only 89,106 are aged 99+. Less than the number of living centenarians in the US: https://x.com/justinwolfers/status/1891678450487841007
I agree with original comment. I just don't know who to trust to do a deep enough dive to give me good information.
https://x.com/justinwolfers/status/1891678450487841007
Also Elon's other Tweet is: "Yes, there are FAR more “eligible” social security numbers than there are citizens in the USA. This might be the biggest fraud in history."
Lawful permanent residents (LPRs), asylees (noncitizen who has been granted asylum in the United States), refugees, some temporary non-immigrants, etc all get social security numbers. Elon doesn't appear to research much before posting and has publicly stated that he'll often be wrong with respect to everything DOGE.
His engineers/employees... not him.
Besides, I'd be wary of calling electric cars "seemingly impossible/fantastic".
What would those be?
For years he coasted on the reputation of being a dorky, space/environment obsessed autist, but in the last few years it's become obvious that most of his admirable traits were just him masking. Now that he doesn't feel that's necessary we're seeing what happens when the richest man in the world swallows the red pill and it ain't pretty.
For one thing, do not blindly believe what you read here on Hacker News, where there is a clear anti-Musk slant. I'd recommend more rational places like https://www.themotte.org/ where these topics can be discussed in a relatively calm manner. You are likely to come up with more informed opinions than otherwise.
It's not anti-Musk to believe what he says about himself. You should re-examine why you feel the need to push your own slant.
It's not the default...
That is likely to also be true for taking over the entire Federal government.
going to re-learn all the mistakes
One would hope so.. they've already begun blaming things like "DEI" so I find it unlikely. It will probably be decades (if ever) before the lessons are relearned and implemented.I mean, happy to hear counter-arguments that this style is actually the most effective. Maybe I'm crazy in thinking I wouldn't hire this guy into my team after seeing this interaction.
What his team has seemingly uncovered is not waste. It's a little thing I like to call, "Extremely routine database architecture."
This maintains referential integrity between the two tables. It works exactly the same way with TAS in the IRS database. I checked for myself. It's not optional.
The last sentence, "It's not optional," is the crux of the argument. When he says it's not optional, I assume he means the payment.vendor_id FK is defined as NOT NULL. When doing exports like he is referencing, if it's an (inner) join, it wouldn't export the nulls. Here is an example of an inner join that if used doing an export wouldn't export the NULL vendor_id payment rows:
select * -- for brevity
from payment p
join vendor v on p.vendor_id = v.vendor_id
To get the payment rows with null vendor_id, the export would have to be done using an outer (left) join like so: select * -- for brevity
from payment p
LEFT join vendor v on p.vendor_id = v.vendor_id
We don't know how it's exported, so if the author only has access to the exports and not the actual schema, he wouldn't know either.In his example he even has it as nullable:
CREATE TABLE payment (
payment_id SERIAL PRIMARY KEY,
vendor_id INT REFERENCES vendor(vendor_id),
payment_date DATE NOT NULL
);
Notice the payment_date is defined as explicitly NOT NULL while the vendor_id (the FK he is talking about) is not defined as NOT NULL (implicitly NULL). If the vendor_id is NULL, that would represent a payment with no vendor.Now regarding Musk's tweet:
In the Federal Government, the TAS field was optional for ~$4.7 Trillion in payments and was often left blank, making traceability almost impossible. As of Saturday, this is now a required field, increasing insight into where money is actually going.
To make an existing NULL field required (NOT NULL) in a RDBMS database, you have to first populate it with something. When it's a FK like vendor_id, you have to populate it with a vendor_id that exists the vendor table. With the amount of rows I would imagine is in that database, this is no easy feat. To make it required, the would have to:
1. Update each NULL row to the actual vendor it was supposed to be (probably impossible to figure this out)
2. Update each NULL row to a new vendor_id named "Unknown" or something to that effect.
3. Update the application(s) that write to the database to make it required, leaving it NULL in the database.
4. Maybe something else
One more thing, all this assumes the system is using an RDBMS. If it's a mainframe or something (which it very well might be), all bets are off.A: Demonstrated my "crack" team is incompetent and lacks basic skills. Also broke a lot of stuff.
https://docs.oracle.com/en/cloud/saas/financials/25a/fausf/m...
https://www.usaspending.gov/federal-spending-guide
> The USAspending SQL Database Downloads page includes instructions and links to help download snapshots of the USAspending database as a PostgreSQL archive. This resource is intended for advanced users. The full database is over 1.5 terabytes and will continue to increase in size. The process to complete a full database restore can take many hours to complete.
As Morgan Freeman put it in The Dark Knight:
Lucius Fox: [to Reese] Let me get this straight, you think that your client, one of the wealthiest and most powerful men in the world, is secretly a vigilante, who spends his nights beating criminals to a pulp with his bare hands, and your plan is to blackmail this person?
[Reese's face falls and Fox smiles]
Lucius Fox: Good luck.
They are. There are endless tweets about this bashing him. Pics of park rangers, wildland firefighter losing their jobs and blaming trump publicly. People resigning because of it. Like I said:
> They all hate Musk and haven't been shy about bashing him for other reasons; why aren't they jumping on this?
And then you quote a comic book movie? What's next, quote the Matrix or something?