SQL HELP - Sajha Mobile
SAJHA MOBILE
SQL HELP
Posts 3 · Viewed 4644 · 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 9 · Viewed 875 · Likes 1
· Posts 1 · Viewed 39
· Posts 2 · Viewed 177
· Posts 1 · Viewed 47
· Posts 5 · Viewed 373
· Posts 1 · Viewed 51
· Posts 3 · Viewed 750 · Likes 2
· Posts 2 · Viewed 222
· Posts 1 · Viewed 138
· Posts 1 · Viewed 111



Your Banner Here
Travel Partners
Travel House Nepal