Click here to Skip to main content
15,911,890 members
Home / Discussions / Database
   

Database

 
GeneralRe: Concatenating all fields in a resultset Pin
Mycroft Holmes14-Apr-10 2:06
professionalMycroft Holmes14-Apr-10 2:06 
QuestionWhat is the Best Approach for this Request Pin
Vimalsoft(Pty) Ltd13-Apr-10 0:56
professionalVimalsoft(Pty) Ltd13-Apr-10 0:56 
AnswerRe: What is the Best Approach for this Request Pin
Mycroft Holmes13-Apr-10 2:37
professionalMycroft Holmes13-Apr-10 2:37 
GeneralRe: What is the Best Approach for this Request Pin
Vimalsoft(Pty) Ltd13-Apr-10 2:54
professionalVimalsoft(Pty) Ltd13-Apr-10 2:54 
GeneralRe: What is the Best Approach for this Request Pin
Mycroft Holmes13-Apr-10 4:15
professionalMycroft Holmes13-Apr-10 4:15 
GeneralRe: What is the Best Approach for this Request Pin
Vimalsoft(Pty) Ltd13-Apr-10 4:17
professionalVimalsoft(Pty) Ltd13-Apr-10 4:17 
QuestionFamily Tree Database Pin
vdtrip12-Apr-10 10:06
vdtrip12-Apr-10 10:06 
AnswerRe: Family Tree Database Pin
Jörgen Andersson12-Apr-10 11:51
professionalJörgen Andersson12-Apr-10 11:51 
My first thought was this:
create table family_relatives (
	relative_id	integer primary key,
	spouse		references family_relatives,
	mother		references family_relatives,
	father		references family_relatives,
	-- in case they don't know the exact birthdate
	birthyear	integer,
	birthday	date,
	-- sadly, not everyone is still with us
	deathyear	integer,
	first_names	varchar(100) not null,
	last_name	varchar(100) not null,
	sex		char(1) check (sex in ('m','f')),
	-- note the use of multi-column check constraints
	check ( birthyear is not null or birthday is not null)
);
but it lacks a bit. There's no control that your father is male and that your mother is female. And it doesn't keep track on ex-spouses. So one might want to drop the spouse column and add a partner table instead.
Keeping track on that your parents are born before you and not dead at your birth is another one. Or at least the mother, the father might actually be dead at your birth
"When did ignorance become a point of view" - Dilbert

AnswerRe: Family Tree Database Pin
Mycroft Holmes12-Apr-10 14:18
professionalMycroft Holmes12-Apr-10 14:18 
GeneralRe: Family Tree Database Pin
vdtrip13-Apr-10 1:43
vdtrip13-Apr-10 1:43 
GeneralRe: Family Tree Database Pin
J4amieC13-Apr-10 2:11
J4amieC13-Apr-10 2:11 
GeneralRe: Family Tree Database Pin
Mycroft Holmes13-Apr-10 2:30
professionalMycroft Holmes13-Apr-10 2:30 
QuestionSqlDateTime overflow. - Only on one computer out of 5 running the same code Pin
Marcus J. Smith12-Apr-10 9:06
professionalMarcus J. Smith12-Apr-10 9:06 
AnswerRe: SqlDateTime overflow. - Only on one computer out of 5 running the same code Pin
Mycroft Holmes12-Apr-10 14:15
professionalMycroft Holmes12-Apr-10 14:15 
Questiondetermine last patient temprature Pin
Jassim Rahma12-Apr-10 5:49
Jassim Rahma12-Apr-10 5:49 
AnswerRe: determine last patient temprature Pin
PIEBALDconsult12-Apr-10 6:13
mvePIEBALDconsult12-Apr-10 6:13 
GeneralRe: determine last patient temprature Pin
Jassim Rahma12-Apr-10 6:27
Jassim Rahma12-Apr-10 6:27 
GeneralRe: determine last patient temprature Pin
PIEBALDconsult12-Apr-10 9:47
mvePIEBALDconsult12-Apr-10 9:47 
GeneralRe: determine last patient temprature Pin
Mycroft Holmes12-Apr-10 14:10
professionalMycroft Holmes12-Apr-10 14:10 
AnswerRe: determine last patient temprature Pin
David Mujica12-Apr-10 7:54
David Mujica12-Apr-10 7:54 
QuestionSql server Identity issue Pin
Pranay Rana12-Apr-10 2:25
professionalPranay Rana12-Apr-10 2:25 
AnswerRe: Sql server Identity issue Pin
Stryder_112-Apr-10 3:05
Stryder_112-Apr-10 3:05 
GeneralRe: Sql server Identity issue Pin
Pranay Rana12-Apr-10 23:44
professionalPranay Rana12-Apr-10 23:44 
GeneralRe: Sql server Identity issue Pin
Stryder_113-Apr-10 3:15
Stryder_113-Apr-10 3:15 
QuestionmySQL dataset over VPN [modified] Pin
programmervb.netc++9-Apr-10 11:03
programmervb.netc++9-Apr-10 11:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.