SQL HELP - Sajha Mobile
SAJHA MOBILE
SQL HELP
Posts 3 · Viewed 4622 · Go to Last Post
Deke
· Snapshot 0
Like · Likedby · 0
Anybody up for a sample SQL help.

ClaimHeader
PK-claimid
FK-enrollid
FK-providerid
StartDate
EndDate
PlaceOfService
TotalBilledAmount

ClaimDetail
PK-claimid
PK-claimline
ServiceCode
LineBilledAmount

Member
PK-memberid
FirstName
LastName
Gender

Enrollment
PK-enrollmentid
FK-memberid
Program
Network

Display the claim ID, member ID and sum of line billed amounts for members enrolled in the “Medi-Cal” program in the “HIL” network where the service code begins with “G”
Yekku
· Snapshot 61
Like · Liked by · 0
Select Distinct A.Claimid, C.memberid, Sum(b.LineBilledAmount)
from ClaimHeader A, ClaimDetail B, Member C, Enrollment D
where A.claimid = B.claimid
And A.enrollid= D.enrollmentid
And D.memberid C.memberid
And D.Program = 'Medi-Cal'
And D.Network = 'HIL'
And B.ServiceCode like ('G%');
Deke
· Snapshot 82
Like · Liked by · 0
Thanks Yekku. Do you mind if I ask you some follow-up questions privately. Thanks!
Please log in to reply to this post

You can also log in using your Facebook
View in Desktop
What people are reading
You might like these other discussions...
· Posts 3 · Viewed 377
· Posts 4 · Viewed 386 · Likes 1
· Posts 3 · Viewed 197 · Likes 1
· Posts 4 · Viewed 331
· Posts 1 · Viewed 71
· Posts 1 · Viewed 249
· Posts 24 · Viewed 7548 · Likes 2
· Posts 26 · Viewed 2744 · Likes 5
· Posts 1 · Viewed 119
· Posts 1 · Viewed 134



Your Banner Here
Travel Partners
Travel House Nepal