67
u/Roy_from_IT May 30 '23
ALTER TABLE Employee ADD CONSTRAINT Ck_No_Jeffreys CHECK (FirstName <> 'Jeffrey');123
u/ExOsc2 May 30 '23
SELECT JEFF
FROM JEFF
WHERE JEFF = JEFF
GROUP BY JEFF
HAVING JEFF28
u/doshka May 30 '23
CREATE TABLE employee ( employee_id INT, first_name VARCHAR(6), last_name VARCHAR(6) );21
5
2
May 31 '23
Email from HR:
We kindly remind all employees that "having Jeff" on company premises is not permitted.
4
34
u/alinroc SQL Server DBA May 30 '23
On the one hand, this sounds completely made up.
OTOH, I once worked with a property management platform which defined the firstname field as char(10). Quick, count the number of letters in the exceedingly rare name Christopher.
15
u/Lord_of_hosts May 31 '23
Christophe? Perfectly reasonable name
4
4
u/alinroc SQL Server DBA May 31 '23
Sure, but if your birth certificate says
Christopheryou might not like it.8
9
u/smthamazing May 31 '23
About 10 years ago I encountered a unique constraint on the password field.
10
7
7
u/zbignew May 30 '23
Reminds me of my ex with the policy of never dating two guys with the same name.
11
u/tyrrminal May 30 '23
At the same time? Cause it seems like that would actually simplify some things
5
u/zbignew May 30 '23
Ever. She never wanted to specify to her friends, like, Tall Jeffrey vs Short Jeffrey.
2
1
1
u/newtonbase May 31 '23
I recall our whole Council Tax system falling over because an Eastern European customer had a protected term in their name.
1
-1
133
u/chrobbin May 30 '23
“We have a unique key on firstname throughout the system and already hired a Jeffrey, so… yeah.”