Definition
Information
Section titled “Information”The Prescribing Servicecostcentre model holds prescribing service cost-centre details, including a code, name and recorded identifier. It also stores address lines, postcode and telephone information, together with source organisation information describing the organisational context of the cost-centre record.
Soft-Deleted Records
Section titled “Soft-Deleted Records”_deleted indicates whether the record has been deleted in the source system.
Examples
Section titled “Examples”Distinct values of organisation
Section titled “Distinct values of organisation”SELECT DISTINCT "organisation"FROM prescribing.servicecostcentreORDER BY "organisation";Row count by addressline1
Section titled “Row count by addressline1”SELECT "addressline1", COUNT(*) AS row_countFROM prescribing.servicecostcentreGROUP BY "addressline1"ORDER BY row_count DESC;