Hello I have a simple question. Lets say I have a user table with columns like userId and username and then I have a table "notifications" and there I have as well columns like userId and username and other.
So my question is - am I able to somehow just INSERT userId value into notifications and the username value will be inserted automatically based on the userId in the users table. Its because I dont wanna somehow access the users table before inserting the notification I think its useless waste. Is something like that possible with MySQL?
usernamecolumn from thenotificationstable.