You can use addActiveQuery() method to get all the active records and addInactiveQuery() to get the all inactive records.