Salesforce Is A CRM

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

16Salesforce is a CRM, delivered as SaaS | subscription based and centrally ,backup and recovery | data administn func (data

unc (data policies, procedures n become primary key of this relation. If identifier is assigned then the identifier
hosted| accessed by thin client web browser| force.com is a creates employee standards; planning, data conflict resolutn, managing the info repository, is primary key and other keys are foreign keys| Mapping unary – 1-m
facing applications and tools delivered using Paas |Provides computing internal marketing of DA concepts)| traditional dba func (analyzing n recursive foreign key in the same relation. M-m one for an associative relation
platform and solution stack as service| consumer controls s/w dev, config designing db, selecting db n soft tools, installing/ upgrading dbms, data in which the primary key has two attributes, both taken from the primary key
settings| provider provides n/w, servers, storage| cloud computing means backup n recovery, data security, privacy n integrity, improving query of the entity| mapping ternary – one relation for each entity and one for
SaaS, utility computing, web services, Paas, MSP, service commerce processing perform, tuning db perform)| data warehouse admin (emphasis associative entity. Associative entity has foreign key to each entity in the
platform, internet integration| SaaS- UI upgrades, no req latest version, use of integratn n coordinatn of metadata; support decision support apps, manage relationship| Data Normalization – tool to validate and improve the logical
any whr, time| Paas-add,customize field names.Additional app for integration| dw growth, establish service level agreements), client/server app security ( design so that it satisfies certain constraints. The process of decomposing
Iaas- more space, secure| products Sales-salescloud ,data.com, Service – keep static html files in protected directories on server & std db access relations with anomalies to produce smaller relations| Insertion anomaly –
Service cloud,desk.com, Marketing-could,pardot, Community-cloud,chatter, controls, dynamic files- user authenticatn| Open Source db mgmt.: adding new rows forces user to create duplicate data, deletion anomaly –
analytics, platformApps- SalesForce1, Force.com, Heroku, AppExchange| alternative to oracle, ss, less expensive.|Threats to Data deleting rows may cause loss of data that was required, modification –
force.com-integration google app,micro office| google integration- send email Security(human,s/w,h/w failures), theft, loss of privacy and confidentiality, changing of data in row forces to change rows. A table should not pertain to
msg, service calls, share documents, calendar| Microsoft integration- outlook, loss of data integrity and availability. | Dynamic Page: session security, sssl more than one entity type| Functional dependency – The value of one attribute
excel, vlookup formulas pivot table charts| Data aggregation- for encryption, restrict no of users and open ports, remove unwanted pgm) | determines the value of another attribute. Candidate key – a minimal unique
campaigns,leads, accounts, cases , dashboards, reports, vertical respose- track W3C Platform for privacy protect|(views/ db soft security features identifier. No partial functional dependency – 2nf, no transitive dependency
the response back| Salesforce app dev UI, busi logic, data model| Declarative subschemas, integrity controls-domains( set allowable values), – 3NF| view integration – combining entities from multiple er diagram into
approach- Page layout, record types, formula fields, validation rules, assertions(enforce db connec), triggers(prevent inappropriate action , write common relations. Synonms – diff name same meaning, homo – same name
workflows&approvals, custom objects&fields, relationships| programmatic log files) , autho rules, user defined procdedures, encryptn, authenticatn diff meanings, transitive dependency – not be there after merging| Enterprise
approach- visualforce pages & components, Apex controllers & triggers, schemes, backup n checkpointin)|Authorization Matrix : Subjects, Objects, keys – primary keys that are unique to whole db, object ID’s.14Object
Meta bulk rest API| objects = tables | global unique id | text or auto number| Actions, Contsraints|User defined procedures : Customize authorization Persistence: objects capacity to maintain its state b/w application execution
create an object you get CRUD UI, mobile app, rest api, rich metadata, index proc| Passwords: 8 char, alphanumeric, no complete words or person info, sessions| Object Relational Mapping (ORM): structural relationships b/w
search|17Column- field, table-object|objects std&custom, design of data frequent change. | SOX (requires compny to audit the access to sensitive data, object oriented and relational represe of data , to permit use of Relational
model is key for success app| structure for storing data, interact with data- designed to ensure integrity-it change mgmt., logical access to dta, it operatns| DBfor persistence.| Object Relational Impedence Mismatch: diff in
force.com|text,picklist,dependent picklist, Date, Checkbox, IT Chg Mgmt- proc which authorizes changes to opertnal sys,db.|Logical approach of OO to application design and relational model for db design.(
currency,longtextfield| relation between two objects|Data access concepts– Access to Data: - personnel & physical access control.|DB recovery - Elements – nature & granularity od data types, structural relationships,
object-level,field-level,record-level—orgwide defaults,role heri, sharing Backup Faci( Periodic Backup, Cold backup – db shut down , hot backup Defining the identity of objects./instances, architectural styles)|Object
rules, manual sharing|Report Formats—tabular reports – simple – some part of db shutdown and backed up at a given time), Journalizing Identity : property of object diff from others based on existence.| Accesor
report,summary—grouped report eg sales,date, matrix—diff dimensions, Facil: Audit Trail of transc and db updates(Transc log, Db Change Log Method : A method providing objects access to state of another object.|
joined reports—multiple report types and views| Dashboard—20 – Images taken – before image, after image(before modify after modify), Object Persistence using relational DB Call Level API – SQL query
components,3 components on home tab, summarized views| Checkpoint facilities: no new transactions till sync b/w db and transc , allows handcoded passed as parameter to driver. (JDBC, ODBC) Adv( Low
tables,charts,gauges,metrics.18Programmatic approach—SOAP UI- processing from shrter period.| Recovery and restart Procedures: Disk overhead , highest level of control over details of DB connect), Disadv(
CRUD records,maintain password, perform searches, Rest API ease of mirroring ( move b/w identical copies), Restore/Rerun, (commit or abort all detailed code, reuse not possible , SQL code not automatically generated, no
integration and dev. Bulk-API based on rest principle, optimized for loading transaction changes), Bckwd(Rollback) & Fwd Recovery| ACID – transparent persistence)|SQL Query Mapping Frameworks – developers
and deleting large data sets| Programmatic approach Metadata API- Atomic(cannot be subdivide) , Consistent( constraint always c wrt to transc), operate at high level of abstraction My batis.,Adv( Direct access of DBMS
Retrieve,deploy, create,update or delete customizations. Migrate changes Isolated(Db changes nt revealed during trans), Durable( DB changes are capability through SQL, Code less than Call level API, Database access code
testing to prod. Metadata model not data itself| Apex—create web and email perm)| Concurrency Control(maintain data integrity for simultaneous user easier to manage.) , Disadv( More overhead than call level API , need
services. Validations in multiple objects. Create complex business processes access)| CC techniques: Serializability( one after other), Locking understanding of DBMS and DB schema, SQL code nt automatic generated,
not supported by workflow. Create custom transactional logic. Attach custom Mechanisms(Shared – Read but no update, Exclusive lock –No access no transparent persistence.)| ORM Frameworks: transparent persistence ,
logic to another operation| Objects – API data types are field types,in the UI, permitted, when preparing update(esp))|Two phase locking protocol: declarative mapping schema between OO and database relations/tables.
API fieldproperties: autonumber, create, delete, filter, group, idloopup, query, growing phase and shrinking phase)| Versioning- Alternate to locking, (JDO), Adv(highest transparent persistence, no need to detailed
search, sort, update|primitivedatatypes–base64, Boolean,byte,date, dateTime, system rejects update in case of conflict, use of rollback and commit| Data understanding of DBMS, enable true object oriented design), Disadv(most
double, int, string, time|difference between relationtype include data deletion, Dictionary – document data elem of db., System Catalog – sys created db overhead, complex cases , legacy db leads to difficulty. |Proprietary
record ownership, security and page layouts – master detail (1 to m), m to m, ,describes all db objects| Information Repository – metadata| Information Frameworks: integrates data access queries into prog languages (LINQ)|
lookup (1 to m)| master detail 1-m – parent child relationship, master deleted Repository Dictionary System(IRDS) : s/w manage access to Information ORM Responsibilties: Providing layer of abstraction between OO
child deleted. Detail record inherits sharing and security settings. Relationship repo. | repository system architecture (informant model, repository engine- apllications and database schema, Generating SQL Code for Db access,
field is required in page layout. Custom object is detail side| lookup – no effect objects, relatnships, extensible types, version n config mgmt., repository db) Centralizing code related to DB access, Query language, concurrency control.
on deletion and security, not automatically required. When you define a db | performance tuning (dbms installatn, memory n storage space usage, i/o | ORM DB Performance Management: Fetching Strategy – model
lookup relationship, data from one object can appear as custom related list on contentn, cpu usage, app tuning) |Ensure data availability (h/w failures, data specifying when and how an ORM framework retrives persistent objects to
page layouts for the other object| Custom objects – Custom flags is true. loss, human error, n/w probs, maintain downtime)2Good data name – related the run time memory during navigation. , N+1 select problem : performance
Create using UI, metadata WSDL, force.com IDE. Suffix _c. Appear on UI to business, meaningful, unique, readable, composed, repeatable, written problem due to too many select statements generated by ORM framework|
name field must be populated| Relationship - _r| salesforce obj query standard| Term – phrase, fact – association between two terms| guildlines – HQL: Different approaches in handling join , implicit associate join ,ordinary
language- powerful query strings in following environment – queryString concise desc,sysreq, acc of diagrams, achieved by concensus| Entities type – join in from clause , fetch join in from clause, theta style join in where clause
parameter in query() call, apex statements, visualforce controllers, eclipse| row in table, entity type – collection of entities| relationship instance – link 9DATA Warehousing: Data warehouse(subjected oriented, integrated, time
Salesforce object search language—search() same as before| Apex- salesforce between entities, relationship type – category of relationship| attributes – variant, non updatable, Data Mart : DW limited in scope. need (integrated
platform language, cloud based, =java, webservices,batch,triggers| IDE – properties|business rules–declarative, precise, atomic, consistent, expressible, company wide view of high qual data, separatn operational and info sys),
force.com, mavens mate, force CLI. Apex is tightly integrated with distinct,business-oriented| entity - a person or noun, entity type- collection of issues wid cmpny wide view (inconsistent data & key struct, missin data
db,persistence layer. Database objects are called sobjects. DML-manipulate, entities that share common properties, entity instance – single occurrence of elements, free vs structured form) | Data warehousing arch. Independent
SOQL – query, SOSL – search| sobject is generic abstract type.1Database--‐ a entity type| Strong entity – independently exist, weak entity – exist with data mart – separate etl for each dm complex due to multiple dms.
organized collection of logically related data|Data- stored rep of meaningful strong| Classification of attributes – req vs optional, simple vs composite, Dependent dm and operatnal data store – ODS Provide curr data , only
objects, Structured-numbers,unstructured-images| Information- increase single-valued vs multivalued, stored vs derived, identifier| Composite – An single etl , dependent DM loaded from EDW. Logical dm and real time data
knowledge | metadata – data about data| disadv of fileprocessing – data attribute that has meaningful components parts | Candidate keys – minimal warehousing- ODS and DW same, real time ETL data , dms logical view of
dependence, duplication of data, limited data sharing, lengthy development combinations of attributes satisfies the requirement for being an identifier| dw | Event = database action that results from a transaction.| Transient Oper
times, excessive program maintenance| Data redundancy issues Naming attributes – unique,singular| defining attri – included & not included, data – dataoverwritten |periodic warehouse data – data inserted| Derived
inconsistencies, data integrity| DBMS – s/w system that is used to create, why imp, aliasas, source of value, req vs optional, min & max, relation with Data - ease of use 4 decision support, fast response, customized data, data
maintain and provide controlled access to user db| adv db – data other attri | Relation type – modeled as line between entity types. Relationship mining, adhoc query support nd its characteristics (detailed, periodic,
independence, no data redundancy, consistency, sharing, productivity, instance – between specific entity instances. Associativity entity – aggregate, distributed)| Dimensional model (contains descriptn bout subjects
quality, accessibility, responsiveness, maintanence, decision, support| costs combination of relationship and entity| Degree of relationship – unary, binary, of business. Denormalized, Good 4 adhoc queries bad 4 transactions) | Fact
and risk—new personnel,complex,costs,backup,conflict| Data models- ternary| Cardinality Constraints – the number of instances of one entity that table (quantitative n factual data and creates n-ary relatn b/w dimentiona)|
enterprise data model—high level entities and relationship for the org, proj can or must be associated with each instance of other entity| Max Cardinality Dimension table shud hav surrogate keys (non-intelligent and non-
data model – matching data structure in db detailed view| Entities- noun form, – max instances of one entity that is asso with other entity| When should a business, keep track of non key attributes for a given prod key, simpler
relationship – between them. Relational db – tables and keys| components of relationship with attributes instead be an asso entity? All relationship should shorter, same length format for all key)| Granularity (transactional-finer,
db—CASE,repo,DBMS,db,app prog, UI,db admin,sys dev,users| Enterprise be many. Asso entity should have meaning independently. Asso has primary aggregated, finer grains _ better market analysis, finer grain more dimension
data model—first step in db dev process. Scope and content. High level key and other attributes. It should participate in other relationships. Ternary tables)| Size of fact table (multiply no of possible values 4 each dimension
view.ERD.desc entity types. Busi rules.relation between entities| Approaches relationship should be converted to associated entities| the date completed table)| Mutliple Fact table (performance, facts for diff combo for dimesions),
to DB SDLC system development life cycle,prototyping. SDLC – attribute pertains specifically to the emp completion of a course, it is an Factless Fact ( only foreignkey data from dimension)|Conformed
detailed,timeoriented, long dev cycle. Proto – RAD, conceptual data attribute of a relationship| Associative entity also considered to be an entity Dimesions( associated with multiple fact)| Normalizing dimension tables
modelling,initial proto,repeat implementation. SDLC – planning purpose – in its own right| Modeling time dependent data has become more important (multivalued dimensions-facts qualified by set f values 4 same business
understanding, deliverable – request for study, db activity – enterprise due to regulation such as HIPPA and Sarbanes-Oxley.4Data integrity – object, involves creatn f separate assosiative entity), dimension hierarchy
modelling and early concentual modelling. Analysis – req analysis,functional Mechanisms for implementing business rules that maintain integrity of (natural fixed depth hierarchy-provide levels f aggregatn 4 users wanting
specification, integrated data model. Logical design – info req elicitation & manipulated data| data manipulation – SQL operations for retrieving and summary info)|Slowly changing dimensions (replace old data, or new
structure, detailed design spec, logical db design. Physical design – dev tech, modifying data. A relation is named 2 dimension table of data | Tables to column-multivalued, or new row wid characteristics at time f change). | 10
tech purchase, physical db design. Implementation— qualify as relations – unique name, atomic, row unique, attri uniqe name, rules 4 dimensional model(use atomic tables, single process fact tables,
programming,documentation,db implementation. Maintenance – order irrelevant| All relations should be in first normal form| relation = entity consistent grain, disallow null keys, decode dimen table, use surrogate keys,
monitor,periodic audit,db maintenance| Db Schema – External : views, subset types, rows = entity instances, columns = attributes| foreign key – enable conform dimensions, balance req wid actual data)| Columnar databases :
of conceptual schema, conceptual – er models, internal: logical, physical dependent relation to refer to its parent relation| Domain constraints – Issue of big data , optimizestorage for sum data of few columns, data
structures| Project – a planned undertaking of related activities| evolution of allowable format size and value for an attribute, Entity constraint – valid data, compression eg. Sysbase , vertica.| NoSQL : not only sql, deals with unstru
db—reduced maintenance,desire to manage more complex data types, ease of not null, primary key, Referential Integrity – consistency, foreign key data . Apache Cassandra. Couch DB.| UI Metadata: identify – subj of dm, fact
data access, need for more powerful decision platforms. Flat included| restrict – donot allow to delete of “primary” side if related row exists and dimesions, then indicate how data derived from edw including derivation
files,hierarchical,network,relational,OO,objectrelational,datawarehousing| in foreign side, cascade – delete foreign side if primary side is rules, how data is derived from ods inclu derive rules, then identify avail
Range of db app – personal db, 2 tier n tier, ERP&DW| ERP – integrate all deleted.Transforming ER diagram – Composite attributes – use only simple reports, predefined queries, data analy techniques and responsible people.|
enterprise functions | DW – Integrated decision support system derived from components, multivalued attribute – new relation, weak entities - becomes a OLAP – graphical tools, mutlidimesional view of data and allows to analyze
various operational db.11Data nd DB administration: ineffective data separate relation with a foreign key from the superior entity. Primary key is data. Types Relational OLAP(ROLAP) – traditional relational representation
adminis (multiple data definitn, misssin data elements, inapropr data sources of weak + superior entity | Mapping binary relationships 1-1 – primary key of , Multidimesional OLAP – Cube structure| Data mining goals (explanatory-
n timing, poor respose time, damaged data, unauthorized access)| Data the mandatory side becomes a foreign key on the optional side. 1-m primary explain obs events, exploratory-explore 4 new relatn, cnfmatory- cnfm hypo)|
Administration : responsible for overall management of data resources , key on one side becomes foreign key on many side. M-m – create a new business performance mgmt. (allows manager to monitor key activities to
including maintaining coporate wide standards. Database Administration : relation with primary key of both relation as composite primary key.| mapping achieve organization goals)10Data quality and Integration: Data
resp for physical db design and tech issue like security , db performance associative entities – identifier not assigned – the primary key of both tables Governance – high level organizational groups and processes overseeing data
stewardship.| Data steward : responsible for ensuring org applictns properly around objects n classes, involves inheritance, Encapsulates data n behavior, XM transformational Lnaguage allows query on relational db and XML
support org data quality goals.|Requiment for Data Governance- senior benefits (tackle challen probs, improved comm bw user analy n developer, ^ data.Extensible Stylesheet Language Transformation (XSLT): transform
mgmt. and business units sponsorship , data steward mger to support train consistency in analysis n design, robustness, reusability f analy, design n prog complex XML Docs & create HTML pages from XML. Single XML doc can
coordinate data stewards, data stewards for diff busi units, subjects, results, explicitly represents commonality amng sys)| OO vs ER , Class(entity be translated to HTML and WAP/WML| Web services – XML standards,
governance committee for data mgmt. guidelines & standards| Sarbanes- type), Object( Entity Instance) ,Association( Relationship), behavior vs no define protocols for automatic communication between s/w prog over web.|
oxley (compliance by law sets data and meta data quality standards)| Purpose behavior)| Represented using UML & crows foot notation.| UML : graphical UDDI Universal Description , Discovery & Integration : standard for
of data quality (minimize it risk, timely business decisions, regulatory notations for busi model. Specifying., designin, implementing s/w sys create and distribute webpages. | Web services description
compliance, expand cust base)| Characteristics of data qual. (unique, artifacts.| Class Diagram : most relevant UML Diag for DB modeling| Class language(WSDL): XML based for desc Web Services and Speciying its
accurate, consistent, cmplt, timeliness, conformance, currency refrential :weldefined role in app domain wid state – attribute type & value, behavior public interface.| Simple Object Access Protocol ( SOAP): XML based
intgrity)| Causes of poor qual data (external data resources, redundant data – object act & react n identity- object has unique identity. .( Entity can be protocol for sending messages b/w applications over web. Loosely coupled,
storage, data entry, lack of organizational commitment)| Steps in Data qual Tangible, Concept or Event,Artifact of Design proc.| Object: Particular highly interoperable components. Flexibility and shorter development time.
improve - business buyin (executive sponsorship, build business case, return Instance of Class (has both behavior + attributes)| Operation: Function 6SQL: Structured Query Language |RDBMS- DBMS dat manages data as
on investment, avoidance of cost, avoid opportunity loss), data qual audit provided by all instance of class. Types ( Constructor – creates new instance colection of tables in wich al rlshnps r reprsntd by common values in reltd tables.
(statiscaly profile data files, document set of values for all fields, analyze data of class, Query – access state of object, Update –Alters the state of an object, |Purpose f SQL Std-Specify syntax/semantics 4 data definition n manipulation; defin
patterns, specialized data profiling tools, verify whether control n business Scope – class operation) Operations implement the object behaviour| data strctrs n basic operations;enable portablty f DB definition n appn modules;
rules r enforced), data stewardship pgm (oversight of same, manage data Encapsulation : Hiding internal implement details. | Associations: relation specify minimal(level1) n complete(level 2) stds; alow 4 later growth/enhancmnt 2
sub area, oversee (data definitn, product of data, use of data)), improve data among object classes. Association Role : role of object in assoc. Multiplicity std; |benefits-reduced trainin costs; productivity; appn portablty n longevity; reduced
dependence on single vendor; cross-system communication. Catalog-set f schemas
capture process(automate data entry, manual entry from preset options, : no of objects in an assoc. Represented as: 0..1,0..*,1..1,1..*. |Association
dat constitute description of DB. Schema-structure dat contains descr f objects
trained operators, goo ui design principles, immediate data validation for class has attributed f own, participates in relatnshps wid oder clas). Abstract
created by user(base tables,views, constrnts).Data Defition Language(DDL)-
entered data) apply modern data mgmt. principles nd tech(pattern Class : no direct instance possible, subclass may have, Concrete Class : comands dat define DB incldn creatin,alterin n dropin tables n establshn
matching, fuzzy, expert sys),sound data modeling & db design. total quality direct instance possible.| Class-scope attri (specifies value common to entire constraints.DML(manipulation)-comands 2 maintain n query DB.DCL(Control)-
mgmt principles (defect prevent, cont improvement, use of enterprise data class =is default value)| Abstract Operation :Defines form or protocol of oper comands 2 control DB, incldn administerin privileges n comitin data. |Steps Table
std, strong foundatn of measurement), balanced focus ( customer, product , but nt implementation| Method : Implementation of oper..| Polymorphism: Creation-identify data types; identify columns dat can n cant b null; identify columns
service), | Master data mgmt: disciplines, tech, methods to ensure meaning Same operation may apply diff class in diff ways.| Overriding : Replace dat must b unique; identify prim-foreign key mates; determine default values;
and quality of reference data within , across subject areas. Characteristics – method in superclass by more specific implementation in subclass.| Multiple identify constraints on columns; create table n associated indexes.Schema
Identity Registry ( master data in source system , registry provides appl with Classification : An object is an instance of more than one class.| Multiple Definition: ControlProcessing/Storage Efficiency – choices of index , file
locn), Integration Hub- (data changes broadcast to central service). Inheritance ; A class inherits features from one more than one superclass. organization for base tables and indexes , data clustering , statistics maintenance.
Persistent ( central golden record maintained , all apps have access, data Aggregation(a part-of relatnshp bw component obj n aggregate obj), Boolean – Not, then and then OR. VIEWS-Dynamic View-virtual table created upon
duplication , requires app to push data). | Data Integration – create unified composition(stonger frm f aggregatn- obj belongs 2 only 1 whole obj n exist request; no data actually stored. data 4m base table;Based on SQL SELECT
Statement.Materialized View-data actualy stord,copy or replication f data,must b
view of busi data. Requires CDC Change data Capture: which data have only as a part f one whole obj), Recursive aggre(composition where
refreshd periodicaly 2 match corspondin base tables. CHECK-prevents updates dat
changed since the previous data integration| Techniques for data integration component obj is instance f same cls as aggregate obj)5Physical db design
wud create rows nt included in view. Adv Views-Simplify query commands;assist
: Consolidation - ETL, Data Federation : - Enterprise Information purpose – translate the logical description of data into tech specs for storing wid data security; enhance programin productivity; contain most current base table
Integration EII ( virtual view of data w/o creating a centralized database, Data and retrieving data. Goal – provide performance and ensure database data;use lil storage space;provide customizd view 4 user; establish physical data
Propogation – Enterprise Application Integration (EAI) and Enterprise Data integrity, security and reliability. Decisions – attribute data types, phy record independence. Disadv-Use procesin time each view is referenced; may or may
Replication(EDR)- duplicate data with near real time data. | Reconciled Data descriptions, file org, indexes and db arch, query optimizations. Field – not b directly updateable.Create statements : CREATE TABLE AssignedTo
Layer: ( Typical operational Data – transient not normalized , restricted in smallest unit of application data recognized by system software. Field design (empNo VARCHAR (10) NOT NULL/DEFAULT ‘xyz’, projNo VARCHAR(10)
scope , sometimes poor quality, after ETL - detailed , historical, normalized, – choosing datatype, coding, compression, encryption, controlling data CHECK (ProjNo IN(1,3,4)),custID INTEGER GENERATED ALWAYS AS
comprehensive, timely, quality controlled)| data reconciliation (extract integrity. Varchar2, char, clob, number, date, blob. Field data integrity – IDENTITY(START WITH 1 INCREMENT BY 1 MIN VALUE 1 MAX VALUE
(select, join, normalize, integrate), scrub/cleanse, transform, load)| Static default value, range control, null value control, referential integrity. Missing 10 NO CYCLE),CONSTRAINT pk_AssignedTo_empNo
Extract – Capturing snapshot of the source data at a point in time, data – estimate of missing values, list, ignore missing values, triggers can be PRIMARYKEY(empNo,projNo),CONSTRAINT fk_AssignedTo_projNo
Incremental Extract : capturing changes that have occurred since last static used to perform this. Denormalization can increase the chances of errors FOREIGN KEY (projNo) REFERENCES Project (projNo) ON DELETE NO
extract| Steps in Data reconciliation : Capture/extract, Scrub/ Cleanse, inconsistences and anomalies, force re programming, proper query design and ACTION ON UPDATE NO ACTION); ALTER table table_name
Trasnform , Load). | Refresh Mode :bulk overwriting of target data at optimizations.| Partitioning – horizontal – rows are partitioned 3 types key alter_table_action Alter table actions:ADD [COLUMN] column_definition,
ALTER [COLUMN] column_name SET DEFAULT def_value, ALTER
intervals, Update Mode : only changes in source data written| Record Level range partitioning, hash partitioning, composite partitioning. Vertical –
[COLUMN] column_name DROP DEFAULT,DROP [COLUMN] column_name
Transformation Functions: Selection , Joining, Normalization , columns, primary key must be repeated. Advantages – efficiency, local
[RESTRICT][CASCADE], ADD table constraint MERGE INTO tablename
Aggregation.12DD: 1 logical db spread physically across all loctns. | optimization , security, recovery, uptime, load balancing. Inconsistent, USING table_reference ON (condition) WHEN MATCHED THEN UPDATE SET
Decentralized DB : Coll of Independent DB on unconnected comps.| complexity, space| rules of indexing – use larger tables, index primary keys, column1 = value1 [, column2 = value2 ...] WHEN NOT MATCHED THEN
Reasons of distributed db (business unit autonomy n distribution, data index search, order by and group by, value >100 <30.3Enhanced ER model INSERT (column1 [, column2 ...]) VALUES (value1 [, value2 ... CREATE INDEX
sharing, data communication reliability n costs, multiple app vendors, db – extended er model| subtype – a subgrouping of entities in an entity type Name_IDX ON Customer_T(CustomerName). 7Advanced SQL : `Join-
recovery, transactn n analytic processing), easy to manage, difficult to that has attribute distinct from others| generalization – the process of defining relational operation causes 2 or more tables wid common domain 2 b
enforce.| Homogenous DDB – same DBMS/node – Autonomous : indepen more general entity type from a set of more specialized entity. Bottom up. combined into a single table or view. EquiJoin-joinin condn based on equality
DBMS, Non autonomous – central DBMS| Heter DDB - diff DBMS/Node Specialization – top down| total specialization – two lines, disjointness – between values in comon columns.comon columns appear redundantly in
– systems, gateways, prfrd by indepen org|System- FULL DBMS whether it has to be of 2 types simultaneously| subtype discriminator – An result table. |NaturalJoin-equijoin in which 1 f d duplicate columns is
Functionality( all distributed DB functions), partial DBMS - attribute of the supertype whose values determine the target subtype. Disjoint eliminatd.InnerJoin-part of equijoin.rows must hv matchn values 2 apear in
federated(supports local db for unique requests) – loose(db has own schema) – A simple attribute with alternative values to indicate the possible subtypes. result table.Used instead of WHERE clause.OuterJoin-all rows
and tight integration ( local db use common schema). Unfederated( requires Overlapping – a composite attribute whose subparts pertain to different included.|UnionJoin-al columns 4m each table n instance 4 each row f each
central access. objectives (location transparency – user doesn’t know subtypes. Entity cluster- grouped in a single abstract entity type|.8Client – table. Equijoin/Inner Join-SELECT Customer.ID,OrderD.ID,
location of data, local autonomy – local site can operate , and have own workstation, server – computer, database server| Presentation logic – input, Customer.Name,OrderD.ID FROM Customer INNER JOIN ORDERD ON
security , logging), significant trade-offs (synchronous –all copies in output, UI, processing logic – business rules, data management – procedures, Customer.ID=Order.CustomerID ORDER BY ORDERID;.NaturalJoin-
database always in sync, good data integrity, high cost, slow response time, functions, programs, storage logic – data storage – dbms activiry| Application SELECT Customer.ID,Customer.Name,OrderD.ID FROM Customer
asynchronous – opp to synchro), |Advantages: (increase reliability/availi of partitioning – placing portions of the application code in the diff locations NATURAL JOIN ORDERD ON Customer.ID= Order.CustomerID ORDER
data, local control, modular growth, low commu cost, fast response 4 certain after its written. Adv – improved performance, interportability, balance BY ORDERID;.Instead of Natural Join write LEFT/RIGHT OUTER
query), |Disadv( s/w cost n complexity, processing overhead, data integrity workload. Fat client – client has processing and presentation logic, thin client JOIN.Customers wid no orders vl also b listed. |SelfJoin-used on tables wid
exposure, slower resp 4 cert que)| Options 4 distributing db (data replicatn, – client has only presentation logic, distributed – client and server has unary rlshnp. Subquery-placin inner query inside outer query.used in
horizontal, vertical partitioning, combinatn of above)| Data Replication processing logic shared| 3 tier n tier processing logic will be on application WHERE, within HAVING,as table f FROM .Noncorrelated-executed 1ce 4
Adv(Reliable, Fast respo, avoid complicated distributed trans integrity, server| 2 tier client workstation is responsible for presentation, data entire outer query.do not depend on data 4m outer query. Correlated-use data
reduce network traffic), Disadv(More storage, additional time for update, processing, business logic| server performs all data storage, access and 4m outer query.execute 1ce 4 each row returnd by outer query.use d EXISTS
omplexity)| Types of Data Replication – Push( updated site send change to processing. Typically called as db server| API routine an application uses to operator. SELECT * FROM OrderLine WHERE EXISTS (SELECT* FROM
others), Pull(receiving site control when updates will be done- Snapshot perform procedure on the computer OS– ODBC,JDBC, ADO.net| Product WHERE Product.productID =OrderLine.productID AND
replication , near real time replication)| issues of data repli (data timeliness, Steps(Database via Middleware)- identify and register db driver, open Product.productFinish='Oak');.Always refer to an attr in outer table.UNION-
dbms capabilities, performance implicatns, n/w heterogeneity, n/w commu connection to db, execute query, process results, repeat 3-4 times, close the combine output 4m multiple queries in 1 table.Qty n datatypes of attr in
capabi)| Horizon/ vertical partition (adv- data stored close to where it is db connection | Web application Components : DB Server(hosts DBMS eg. SELECT clause must b identical of each query.CASE EXPRESSION-To do
used, local access optimiz, only relevant data avail, union across parttions) SQL server ), WEB server( receives , responds to browser requests using http If-Then-Else expression.SELECT CASE WHEN ProductLineID = 1 THEN
(disadv- accessing data across partitn i.e. inconsistent spped, no data eg apache, information IS), Application Server(s/w buiding blocks for productDescription WHEN ProductLineID = 2 THEN productFinish WHEN
replicatn(backup vulnrability)). | distribution db strategies (centralized db creating dynamic websites eg asp.net, apache), web browser (client program ProductLineID=3 THEN '3ds' ELSE 'End' END AS Product,
distributed access, repliatn wid periodic snapshot update, replicatn wid near send/receives web pages eg IE)|HTML – markup language for webpages, ProductDescription,productID FROM Product;.Cant write numeric values.
real time sync of updates, partitioned 1 logical db, partitioned independent Standard Generalized Markup Language(SGML) – markup lang standard, Query Efficiency-Use SELECT clause not SELECT*;limit no f
nonintegrated). factors of distributed strategy (organizational forces, Extensible Markup L(XML) – allows customized tages, XHTML – XML subqueries;make view if data used many times. Transaction-discrete unit f
frequency n locality of refer, tech capabi, growth n expansion needs, cost of complaint HTML, Javascript and VBScript – enable interactivity in HTML, work dat must b completely processed or nt processd at all.SQL Commands-
mnging complex tech, need of reliability)Reliability increases, expandibility Cascading style sheets(CSS) – control appearance of web elem in HTML, BEGINTRANSACTION|ENDTRANSACTION(boundaries);COMMIT(per
increase, comm overhead increases, managibility & data consistency XST & XSLT – XMS style sheet and transformation to HTML|3Tier manent updates);ROLLBACK(cancel updates since last COMMIT).BEGIN
decreases| Func of d DBMS : Single logical db provide, replicate Data, Considerations : Stored Procedures : Code logic embedded in dbms, Transaction INSERT OrderID, Orderdate, CustomerID into OrderD; INSERT
Scalable, allow for different DBMS application codes at diff nodes, locate improve performance, but proprietary, Transactions : involve many db ID,Qty into OrderLine; END Transaction.Data Dictionary Facilities-system
data in distribu data dictionary , translate between nodes with diff local dbms, updates ,all succeed or none should occur, DB Connections : open connection tabled dat store metadata;users can view some tables bt nt update;Eg in Oracle
security concurrency, deadlock , data consistency.| Ddbms transparency obj is resource intensive,use of connection pooling|3 Tier Advantage: 11g-DBA_TABLES(table ),DBA_CONSTRAINTS (constraintsdescription),
(location, replicatn, failure- all or no transact process, transaction manager- Scalability,Tech flexibility, long term cost redu, better match to business sys, DBA_USERS(usersinfo); EginSQL-sys.columns(tablencolumn definitions),
logs data before and after image, concurrency control). |concurrency control improved customer service, competitive advantage, reduced risk| Cloud sys.indexes(table index info), sys. foreign_key_columns(columns in foreign
(concurrency transparency- appearance of serial transact although Computing Char: on demand, broad n/w access, resource pooling,rapid key constraints).Routines-prog modules dat execute on demand.Functions-
simultaneous, timestamping- globally unique to each transaction, alternate elasticity, measured service| XML – text based markup lang, use elements, routines dt return values n take input parameters.Procedures-routines dt nt
to locks)| Query optimi (for multi site join, must decide where 2 access data tags,attributes. Include Document type declarations , XML Schemas, return values n cn take input or output parameters.Triggers-routines dt execute
n how 2 proceed; 3 steps: query decompositn, data localizatn, global optimiz) comments , entity ref. Revolutionize internet data exchange. Document in response 2 DB event(insert, update,delete).Trigger Syntax-CREATE
unit of work (remote, distributed, distributed request), Semi Join : only joining Structure Declarations(DSD),XML Schema(XSD) replace DTD for TRIGGER trigger_name {BEFORE|AFTER|INSTEAD OF} {INSERT|
attribute of query sent from one site to another.| Evolution of Dist DBMS: validating XML Docs structure| XSD – lang for determining XML Databases| DELETE|UPDATE} ON table_name [FOR EACH {ROW|STATEMENT}]
Unit of work( all trans steps), Remote Unit of Work ( SQL statements origin Storing XML Data : relational database by shredding XMl Document, XML [WHEN (search condition)] <triggered SQL statement here>;.Embedded
in one loc , executed as single unit of work on 1 remote DBMS., Distributed Doc in large field(BLOB, CLOB), XML Docs in special XML Columns, in SQL-includin hard-coded SQL statements in prog written in another lang such
UOW( Different ststements different remote sites), Distributed Request( native XML Database(non relational)|Retrieving XML data: Xpath – set of as C or Java.Dynamic SQL-ability 4 app prog 2 generate SQL code on fly as
Single SQL – reference to tables in >1 remote sites)Object Oriented13 center XML tech supporting Xquery Dev & locating data in XML docs. XQuery – appisrunnin. Reasons2embed SQL in 3GL-cancreatemoreflexible, accessible

You might also like