Relative Content

Tag Archive for sql

Cataloging events, projects and tasks: Is SQL appropriate?

I have this idea for a database: it would hold everything I “need to remember”, and allow future coding projects to access the information. These future projects include a day-planner and historical analysis of what I’ve been up to.

Having 2 Initialize Paragraphs in 1 COBOL program

I am designing a COBOL program that does 2 things.
1 reads specific rows from a table, and inserts a new row based on the original.
2 reads different rows from the same table, and updates those rows.

Why should I add CHECK CONSTRAINT?

Following is a table creating script created by Entity Framework using the model shown in https://codereview.stackexchange.com/questions/14077/is-it-proper-tpt-inheritance.

Registration: Email hash and verifying only one account per email

I’m using a registration function that hashes the email in PBKDF2 with a random and unique Salt each time. The hashes email and his salt are saved in the DB. No problem with that.
The problem is that now I want to make sure that users only create one single account per email. Obviously to verify that I need to check my DB and that’s where the problem starts. I either lose in security or in time.