You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Queries/Accounts3_sqlite.sql

37 lines
1.2 KiB
MySQL

5 years ago
-- Home\Library\Accounts
5 years ago
Select
datetime('2001-01-01', zaccount.zdate || ' seconds') as 'AccDate',
5 years ago
datetime('2001-01-01', zaccount.ZLASTCREDENTIALRENEWALREJECTIONDATE || ' seconds') as 'RenewalRejection',
5 years ago
ZACCOUNTTYPE.ZACCOUNTTYPEDESCRIPTION as 'AccTypeDescription',
ZACCOUNTTYPE.ZIDENTIFIER as 'AccountIdentifier',
zaccount.ZUSERNAME as 'Username',
zaccount.ZACCOUNTDESCRIPTION as 'Description',
case zaccount.ZACTIVE
when 0 then 'No'
when 1 then 'Yes'
end as 'Active',
case zaccount.ZAUTHENTICATED
when 0 then 'No'
when 1 then 'Yes'
end as 'Authenticated',
case zaccount.ZSUPPORTSAUTHENTICATION
when 0 then 'No'
when 1 then 'Yes'
end as 'SupportsAuth',
zaccount.ZAUTHENTICATIONTYPE as 'AuthenticationType',
ZACCOUNTTYPE.ZCREDENTIALTYPE as 'CredentialType',
5 years ago
ZACCOUNTPROPERTY.ZKEY as 'key',
5 years ago
case zaccount.ZVISIBLE
when 0 then 'No'
when 1 then 'Yes'
5 years ago
end as 'AccVisible',
5 years ago
zaccount.ZIDENTIFIER as 'Identifier',
zaccount.ZOWNINGBUNDLEID as 'OwningBundleID'
from zaccount
join ZACCOUNTTYPE on ZACCOUNTTYPE.Z_PK = zaccount.'ZACCOUNTTYPE'
5 years ago
join ZACCOUNTPROPERTY on ZACCOUNTPROPERTY.Z_PK = zaccount.Z_OPT
5 years ago
order by AccDate desc