Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Hi! Thanks for answering. But i'm not trying to create a table. I'm trying to insert random foreign keys on the event table. Commented Mar 31, 2020 at 2:06
  • I was hoping to see the SQL definition or \d the tables. It's not completely clear to me what you are trying to do. Do you want to select all the PKs from inventory, and then randomly put them in events? Commented Mar 31, 2020 at 3:20
  • Yes that's what i'm planning to do or just input them all in the event table Commented Mar 31, 2020 at 4:01