database - SQL/Crystal Reports Specific Query result feeding additional query -
have 3 tables, 1 loans, 1 shares, , 1 member data. want find new loans specified current day (loans made today), , if have single loan (members can have more 1 loan designated suffix) , if have specific set of accounts designated 0 , or 1 share account. example below. obtain member information, name address phone. criteria want person has new loan of today, , has suffix 00 share account in example data below want account 9101 d phillips. if accomplish way fist find new loans, flag member account go , single share accounts dated same day , had flag. have make 2 passes @ it. sql rusty :-(
loan data account sfx date 1234 01 20170818 1234 02 20160701 5678 01 20170818 9101 01 20170818 share data account sfx date (insignificant) 1234 00 20150104 1234 05 20150104 5678 00 20170818 5678 05 20170818 9101 00 20170818 member data account name address 1234 j doe 123 anywhere 5678 m smith 456 here there 9101 d phillips 789 host pl
Comments
Post a Comment