About raw sql query

2010-06-24 Thread Jakir71
I will need the largest id of table infantregistration.I used raw() method such as InfantRegistration.objects.raw('SELECT Max(id) FROM infantregistration'). It returns the error :'Manager' object has no attribute 'raw'. what can i do now??? -- You received this message because you are subscri

Join two table

2010-06-29 Thread Jakir71
I have two table say, infantregistration(infant_name, infant_mother_name, address) and vaccineschedule(infant_name, vaccinea_dose, vaccine_dose_id, due_date). There in no foreign key and infant_name is primary key. I will need the fields infant_name, infant_mother_name, address from infantregistrat