This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Select all company owner users from legacy database | |
# | |
select | |
Member.Username as username,Member.Password as password, | |
Person.Salutation as salutation, Person.Firstname as first_name,Person.Surname as last_name,Person.email,Person.Mobile as mobile_number, | |
Company.CompanyID as legacy_company_id, Company.CompanyName as name, | |
Address.vcStreetNo as street_no, Address.vcStreetName as street_name, Address.vcStreettype as street_type, Address.vcSuburb as suburb, Address.intPostCode as postcode, Address.vcAddress1 as address1 | |
from person | |
join Member on Person.MemberID=Member.MemberID |