This document discusses various SQL concepts including views, constraints, assertions, triggers, embedded SQL, and stored procedures. Views allow users to query virtual tables derived from other tables. Constraints and assertions allow specification of integrity rules. Triggers define actions to take when data changes violate conditions. Embedded SQL and stored procedures allow programming database access and logic directly in the database.
This document summarizes the key topics covered in Chapter 9 of a SQL textbook, including assertions to specify general constraints, views which allow querying of virtual tables, various techniques for database programming using embedded SQL, Java Database Connectivity (JDBC), and stored procedures.
This document discusses SQL views, including:
- Views are virtual tables derived from other tables that do not store data themselves. Views allow presenting data from multiple tables as a single table.
- Advantages of views include security, convenience, simplicity, and integrity. Disadvantages can include performance issues and restrictions on updating views.
- The CREATE VIEW statement is used to define views. Various types of views - horizontal, vertical, subset, and grouped - are described.
- Conditions for updating views are outlined. The CHECK OPTION can be used to restrict updates and inserts to views to only rows that satisfy the view definition.
- CASCADED and LOCAL options determine how CHECK OPTION conditions are applied
This document provides an introduction to SQL (Structured Query Language) for manipulating and working with data. It covers SQL fundamentals including defining a database using DDL, working with views, writing queries, and establishing referential integrity. It also discusses SQL data types, database definition, creating tables and views, and key SQL statements for data manipulation including SELECT, INSERT, UPDATE, and DELETE. Examples are provided for creating tables and views, inserting, updating, and deleting data, and writing queries using functions, operators, sorting, grouping, and filtering.
View, Store Procedure & Function and Trigger in MySQL - ThaiptFramgia Vietnam
MySQL allows users to create views, stored procedures, functions, and triggers. Views are saved SELECT queries that can be executed to query tables or other views. Stored procedures and functions allow application logic to be stored in a database. Triggers automatically run SQL statements in response to changes made to data in a table, such as after insert, update or delete operations. These features help with security, maintenance, and reducing application code. However, they can also increase server overhead.
Database objects such as tables, views, sequences, indexes, and synonyms allow users to access and manage data. Tables are the basic unit of storage composed of rows, while views represent subsets of data from tables. Sequences generate numeric values and indexes improve query performance. Synonyms provide alternative names for objects to simplify access. Users can create, modify, and remove these objects according to defined syntax and guidelines.
This document provides an overview of Module 5: Optimize query performance in Azure SQL. The module contains 3 lessons that cover analyzing query plans, evaluating potential improvements, and reviewing table and index design. Lesson 1 explores generating and comparing execution plans, understanding how plans are generated, and the benefits of the Query Store. Lesson 2 examines database normalization, data types, index types, and denormalization. Lesson 3 describes wait statistics, tuning indexes, and using query hints. The lessons aim to help administrators optimize query performance in Azure SQL.
This document summarizes the key topics covered in Chapter 9 of a SQL textbook, including assertions to specify general constraints, views which allow querying of virtual tables, various techniques for database programming using embedded SQL, Java Database Connectivity (JDBC), and stored procedures.
This document discusses SQL views, including:
- Views are virtual tables derived from other tables that do not store data themselves. Views allow presenting data from multiple tables as a single table.
- Advantages of views include security, convenience, simplicity, and integrity. Disadvantages can include performance issues and restrictions on updating views.
- The CREATE VIEW statement is used to define views. Various types of views - horizontal, vertical, subset, and grouped - are described.
- Conditions for updating views are outlined. The CHECK OPTION can be used to restrict updates and inserts to views to only rows that satisfy the view definition.
- CASCADED and LOCAL options determine how CHECK OPTION conditions are applied
This document provides an introduction to SQL (Structured Query Language) for manipulating and working with data. It covers SQL fundamentals including defining a database using DDL, working with views, writing queries, and establishing referential integrity. It also discusses SQL data types, database definition, creating tables and views, and key SQL statements for data manipulation including SELECT, INSERT, UPDATE, and DELETE. Examples are provided for creating tables and views, inserting, updating, and deleting data, and writing queries using functions, operators, sorting, grouping, and filtering.
View, Store Procedure & Function and Trigger in MySQL - ThaiptFramgia Vietnam
MySQL allows users to create views, stored procedures, functions, and triggers. Views are saved SELECT queries that can be executed to query tables or other views. Stored procedures and functions allow application logic to be stored in a database. Triggers automatically run SQL statements in response to changes made to data in a table, such as after insert, update or delete operations. These features help with security, maintenance, and reducing application code. However, they can also increase server overhead.
Database objects such as tables, views, sequences, indexes, and synonyms allow users to access and manage data. Tables are the basic unit of storage composed of rows, while views represent subsets of data from tables. Sequences generate numeric values and indexes improve query performance. Synonyms provide alternative names for objects to simplify access. Users can create, modify, and remove these objects according to defined syntax and guidelines.
This document provides an overview of Module 5: Optimize query performance in Azure SQL. The module contains 3 lessons that cover analyzing query plans, evaluating potential improvements, and reviewing table and index design. Lesson 1 explores generating and comparing execution plans, understanding how plans are generated, and the benefits of the Query Store. Lesson 2 examines database normalization, data types, index types, and denormalization. Lesson 3 describes wait statistics, tuning indexes, and using query hints. The lessons aim to help administrators optimize query performance in Azure SQL.
This document provides an introduction and overview of PostgreSQL, including its history, features, installation, usage and SQL capabilities. It describes how to create and manipulate databases, tables, views, and how to insert, query, update and delete data. It also covers transaction management, functions, constraints and other advanced topics.
This document discusses SQLcl, a command line interface similar to SQL*Plus but built in Java. It summarizes key features of SQLcl including how to install it, command line editing capabilities, formatting query output, defining aliases for SQL and PL/SQL, and calling PL/SQL functions from SQL queries more efficiently in Oracle 12c and beyond by defining functions using subquery factoring or the PRAGMA UDF.
This document discusses user-defined functions (UDFs) and views in SQL. There are three types of UDFs - scalar, inline table-valued, and multi-statement table-valued. Views allow users to create a customized representation of data from one or more tables without taking up additional storage space. Views provide benefits like data security, simplicity, and removing dependency on underlying tables.
This document discusses user defined functions (UDF) and views in MySQL. It provides the syntax for creating UDFs and views. UDFs allow users to define reusable functions that can be called from queries. Views act as virtual tables that are based on the result set of a SELECT statement. The document provides an example of creating a UDF to return the number of jobs applied by a user and an example of creating a view from an employee table to select employee IDs and names. It describes some key properties and limitations of UDFs and how views can be used to rename attributes and insert/delete data.
This document provides instructions for building and running an Oracle SOA Suite sample that uses the Database Adapter to perform a SELECT query. It describes creating a SOA project, a BPEL process, and three different types of Database Adapter references - QueryByExample, SELECT, and pure SQL. The BPEL process uses assigns to pass input and output between the invoke activity and Database Adapter. Running the sample demonstrates how to retrieve data from the database and return it in the response.
Modernizing Your Database with SQL Server 2019 discusses SQL Server 2019 features that can help modernize a database, including:
- The Hybrid Buffer Pool which supports persistent memory to improve performance on read-heavy workloads.
- Memory-Optimized TempDB Metadata which stores TempDB metadata in memory-optimized tables to avoid certain blocking issues.
- Intelligent Query Processing features like Adaptive Query Processing, Batch Mode processing on rowstores, and Scalar UDF Inlining which improve query performance.
- Approximate Count Distinct, a new function that provides an estimated count of distinct values in a column faster than a precise count.
- Lightweight profiling, enabled by default, which provides query plan
Designing and Creating Views, Inline Functions, and SynonymsTayba Farooqui
Views allow users to query data from multiple tables while hiding complexity. Views are defined with a SELECT statement and do not store data. Inline functions can be used like parameterized views by accepting parameters. Synonyms provide an abstraction layer and can be used to reference objects in other databases or schemas.
The document discusses several SQL concepts:
[1] Subqueries, which can be noncorrelated (independent of the outer query) or correlated (contains references to the outer query). Correlated subqueries cannot be run independently.
[2] Views, which provide security, simplify queries, and insulate from changes, but can reduce performance and manageability. Views restrict access and update capabilities.
[3] Stored procedures, which increase performance but require specialized skills. Stored procedures accept parameters, contain multiple statements, and perform modifications, while views are limited to single SELECTs.
The document discusses various PL/SQL programming concepts including PL/SQL block structure, procedures, functions, packages, cursors, exceptions, and dependencies. It provides guidelines for proper naming conventions, restrictions on calling functions from SQL expressions, and best practices for cursor and package design. The document also covers object types, subtypes, and working with collections in PL/SQL.
Rolta’s application testing services for handling ever changing environment. Rolta
There are many changes take place every day every minute. The changes in form of updates, upgrades, patches and many more, to handle these everyday changes and alleviate testing pressure, Rolta introduces Real Application Testing (RAT). RAT comes in real handy when Oracle’s applications like SQL performance analyzer and Database Replay are in use. Presentation also gives examples of couple of test cases.
2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...Jürgen Ambrosi
L’obiettivo è quello di fare una panoramica dello stato dell’arte sulle tecnologie a supporto dei database. Alcuni esempi sono la tecnologia in-memory integrata con le funzionalità di analisi operative in tempo reale e della tecnologia Always Encrypted per la protezione dei dati utilizzati in locale o durante gli spostamenti. La tecnologia in-memory consente di migliorare di 30 volte le performance delle transazioni utilizzando hardware standard di settore. Inoltre i Big Data e l'analisi sono diventati un importante fattore di differenziazione competitivo, ma la gestione delle enormi quantità di dati correlate a un tempo di attività 24 ore su 24 continua a essere una sfida per l'IT. Oggi è più importante che mai soddisfare a livello aziendale l'esigenza di prestazioni, disponibilità e sicurezza efficace per gestire carichi di lavoro mission-critical a un costo contenuto. Le soluzioni Microsoft fissano un nuovo standard nelle performance mission-critical.
This document provides an overview of Module 4 on designing and implementing views in SQL Server. It covers the key topics of:
- Creating and managing views, including the CREATE VIEW, ALTER VIEW, and DROP VIEW statements.
- System views and dynamic management views that provide metadata and state information.
- Performance considerations for views, such as dynamic resolution and nested views.
- Demonstrations of working with different types of views and analyzing view performance.
This document discusses how to create and manage various schema objects in an Oracle database including views, sequences, indexes, and synonyms. Views allow querying of data from underlying tables, sequences generate unique numbers, indexes improve query performance, and synonyms provide alternative names for objects. The document provides examples of creating each of these object types and modifying or removing them.
This lesson display some of topics like: 1- Create simple and complex views. 2- Retrieve data from views. 3- Create, maintain, and use sequences. 4- Create and maintain indexes. 5- Create private and public synonyms
This document provides an introduction to user defined functions (UDF), views, and indexing in MySQL. It defines UDFs as functions that can be used in SQL queries like built-in functions to perform computations. Views are described as representations of data from tables that don't take up storage space. Indexing improves query speed by organizing data to allow faster searches, though it slows down inserts and updates. The key differences between stored procedures and UDFs are also outlined.
The document discusses database views in MySQL. It provides information on creating views using the CREATE VIEW and CREATE OR REPLACE VIEW statements. Views allow simplifying complex queries, limiting data access, and providing extra security. Performance can be impacted when querying views defined on other views. Views also introduce dependency on the underlying tables. Stored procedures in MySQL are also discussed, including their advantages like increased performance and security, and disadvantages like increased memory usage. Triggers are described as stored programs that execute automatically in response to data changes and can be used for auditing and validation. Examples are provided on creating a trigger for auditing table updates and accessing MySQL from Excel.
This document provides an overview of PL/SQL and embedded SQL. It outlines the key components of PL/SQL including blocks, procedures, cursors, functions, and triggers. It also provides examples of how to write PL/SQL code for these different components. Additionally, it demonstrates how to embed SQL statements in a Java program using JDBC. The document concludes by reminding students to use the course website and provides details on the first assignment.
This document provides an overview of how to create and manage various schema objects in Oracle, including views, sequences, indexes, and synonyms. It discusses how to create simple and complex views, retrieve data from views, and perform DML operations on views. It also covers how to create, use, modify and cache sequences, and how to create nonunique indexes to improve query performance. Finally, it discusses how to create synonyms to provide alternative names for objects.
This document provides an overview of SQL data definition and integrity constraints. It discusses:
1) SQL data types and integrity constraints such as required fields, domain constraints, entity integrity, referential integrity, and general constraints. It provides examples of defining these constraints using SQL.
2) SQL DDL statements for creating, altering and dropping schemas, domains, tables, views and other database objects. Examples are provided for creating tables with constraints and altering tables.
3) Views - how they provide a dynamic result set defined by a query. The document describes creating, dropping and resolving views in SQL. Examples include horizontal, vertical and grouped/joined views.
Amit Bansal is a CTO who has conducted over 200 workshops on SQL Server and BI technologies. The presentation discusses SQL Server query optimizer characteristics and how plan guides can be used to manage query plans. Plan guides allow forcing or locking down a query plan to provide performance stability. Different types of plan guides include object, SQL, and template plan guides. The presentation covers creating, implementing, and managing plan guides.
OOP stands for Object-Oriented Programming. It involves creating objects that contain both data and methods. Classes act as templates for objects and define their attributes and behaviors. Some advantages of OOP include reusability, organization, and reduced repetition of code. Classes contain fields to store data and methods to perform actions on that data. Objects are instances of classes that inherit all fields and methods. Constructors initialize objects and can set initial field values. Arrays can store multiple objects. Dynamic arrays allow adding elements at runtime. Partial classes allow splitting a class definition across multiple files.
This document provides an introduction to IoT including definitions and key characteristics. It discusses the four layers of an IoT architecture: sensing, network, data processing, and application. Common IoT protocols at each layer like MQTT, CoAP, and HTTP are also outlined. The document then covers microprocessors, comparing CISC and RISC architectures. Microcontrollers are defined as specialized microprocessors used in embedded systems. ARM is highlighted as a popular architecture for IoT devices due to its low power consumption and integrated components.
This document provides an introduction and overview of PostgreSQL, including its history, features, installation, usage and SQL capabilities. It describes how to create and manipulate databases, tables, views, and how to insert, query, update and delete data. It also covers transaction management, functions, constraints and other advanced topics.
This document discusses SQLcl, a command line interface similar to SQL*Plus but built in Java. It summarizes key features of SQLcl including how to install it, command line editing capabilities, formatting query output, defining aliases for SQL and PL/SQL, and calling PL/SQL functions from SQL queries more efficiently in Oracle 12c and beyond by defining functions using subquery factoring or the PRAGMA UDF.
This document discusses user-defined functions (UDFs) and views in SQL. There are three types of UDFs - scalar, inline table-valued, and multi-statement table-valued. Views allow users to create a customized representation of data from one or more tables without taking up additional storage space. Views provide benefits like data security, simplicity, and removing dependency on underlying tables.
This document discusses user defined functions (UDF) and views in MySQL. It provides the syntax for creating UDFs and views. UDFs allow users to define reusable functions that can be called from queries. Views act as virtual tables that are based on the result set of a SELECT statement. The document provides an example of creating a UDF to return the number of jobs applied by a user and an example of creating a view from an employee table to select employee IDs and names. It describes some key properties and limitations of UDFs and how views can be used to rename attributes and insert/delete data.
This document provides instructions for building and running an Oracle SOA Suite sample that uses the Database Adapter to perform a SELECT query. It describes creating a SOA project, a BPEL process, and three different types of Database Adapter references - QueryByExample, SELECT, and pure SQL. The BPEL process uses assigns to pass input and output between the invoke activity and Database Adapter. Running the sample demonstrates how to retrieve data from the database and return it in the response.
Modernizing Your Database with SQL Server 2019 discusses SQL Server 2019 features that can help modernize a database, including:
- The Hybrid Buffer Pool which supports persistent memory to improve performance on read-heavy workloads.
- Memory-Optimized TempDB Metadata which stores TempDB metadata in memory-optimized tables to avoid certain blocking issues.
- Intelligent Query Processing features like Adaptive Query Processing, Batch Mode processing on rowstores, and Scalar UDF Inlining which improve query performance.
- Approximate Count Distinct, a new function that provides an estimated count of distinct values in a column faster than a precise count.
- Lightweight profiling, enabled by default, which provides query plan
Designing and Creating Views, Inline Functions, and SynonymsTayba Farooqui
Views allow users to query data from multiple tables while hiding complexity. Views are defined with a SELECT statement and do not store data. Inline functions can be used like parameterized views by accepting parameters. Synonyms provide an abstraction layer and can be used to reference objects in other databases or schemas.
The document discusses several SQL concepts:
[1] Subqueries, which can be noncorrelated (independent of the outer query) or correlated (contains references to the outer query). Correlated subqueries cannot be run independently.
[2] Views, which provide security, simplify queries, and insulate from changes, but can reduce performance and manageability. Views restrict access and update capabilities.
[3] Stored procedures, which increase performance but require specialized skills. Stored procedures accept parameters, contain multiple statements, and perform modifications, while views are limited to single SELECTs.
The document discusses various PL/SQL programming concepts including PL/SQL block structure, procedures, functions, packages, cursors, exceptions, and dependencies. It provides guidelines for proper naming conventions, restrictions on calling functions from SQL expressions, and best practices for cursor and package design. The document also covers object types, subtypes, and working with collections in PL/SQL.
Rolta’s application testing services for handling ever changing environment. Rolta
There are many changes take place every day every minute. The changes in form of updates, upgrades, patches and many more, to handle these everyday changes and alleviate testing pressure, Rolta introduces Real Application Testing (RAT). RAT comes in real handy when Oracle’s applications like SQL performance analyzer and Database Replay are in use. Presentation also gives examples of couple of test cases.
2° Ciclo Microsoft CRUI 3° Sessione: l'evoluzione delle piattaforme tecnologi...Jürgen Ambrosi
L’obiettivo è quello di fare una panoramica dello stato dell’arte sulle tecnologie a supporto dei database. Alcuni esempi sono la tecnologia in-memory integrata con le funzionalità di analisi operative in tempo reale e della tecnologia Always Encrypted per la protezione dei dati utilizzati in locale o durante gli spostamenti. La tecnologia in-memory consente di migliorare di 30 volte le performance delle transazioni utilizzando hardware standard di settore. Inoltre i Big Data e l'analisi sono diventati un importante fattore di differenziazione competitivo, ma la gestione delle enormi quantità di dati correlate a un tempo di attività 24 ore su 24 continua a essere una sfida per l'IT. Oggi è più importante che mai soddisfare a livello aziendale l'esigenza di prestazioni, disponibilità e sicurezza efficace per gestire carichi di lavoro mission-critical a un costo contenuto. Le soluzioni Microsoft fissano un nuovo standard nelle performance mission-critical.
This document provides an overview of Module 4 on designing and implementing views in SQL Server. It covers the key topics of:
- Creating and managing views, including the CREATE VIEW, ALTER VIEW, and DROP VIEW statements.
- System views and dynamic management views that provide metadata and state information.
- Performance considerations for views, such as dynamic resolution and nested views.
- Demonstrations of working with different types of views and analyzing view performance.
This document discusses how to create and manage various schema objects in an Oracle database including views, sequences, indexes, and synonyms. Views allow querying of data from underlying tables, sequences generate unique numbers, indexes improve query performance, and synonyms provide alternative names for objects. The document provides examples of creating each of these object types and modifying or removing them.
This lesson display some of topics like: 1- Create simple and complex views. 2- Retrieve data from views. 3- Create, maintain, and use sequences. 4- Create and maintain indexes. 5- Create private and public synonyms
This document provides an introduction to user defined functions (UDF), views, and indexing in MySQL. It defines UDFs as functions that can be used in SQL queries like built-in functions to perform computations. Views are described as representations of data from tables that don't take up storage space. Indexing improves query speed by organizing data to allow faster searches, though it slows down inserts and updates. The key differences between stored procedures and UDFs are also outlined.
The document discusses database views in MySQL. It provides information on creating views using the CREATE VIEW and CREATE OR REPLACE VIEW statements. Views allow simplifying complex queries, limiting data access, and providing extra security. Performance can be impacted when querying views defined on other views. Views also introduce dependency on the underlying tables. Stored procedures in MySQL are also discussed, including their advantages like increased performance and security, and disadvantages like increased memory usage. Triggers are described as stored programs that execute automatically in response to data changes and can be used for auditing and validation. Examples are provided on creating a trigger for auditing table updates and accessing MySQL from Excel.
This document provides an overview of PL/SQL and embedded SQL. It outlines the key components of PL/SQL including blocks, procedures, cursors, functions, and triggers. It also provides examples of how to write PL/SQL code for these different components. Additionally, it demonstrates how to embed SQL statements in a Java program using JDBC. The document concludes by reminding students to use the course website and provides details on the first assignment.
This document provides an overview of how to create and manage various schema objects in Oracle, including views, sequences, indexes, and synonyms. It discusses how to create simple and complex views, retrieve data from views, and perform DML operations on views. It also covers how to create, use, modify and cache sequences, and how to create nonunique indexes to improve query performance. Finally, it discusses how to create synonyms to provide alternative names for objects.
This document provides an overview of SQL data definition and integrity constraints. It discusses:
1) SQL data types and integrity constraints such as required fields, domain constraints, entity integrity, referential integrity, and general constraints. It provides examples of defining these constraints using SQL.
2) SQL DDL statements for creating, altering and dropping schemas, domains, tables, views and other database objects. Examples are provided for creating tables with constraints and altering tables.
3) Views - how they provide a dynamic result set defined by a query. The document describes creating, dropping and resolving views in SQL. Examples include horizontal, vertical and grouped/joined views.
Amit Bansal is a CTO who has conducted over 200 workshops on SQL Server and BI technologies. The presentation discusses SQL Server query optimizer characteristics and how plan guides can be used to manage query plans. Plan guides allow forcing or locking down a query plan to provide performance stability. Different types of plan guides include object, SQL, and template plan guides. The presentation covers creating, implementing, and managing plan guides.
OOP stands for Object-Oriented Programming. It involves creating objects that contain both data and methods. Classes act as templates for objects and define their attributes and behaviors. Some advantages of OOP include reusability, organization, and reduced repetition of code. Classes contain fields to store data and methods to perform actions on that data. Objects are instances of classes that inherit all fields and methods. Constructors initialize objects and can set initial field values. Arrays can store multiple objects. Dynamic arrays allow adding elements at runtime. Partial classes allow splitting a class definition across multiple files.
This document provides an introduction to IoT including definitions and key characteristics. It discusses the four layers of an IoT architecture: sensing, network, data processing, and application. Common IoT protocols at each layer like MQTT, CoAP, and HTTP are also outlined. The document then covers microprocessors, comparing CISC and RISC architectures. Microcontrollers are defined as specialized microprocessors used in embedded systems. ARM is highlighted as a popular architecture for IoT devices due to its low power consumption and integrated components.
This document provides an outline and overview of Chapter 10, which discusses functional dependencies and normalization for relational databases. It begins by covering informal design guidelines, such as avoiding redundant information and update anomalies. It then defines key concepts like functional dependencies and normal forms. First, second, and third normal forms are described based on primary keys and functional dependencies. The chapter aims to provide both a formal and practical understanding of relational database design and normalization.
This document summarizes a technical seminar presentation on a smart bin system. The smart bin uses sensors and actuators connected to an Arduino board to detect when garbage is present and open the bin lid. It also has wireless connectivity to report fill levels to a server, which informs cleaning vehicles. The system aims to automate garbage collection and prevent overfilled bins to support cleanliness initiatives. Key components include ultrasonic sensors, a servo motor, solar panels, GPS, and a mobile app for users to locate the nearest bin. Benefits are regular garbage pickup and less environmental pollution, while drawbacks include reliance on weather for solar power and high costs of implementation.
This document provides an overview of data structures and algorithms concepts through a presentation. It begins with an introduction to outcome based education and accreditation standards. It then covers Bloom's taxonomy, vision/mission statements, and defines key terms like program outcomes, course outcomes, and mappings between them. Several data structures are defined, like stacks, queues, and linked lists. Algorithms topics covered include recursion, sorting, searching and complexity analysis. Specific course details are provided like learning objectives, syllabus, and outcome mappings.
The document provides an overview of SQL and the database development process. It discusses SQL standards and environments. It also demonstrates how to define databases and tables using SQL data definition language. Examples are provided for SQL statements like SELECT, INSERT, UPDATE, and DELETE to manipulate and query data. Views, functions, joins and other SQL features are also explained.
Gender and Mental Health - Counselling and Family Therapy Applications and In...PsychoTech Services
A proprietary approach developed by bringing together the best of learning theories from Psychology, design principles from the world of visualization, and pedagogical methods from over a decade of training experience, that enables you to: Learn better, faster!
Walmart Business+ and Spark Good for Nonprofits.pdfTechSoup
"Learn about all the ways Walmart supports nonprofit organizations.
You will hear from Liz Willett, the Head of Nonprofits, and hear about what Walmart is doing to help nonprofits, including Walmart Business and Spark Good. Walmart Business+ is a new offer for nonprofits that offers discounts and also streamlines nonprofits order and expense tracking, saving time and money.
The webinar may also give some examples on how nonprofits can best leverage Walmart Business+.
The event will cover the following::
Walmart Business + (https://business.walmart.com/plus) is a new shopping experience for nonprofits, schools, and local business customers that connects an exclusive online shopping experience to stores. Benefits include free delivery and shipping, a 'Spend Analytics” feature, special discounts, deals and tax-exempt shopping.
Special TechSoup offer for a free 180 days membership, and up to $150 in discounts on eligible orders.
Spark Good (walmart.com/sparkgood) is a charitable platform that enables nonprofits to receive donations directly from customers and associates.
Answers about how you can do more with Walmart!"
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...PECB
Denis is a dynamic and results-driven Chief Information Officer (CIO) with a distinguished career spanning information systems analysis and technical project management. With a proven track record of spearheading the design and delivery of cutting-edge Information Management solutions, he has consistently elevated business operations, streamlined reporting functions, and maximized process efficiency.
Certified as an ISO/IEC 27001: Information Security Management Systems (ISMS) Lead Implementer, Data Protection Officer, and Cyber Risks Analyst, Denis brings a heightened focus on data security, privacy, and cyber resilience to every endeavor.
His expertise extends across a diverse spectrum of reporting, database, and web development applications, underpinned by an exceptional grasp of data storage and virtualization technologies. His proficiency in application testing, database administration, and data cleansing ensures seamless execution of complex projects.
What sets Denis apart is his comprehensive understanding of Business and Systems Analysis technologies, honed through involvement in all phases of the Software Development Lifecycle (SDLC). From meticulous requirements gathering to precise analysis, innovative design, rigorous development, thorough testing, and successful implementation, he has consistently delivered exceptional results.
Throughout his career, he has taken on multifaceted roles, from leading technical project management teams to owning solutions that drive operational excellence. His conscientious and proactive approach is unwavering, whether he is working independently or collaboratively within a team. His ability to connect with colleagues on a personal level underscores his commitment to fostering a harmonious and productive workplace environment.
Date: May 29, 2024
Tags: Information Security, ISO/IEC 27001, ISO/IEC 42001, Artificial Intelligence, GDPR
-------------------------------------------------------------------------------
Find out more about ISO training and certification services
Training: ISO/IEC 27001 Information Security Management System - EN | PECB
ISO/IEC 42001 Artificial Intelligence Management System - EN | PECB
General Data Protection Regulation (GDPR) - Training Courses - EN | PECB
Webinars: https://pecb.com/webinars
Article: https://pecb.com/article
-------------------------------------------------------------------------------
For more information about PECB:
Website: https://pecb.com/
LinkedIn: https://www.linkedin.com/company/pecb/
Facebook: https://www.facebook.com/PECBInternational/
Slideshare: http://www.slideshare.net/PECBCERTIFICATION
This document provides an overview of wound healing, its functions, stages, mechanisms, factors affecting it, and complications.
A wound is a break in the integrity of the skin or tissues, which may be associated with disruption of the structure and function.
Healing is the body’s response to injury in an attempt to restore normal structure and functions.
Healing can occur in two ways: Regeneration and Repair
There are 4 phases of wound healing: hemostasis, inflammation, proliferation, and remodeling. This document also describes the mechanism of wound healing. Factors that affect healing include infection, uncontrolled diabetes, poor nutrition, age, anemia, the presence of foreign bodies, etc.
Complications of wound healing like infection, hyperpigmentation of scar, contractures, and keloid formation.
Communicating effectively and consistently with students can help them feel at ease during their learning experience and provide the instructor with a communication trail to track the course's progress. This workshop will take you through constructing an engaging course container to facilitate effective communication.
বাংলাদেশের অর্থনৈতিক সমীক্ষা ২০২৪ [Bangladesh Economic Review 2024 Bangla.pdf] কম্পিউটার , ট্যাব ও স্মার্ট ফোন ভার্সন সহ সম্পূর্ণ বাংলা ই-বুক বা pdf বই " সুচিপত্র ...বুকমার্ক মেনু 🔖 ও হাইপার লিংক মেনু 📝👆 যুক্ত ..
আমাদের সবার জন্য খুব খুব গুরুত্বপূর্ণ একটি বই ..বিসিএস, ব্যাংক, ইউনিভার্সিটি ভর্তি ও যে কোন প্রতিযোগিতা মূলক পরীক্ষার জন্য এর খুব ইম্পরট্যান্ট একটি বিষয় ...তাছাড়া বাংলাদেশের সাম্প্রতিক যে কোন ডাটা বা তথ্য এই বইতে পাবেন ...
তাই একজন নাগরিক হিসাবে এই তথ্য গুলো আপনার জানা প্রয়োজন ...।
বিসিএস ও ব্যাংক এর লিখিত পরীক্ষা ...+এছাড়া মাধ্যমিক ও উচ্চমাধ্যমিকের স্টুডেন্টদের জন্য অনেক কাজে আসবে ...
Leveraging Generative AI to Drive Nonprofit InnovationTechSoup
In this webinar, participants learned how to utilize Generative AI to streamline operations and elevate member engagement. Amazon Web Service experts provided a customer specific use cases and dived into low/no-code tools that are quick and easy to deploy through Amazon Web Service (AWS.)
1. Chapter Outline
9.1 General Constraints as Assertions
9.2 Views in SQL
9.3 Database Programming
9.4 Embedded SQL
9.5 Functions Calls, SQL/CLI
9.6 Stored Procedures, SQL/PSM
9.7 Summary
2. Chapter Objectives
• Specification of more general constraints via
assertions
• SQL facilities for defining views (virtual tables)
• Various techniques for accessing and
manipulating a database via programs in
general-purpose languages (e.g., Java)
3. Constraints as Assertions
• General constraints: constraints that do not
fit in the basic SQL categories (presented in
chapter 8)
• Mechanism: CREAT ASSERTION
– components include: a constraint name,
followed by CHECK, followed by a condition
4. Assertions: An Example
• “The salary of an employee must not be
greater than the salary of the manager of the
department that the employee works for’’
CREAT ASSERTION SALARY_CONSTRAINT
CHECK (NOT EXISTS (SELECT *
FROM EMPLOYEE E, EMPLOYEE M, DEPARTMENT D
WHERE E.SALARY > M.SALARY AND
E.DNO=D.NUMBER AND D.MGRSSN=M.SSN))
5. Using General Assertions
• Specify a query that violates the condition;
include inside a NOT EXISTS clause
• Query result must be empty
– if the query result is not empty, the assertion has
been violated
6. SQL Triggers
• Objective: to monitor a database and take
action when a condition occurs
• Triggers are expressed in a syntax similar to
assertions and include the following:
– event (e.g., an update operation)
– condition
– action (to be taken when the condition is satisfied)
7. SQL Triggers: An Example
• A trigger to compare an employee’s salary to his/her
supervisor during insert or update operations:
CREATE TRIGGER INFORM_SUPERVISOR
BEFORE INSERT OR UPDATE OF
SALARY, SUPERVISOR_SSN ON EMPLOYEE
FOR EACH ROW
WHEN
(NEW.SALARY> (SELECT SALARY FROM EMPLOYEE
WHERE SSN=NEW.SUPERVISOR_SSN))
INFORM_SUPERVISOR (NEW.SUPERVISOR_SSN,NEW.SSN;
8. Views in SQL
• A view is a “virtual” table that is derived from
other tables
• Allows for limited update operations (since
the table may not physically be stored)
• Allows full query operations
• A convenience for expressing certain
operations
9. What is a View?
• In SQL, a VIEW is a virtual relation based on the result-set
of a SELECT statement.
• A view contains rows and columns, just like a real table.
The fields in a view are fields from one or more real tables
in the database. In some cases, we can modify a view and
present the data as if the data were coming from a single
table.
• Syntax:
CREATE VIEW view_name AS
SELECT column_name(s)
FROM table_name
WHERE condition
10. SQL – Relations, Tables & Views
• When we say Relation, it could be a Table or a View. There
are three kind of relations:
1. Stored relations tables
We sometimes use the term “base relation” or “base table”
2. Virtual relations views
3. Temporary results
11. SQL – Create View
• Example: Create a view with title and year and made by
Paramount studio.
Movie (title, year, length, inColor, studioName,
producerC#)
CREATE VIEW ParamountMovie AS
SELECT title,year
FROM Movie
WHERE studioName = ‘Paramount’;
12. SQL – Querying View
• A view could be used from inside a query, a stored
procedure, or from inside another view. By adding functions,
joins, etc., to a view, it allows us to present exactly the data
we want to the user.
SELECT title
FROM ParamountMovie
WHERE year = ‘1979’;
• Have same result as
SELECT title
FROM Movie
WHERE studioName = ‘Paramount’ AND year = ‘1979’;
View
Table
13. SQL - Querying View con’t
• Query involving both view and table
SELECT DISTINCT starName
FROM ParamountMovie, StarsIn
WHERE title = movieTitle AND year = movieYear;
Table
View
14. SQL - Querying View example
Movie (title, year, length, inColor, studioName, producerC#)
MovieExec (name, address, cert#, netWorth)
CREATE VIEW MovieProd AS
SELECT title, name
FROM Movie, MovieExec
WHERE producerC# = cert#;
SELECT name
FROM MovieProd
WHERE title = ‘Gone With the Wind’;
• Same result as query from tables
SELECT name
FROM Movie, MovieExec
WHERE producerC# = cert# AND title = ‘The War Of the World’;
15. SQL - Renaming Attributes in View
• Sometime, we might want to distinguish
attributes by giving the different name.
CREATE VIEW MovieProd (movieTitle, prodName) AS
SELECT title, name
FROM Movie, MovieExec
WHERE producerC# = cert#;
16. SQL - Modifying View
When we modify a view, we actually modify a table through
a view. Many views are not updateable. Here are rules
have been defined in SQL for updateable views:
• selecting (SELECT not SELECT DISTINCT) some attributes
from one relation R (which may itself be an updateable
view)
The WHERE clause must not involve R in a subquery.
The list in the SELECT clause must include enough
attributes that will allow us to insert tuples into the
view as well as table. All other attributes will be filled
out with NULL or the proper default values.
17. SQL – Modifying View (INSERT)
INSERT INTO ParamountMovie
VALUES (‘Star Trek’, 1979);
To make the view ParamountMovie updateable, we need to add
attribute studioName to it’s SELECT clause because it makes more
sense if the studioName is Paramount instead of NULL.
CREATE VIEW ParamountMovie AS
SELECT studioName, title, year
FROM Movie
WHERE studioName = ‘Paramount’;
Then
INSERT INTO ParamountMovie
VALUES (‘Paramount’, ‘Star Trek’, 1979);
Title year length inColor studioName producerC#
‘Star Trek’ 1979 0 NULL ‘Paramount’ NULL
18. SQL - Modifying View (DELETE)
• Suppose we wish to delete all movies with “Trek” in
their title from the updateable view
ParamountMovie.
DELETE FROM ParamountMovie
WHERE title LIKE ‘%Trek%’;
It is turned into the base table delete
DELETE FROM Movie
WHERE title LIKE ‘%Trek%’ AND studioName = ‘Paramount’;
19. SQL - Modifying View (UPDATE)
• UPDATE from an updateable view
UPDATE ParamountMovie
SET year = 1979
WHERE title = ‘Star Trek the Movie’;
It is turned into the base table update
UPDATE Movie
SET year = 1979
WHERE title = ‘Star Trek the Movie’ AND studioName =
‘Paramount’;
20. Specification of Views
• SQL command: CREATE VIEW
– a table (view) name
– a possible list of attribute names (for example,
when arithmetic operations are specified or when
we want the names to be different from the
attributes in the base relations)
– a query to specify the table contents
21. SQL Views: An Example
• Specify a different WORKS_ON table
CREATE TABLE WORKS_ON_NEW AS
SELECT FNAME, LNAME, PNAME, HOURS
FROM EMPLOYEE, PROJECT, WORKS_ON
WHERE SSN=ESSN AND PNO=PNUMBER
GROUP BY PNAME;
22. Using a Virtual Table
• We can specify SQL queries on a newly create
table (view):
SELECT FNAME, LNAME FROM WORKS_ON_NEW
WHERE PNAME=‘Seena’;
• When no longer needed, a view can be
dropped:
DROP WORKS_ON_NEW;
23. Efficient View Implementation
• Query modification: present the view query in
terms of a query on the underlying base tables
– disadvantage: inefficient for views defined via
complex queries (especially if additional queries
are to be applied to the view within a short time
period)
24. Efficient View Implementation
• View materialization: involves physically
creating and keeping a temporary table
– assumption: other queries on the view will follow
– concerns: maintaining correspondence between
the base table and the view when the base table is
updated
– strategy: incremental update
25. View Update
• Update on a single view without aggregate
operations: update may map to an update on
the underlying base table
• Views involving joins: an update may map to
an update on the underlying base relations
– not always possible
26. Un-updatable Views
• Views defined using groups and aggregate
functions are not updateable
• Views defined on multiple tables using joins
are generally not updateable
• WITH CHECK OPTION: must be added to the
definition of a view if the view is to be
updated
– to allow check for updatability and to plan for an
execution strategy
27. Database Programming
• Objective: to access a database from an
application program (as opposed to
interactive interfaces)
• Why? An interactive interface is convenient
but not sufficient; a majority of database
operations are made thru application
programs (nowadays thru web applications)
28. Database Programming Approaches
• Embedded commands: database commands
are embedded in a general-purpose
programming language
• Library of database functions: available to the
host language for database calls; known as an
API
• A brand new, full-fledged language
(minimizes impedance mismatch)
29. Impedance Mismatch
• Incompatibilities between a host
programming language and the database
model, e.g.,
– type mismatch and incompatibilities; requires a
new binding for each language
– set vs. record-at-a-time processing
• need special iterators to loop over query results and
manipulate individual values
30. Steps in Database Programming
1. Client program opens a connection to the
database server
2. Client program submits queries to and/or
updates the database
3. When database access is no longer needed,
client program terminates the connection
31. Embedded SQL
• Most SQL statements can be embedded in a
general-purpose host programming language
such as COBOL, C, Java
• An embedded SQL statement is distinguished
from the host language statements by EXEC
SQL and a matching END-EXEC (or
semicolon)
– shared variables (used in both languages) usually
prefixed with a colon (:) in SQL
32. Example: Variable Declaration
in Language C
• Variables inside DECLARE are shared and can appear (while
prefixed by a colon) in SQL statements
• SQLCODE is used to communicate errors/exceptions between
the database and the program
int loop;
EXEC SQL BEGIN DECLARE SECTION;
varchar dname[16], fname[16], …;
char ssn[10], bdate[11], …;
int dno, dnumber, SQLCODE, …;
EXEC SQL END DECLARE SECTION;
33. SQL Commands for
Connecting to a Database
• Connection (multiple connections are possible
but only one is active)
CONNECT TO server-name AS connection-name
AUTHORIZATION user-account-info;
• Change from an active connection to another
one
SET CONNECTION connection-name;
• Disconnection
DISCONNECT connection-name;
34. Embedded SQL in C
Programming Examples
loop = 1;
while (loop) {
prompt (“Enter SSN: “, ssn);
EXEC SQL
select FNAME, LNAME, ADDRESS, SALARY
into :fname, :lname, :address, :salary
from EMPLOYEE where SSN == :ssn;
if (SQLCODE == 0) printf(fname, …);
else printf(“SSN does not exist: “, ssn);
prompt(“More SSN? (1=yes, 0=no): “, loop);
END-EXEC
}
35. Embedded SQL in C
Programming Examples
• A cursor (iterator) is needed to process
multiple tuples
• FETCH commands move the cursor to the
next tuple
• CLOSE CURSOR indicates that the
processing of query results has been
completed
36. Dynamic SQL
• Objective: executing new (not previously compiled)
SQL statements at run-time
– a program accepts SQL statements from the keyboard at
run-time
– a point-and-click operation translates to certain SQL query
• Dynamic update is relatively simple; dynamic query
can be complex
– because the type and number of retrieved attributes are
unknown at compile time
37. Dynamic SQL: An Example
EXEC SQL BEGIN DECLARE SECTION;
varchar sqlupdatestring[256];
EXEC SQL END DECLARE SECTION;
…
prompt (“Enter update command:“, sqlupdatestring);
EXEC SQL PREPARE sqlcommand FROM :sqlupdatestring;
EXEC SQL EXECUTE sqlcommand;
38. Embedded SQL in Java
• SQLJ: a standard for embedding SQL in Java
• An SQLJ translator converts SQL statements
into Java (to be executed thru the JDBC
interface)
• Certain classes, e.g., java.sql have to be
imported
39. Java Database Connectivity
• JDBC: SQL connection function calls for Java
programming
• A Java program with JDBC functions can
access any relational DBMS that has a JDBC
driver
• JDBC allows a program to connect to several
databases (known as data sources)
40. Steps in JDBC Database Access
1. Import JDBC library (java.sql.*)
2. Load JDBC driver:
Class.forname(“oracle.jdbc.driver.OracleDriver”)
3. Define appropriate variables
4. Create a connect object (via getConnection)
5. Create a statement object from the
Statement class:
1. PreparedStatment
2. CallableStatement
41. Steps in JDBC Database Access
(continued)
6. Identify statement parameters (to be
designated by question marks)
7. Bound parameters to program variables
8. Execute SQL statement (referenced by an
object) via JDBC’s executeQuery
9. Process query results (returned in an object
of type ResultSet)
– ResultSet is a 2-dimentional table
42. Embedded SQL in Java:
An Example
ssn = readEntry(“Enter a SSN: “);
try {
#sql{select FNAME< LNAME, ADDRESS, SALARY
into :fname, :lname, :address, :salary
from EMPLOYEE where SSN = :ssn};
}
catch (SQLException se) {
System.out.println(“SSN does not exist: “,+ssn);
return;
}
System.out.println(fname+“ “+lname+… );
43. Multiple Tuples in SQLJ
• SQLJ supports two types of iterators:
– named iterator: associated with a query result
– positional iterator: lists only attribute types in a
query result
• A FETCH operation retrieves the next tuple in a
query result:
fetch iterator-variable into program-variable
44. Database Programming with Functional Calls
• Embedded SQL provides static database
programming
• API: dynamic database programming with a
library of functions
– advantage: no preprocessor needed (thus more
flexible)
– drawback: SQL syntax checks to be done at run-
time
45. SQL Call Level Interface
• A part of the SQL standard
• Provides easy access to several databases
within the same program
• Certain libraries (e.g., sqlcli.h for C) have
to be installed and available
• SQL statements are dynamically created and
passed as string parameters in the calls
46. Components of SQL/CLI
• Environment record: keeps track of database
connections
• Connection record: keep tracks of info needed
for a particular connection
• Statement record: keeps track of info needed
for one SQL statement
• Description record: keeps track of tuples
47. Steps in C and SQL/CLI Programming
1. Load SQL/CLI libraries
2. Declare record handle variables for the above
components (called: SQLHSTMT, SQLHDBC, SQLHENV,
SQLHDEC)
3. Set up an environment record using SQLAllocHandle
4. Set up a connection record using SQLAllocHandle
5. Set up a statement record using SQLAllocHandle
48. Steps in C and SQL/CLI Programming (continued)
6. Prepare a statement using SQL/CLI function
SQLPrepare
7. Bound parameters to program variables
8. Execute SQL statement via SQLExecute
9. Bound columns in a query to a C variable via
SQLBindCol
10. Use SQLFetch to retrieve column values into
C variables
49. Database Stored Procedures
• Persistent procedures/functions (modules) are
stored locally and executed by the database server
(as opposed to execution by clients)
• Advantages:
– if the procedure is needed by many applications, it can be
invoked by any of them (thus reduce duplications)
– execution by the server reduces communication costs
– enhance the modeling power of views
50. Stored Procedure Constructs
• A stored procedure
CREATE PROCEDURE procedure-name (params)
local-declarations
procedure-body;
• A stored function
CREATE FUNCTION fun-name (params) RETRUNS return-type
local-declarations
function-body;
• Calling a procedure or function
CALL procedure-name/fun-name (arguments);
51. SQL Persistent Stored Modules
• SQL/PSM: part of the SQL standard for writing
persistent stored modules
• SQL + stored procedures/functions +
additional programming constructs
– e.g., branching and looping statements
– enhance the power of SQL
52. SQL/PSM: An Example
CREATE FUNCTION DEPT_SIZE (IN deptno INTEGER)
RETURNS VARCHAR[7]
DECLARE TOT_EMPS INTEGER;
SELECT COUNT (*) INTO TOT_EMPS
FROM SELECT EMPLOYEE WHERE DNO = deptno;
IF TOT_EMPS > 100 THEN RETURN “HUGE”
ELSEIF TOT_EMPS > 50 THEN RETURN “LARGE”
ELSEIF TOT_EMPS > 30 THEN RETURN “MEDIUM”
ELSE RETURN “SMALL”
ENDIF;
53. Summary
• Assertions provide a means to specify
additional constraints
• Triggers are a special kind of assertions; they
define actions to be taken when certain
conditions occur
• Views are a convenient means for creating
temporary (virtual) tables
54. Summary (continued)
• A database may be accessed via an interactive
database
• Most often, however, data in a database is
manipulate via application programs
• Several methods of database programming:
– embedded SQL
– dynamic SQL
– stored procedure and function