i want to query for consumer, phone and address, SSN informationconsumer table is ConsumerPhone are in table ConsumerPhone with FK to PhoneType and consumer tableAddress are in table ConsumerAddress with FK to AddressType and Consumer tablesIdentifier are in table ConsumerIdentifier with FK to IndentifierType and Consumer tableI want consumer firstname, lastname from consumerprimary phone from phone where PhoneType.phonetypeid=1primary address from address where AddressType.addresstypeid=1SSN from consumeridentifier where IndentifierType.identifiertypeid=2Medicaid from consumeridentifier where IndentifierType.identifiertypeid=1query should always return consumer firstname and last even when address, phone are NUL
↧