Answer the question
In order to leave comments, you need to log in
How to convert sql query to yii2 (ActiveRecord)?
There is a request
SELECT `tblRegistrars`.`iIndex` as `iRegistrarID`,
`tblDomains`.`iIndex` as `iIndex`,
`tblDomains`.`sName` as `sName`,
`tblRegistrars`.`sOrgR` as `sRegistrar`,
`tblCustomers`.`sOrgRU` as `sOrg`,
`tblCustomers`.`sNameRU` as `sNameRU`,
`tblCustomers`.`eType` as `eType`,
`tblDomains`.`dtRegistered` as `sRegistered`,
`tblDomains`.`dtPassed` as `sPassed`,
`tblRegistrars`.`rDeposit` as `rDeposit`,
`tblRegistrars`.`rPrice` as `rPrice`,
`tblRegistrars`.`eDepositCurrency`,
`tblDomains`.`dtExpired` as `sExpired`
FROM `tblDomains`, `tblCustomers`, `tblRegistrars`
WHERE `tblDomains`.`iRegistrarID` = `tblRegistrars`.`iIndex`
AND `tblDomains`.`iCustomerID` = `tblCustomers`.`iIndex`
AND `tblDomains`.`dStatus` IN ("A_REG", "P_REG")
ORDER BY `tblRegistrars`.`iIndex`
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question