Skip to content
Discussion options

You must be logged in to vote

Hi,

The following SQL and HTML should do what you need if you copy them into a new report.

$VAR from DATE Enter from date$
$VAR to DATE Enter to date$

SELECT animal.AnimalName, animal.ShelterCode, animal.ID as AID, owner.OwnerName, Owner.ID AS OID, owner.OwnerAddress, owner.OwnerPostcode,
owner.OwnerTown, owner.OwnerCounty,owner.OwnerPostcode, 
owner.EmailAddress,
animalmedicaltreatment.DateRequired, animalmedical.TreatmentName AS MedicalType
FROM animal
INNER JOIN adoption ON adoption.ID = animal.ActiveMovementID  
INNER JOIN owner ON adoption.OwnerID = owner.ID
INNER JOIN animalmedical ON animalmedical.AnimalID = animal.ID 
INNER JOIN animalmedicaltreatment ON animalmedicaltreatment.An…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Tetzor
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants