Using GROUP BY in MySQL Join Table
SELECT q.* FROM (
SELECT patient . * , visit.uid AS visit_uid
FROM patient
LEFT JOIN visit ON patient.uid = visit.patient_id
ORDER BY visit_uid DESC
) q GROUP BY q.uid ORDER BY q.visit_uid DESC
LIMIT 0 , 10
Using GROUP BY in MySQL Join Table
SELECT q.* FROM (
SELECT patient . * , visit.uid AS visit_uid
FROM patient
LEFT JOIN visit ON patient.uid = visit.patient_id
ORDER BY visit_uid DESC
) q GROUP BY q.uid ORDER BY q.visit_uid DESC
LIMIT 0 , 10
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us