I assume they just ask, outside of the H1B database, I have not seen a 100% credible representation of salary data for tech workers. Even then, the H1B database is anonymous and you'd have to do a lot of work to try to pin someone to a salary range.
For the common man, negotiating really isnt a skill that has been developed. My girlfriend is interviewing with tech companies right now and I'm consistently reminding her to state a higher number not only if they ask for current salary (and to first off be diligent in not providing a number), but for the eventual negotiation upon job offer.
Also, most people really aren't in a position to negotiate, especially if they are in a discriminated class.
How does being in a discriminated class remove any of your "position" to negotiate? If the person interviewing you is objectively racist or sexist you're just not getting the job. But if you're talking about subconscious, systemic issues that's going to come up in initial offers but how is going to affect one's ability to negotiate?
And for what it's worth, while I am 100% on board with never discussing prior salary, I would advise against outright lying about it. On the chance that you're called out on it lying will most likely disqualify you immediately (and forever).
> How does being in a discriminated class remove any of your "position" to negotiate?
In my experience, I've done my best negotiating when I'm almost disinterested, which is usually when I have lots of other options. Someone in a discriminated class may not get that many offers, so they may not be able to play them against each other, or be comfortable pushing as far as they could given there's some risk of an offer being rescinded.
Just wondering how Oracle was determining past pay, just asking? Using some site?