Function in PL/SQL, Create Function Syntax, Example – No Parameters in Function , Example – Testing RetrieveSalary Function, Example Function with Parameter, Dropping a Function
Triggers are stored programs that are automatically executed in response to events like data manipulation language (DML) statements or database definition language (DDL) statements. They can be used for purposes like enforcing referential integrity, auditing, and event logging. The syntax to create a trigger includes keywords like BEFORE, AFTER, INSTEAD OF to specify when it should be executed in relation to a triggering statement. PL/SQL packages are used to group related logic, types, variables and subprograms. A package has a specification that declares its elements and a body that defines them. Packages provide a way to encapsulate and organize code.
The document discusses views in SQL. It defines views as logical tables that represent data from one or more underlying tables. Views can be queried, updated, and deleted from like tables but do not occupy storage space. The document describes simple views based on a single table and complex views involving joins across multiple tables. It provides examples of creating, modifying, dropping, and querying views. The document also discusses indexes in SQL, describing them as pointers that speed up data retrieval. It covers B-tree and bitmap indexes and provides examples of creating indexes on tables.
Procedures in pl/sql,CREATE PROCEDURE Syntax, Compiling and Showing Errors, Parameters, Defining the IN, OUT, and IN OUT Parameter Modes, Parameter Constraint Restrictions, Example – Procedure with No Parameters,Example – Passing IN and OUT Parameters, Dropping a Procedure
This document discusses procedures and functions in PL/SQL. It defines a procedure as a group of PL/SQL statements that can be called by name and does not need to return a value. A function is similar to a procedure but must return a single value. The document provides the syntax for creating procedures and functions, and examples of standalone and recursive procedures and functions. It explains how to call procedures and functions, and the differences between them, such as procedures not having a return value while functions do.
Consists of the explanations of the basics of SQL and commands of SQL.Helpful for II PU NCERT students and also degree studeents to understand some basic things.
This presentation gives a clear and concise description of joins in sql and several types of sql joins.
These slides also contains the pictorial representation as well as syntax for each type of joins.
SQL language includes four primary statement types: DML, DDL, DCL, and TCL. DML statements manipulate data within tables using operations like SELECT, INSERT, UPDATE, and DELETE. DDL statements define and modify database schema using commands like CREATE, ALTER, and DROP. DCL statements control user access privileges with GRANT and REVOKE. TCL statements manage transactions with COMMIT, ROLLBACK, and SAVEPOINT to maintain data integrity.
Joins in SQL are used to combine data from two or more tables based on common columns between them. There are several types of joins, including inner joins, outer joins, and cross joins. Inner joins return rows that match between tables, outer joins return all rows including non-matching rows, and cross joins return the cartesian product between tables.
Introduction to structured query language (sql)Sabana Maharjan
This document provides an introduction to structured query language (SQL). It discusses the two broad categories of SQL functions: data definition language and data manipulation language. The data definition language includes commands for creating database objects like tables and views, while the data manipulation language includes commands for inserting, updating, deleting, and retrieving data from tables. The document then covers topics like SQL data types, table structures, constraints, indexes, and basic data manipulation commands. It also discusses more advanced SQL concepts such as joins, aggregate functions, and views.
This document provides an introduction to database management systems (DBMS) and SQL Server. It discusses what a database is and where databases are used. It then explains what a DBMS is and some examples of DBMS software. The document goes on to describe the relational database model including entities, attributes, relationships and keys. It also discusses the entity-relationship model. Finally, it covers SQL statements including DDL, DML, and DCL and provides examples of commands for creating tables, inserting and updating data, and setting privileges.
The document discusses various SQL concepts like views, triggers, functions, indexes, joins, and stored procedures. Views are virtual tables created by joining real tables, and can be updated, modified or dropped. Triggers automatically run code when data is inserted, updated or deleted from a table. Functions allow reusable code and improve clarity. Indexes allow faster data retrieval. Joins combine data from different tables. Stored procedures preserve data integrity.
The document discusses various SQL concepts like database and tables, RDBMS terminology, SQL commands categories, data types, creating and manipulating tables. It explains concepts like primary key, foreign key, aggregate functions like MAX(), MIN(), AVG(), SUM(). Examples are provided for queries using SELECT, WHERE, ORDER BY, UPDATE and DELETE statements. Logical and relational operators used for filtering data in WHERE clause are also explained.
in this presentation the commands let you help to understand the basic of the database system software. how to retrieve data, how to feed data and manipulate it very efficiently by using this commands.
This document discusses CRUD operations in MySQL and database design. It explains that tables contain records made of columns/fields that classify data. Common data types like varchar, char, int, float, datetime are described. CRUD stands for Create, Read, Update, Delete - the basic functions to add, retrieve, modify and remove data in a database. Examples of SQL queries like SELECT, INSERT, UPDATE, DELETE are provided to demonstrate CRUD operations on a sample Users table. Additional SQL clauses like WHERE, BETWEEN, IN, LIKE, GROUP BY, COUNT, SUM are also overviewed.
This document discusses different types of joins in SQL, including inner joins, outer joins, cross joins, and natural joins. It provides guidelines for writing join conditions, handling ambiguous column names, and joining more than two tables. The key types of joins covered are equijoins for matching column values, outer joins to also return non-matching rows, and self joins to join a table to itself.
MySQL is a popular and freely available open-source relational database management system (RDBMS). It stores data in tables and relationships between data are also stored in tables. MySQL uses SQL and works on many operating systems. It has commands for data definition (CREATE, ALTER, DROP), data manipulation (SELECT, INSERT, UPDATE, DELETE), transaction control (COMMIT, ROLLBACK), and data access control (GRANT, REVOKE). Joins allow retrieving data from multiple tables by linking rows together. Common join types are inner joins, outer joins, and self joins.
PL/SQL is a combination of SQL along with the procedural features of programming languages.
It provides specific syntax for this purpose and supports exactly the same datatypes as SQL.
PL/SQL is Oracle's standard language for accessing and manipulating data in Oracle databases. It allows developers to integrate SQL statements with procedural constructs like variables, conditions, and loops. PL/SQL code is organized into blocks that define a declarative section for variable declarations and an executable section containing SQL and PL/SQL statements. Variables can be scalar, composite, reference, or LOB types and are declared in the declarative section before being used in the executable section.
Data Definition Language (DDL), Data Definition Language (DDL), Data Manipulation Language (DML) , Transaction Control Language (TCL) , Data Control Language (DCL) - , SQL Constraints
PACKAGES, Package Specification and Scope, Create Package Syntax, Declaring Procedures and Functions within a Package, Package Body, Create Package Body Syntax,Example –Package, Example– Package Body, Example – Calling Package Procedure, mResults of Calling Package Procedure, Cursors in Packages , cursor Example – Package Body, Example – Use Cursor Variable
SQL is a standard language for querying and manipulating data in relational databases. It contains five categories of statements: data definition language (DDL) for defining data structure, data manipulation language (DML) for managing data, data control language (DCL) for privileges, transaction control statements for transactions, and session control statements for sessions. Common DDL commands include CREATE, ALTER, and DROP for databases and tables. Common DML commands include SELECT, INSERT, UPDATE, and DELETE for querying and modifying data. Joins are used to combine data from two or more tables.
YouTube Link: https://youtu.be/f6VWSlnHGCE
** MySQL DBA Certification Training: https://www.edureka.co/mysql-dba **
This Edureka PPT on 'SQL Triggers' will help you understand the concept of triggers in SQL. Below are the topics covered in this SQL Triggers For Beginners.
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
This document provides an overview of PL/SQL programming. It outlines an agenda that introduces PL/SQL and covers basic and advanced syntax. The introduction defines PL/SQL and outlines its advantages like block structures, procedural capabilities, and error handling. Basic syntax covers blocks, operators, comments, variables and data types. Advanced topics include cursors, procedures, functions, parameters, and exception handling. Triggers are also introduced as PL/SQL blocks triggered by data changes. Examples are provided throughout to illustrate key PL/SQL concepts.
This document discusses SQL commands for creating tables, adding data, and enforcing integrity constraints. It covers the core SQL commands: DDL for defining schema, DML for manipulating data, DCL for controlling access, DQL for querying data, and TCL for transactions. Specific topics summarized include data types, primary keys, foreign keys, indexes, views, stored procedures, functions and triggers. Integrity constraints like NOT NULL, UNIQUE, CHECK, DEFAULT are explained. The document also covers SQL queries with filtering, sorting, patterns and ranges. Authorization using GRANT and REVOKE commands is briefly covered.
A SQL subquery is a query nested inside another query. Subqueries can be used in the SELECT, WHERE, INSERT, UPDATE, or DELETE clauses. The subquery executes first and its results are then used by the outer query. There are three types of subqueries: single row, multiple row, and multiple column. Single row subqueries use comparison operators like =, <, > and return one row. Multiple row subqueries use operators like IN, ANY, ALL and return multiple rows. Multiple column subqueries compare more than one column between the outer and inner queries.
The document provides examples of SQL statements used to create database objects like tables, users, schemas, procedures, and triggers in Oracle/PLSQL. It includes the CREATE statements to create a database, tablespace, user, schema, procedure, function, role, and trigger. It also includes examples of GRANT, REVOKE, and ALTER statements to manage privileges and roles.
Oracle - Program with PL/SQL - Lession 10Thuan Nguyen
Functions allow users to define reusable blocks of code that can return values. Functions are created using the CREATE FUNCTION syntax and return a single value. They can be invoked from SQL statements and PL/SQL code. Functions must contain a RETURN statement and only accept parameters and return types that are valid SQL data types. Procedures are similar but do not return values and are used to perform actions rather than compute values.
Introduction to structured query language (sql)Sabana Maharjan
This document provides an introduction to structured query language (SQL). It discusses the two broad categories of SQL functions: data definition language and data manipulation language. The data definition language includes commands for creating database objects like tables and views, while the data manipulation language includes commands for inserting, updating, deleting, and retrieving data from tables. The document then covers topics like SQL data types, table structures, constraints, indexes, and basic data manipulation commands. It also discusses more advanced SQL concepts such as joins, aggregate functions, and views.
This document provides an introduction to database management systems (DBMS) and SQL Server. It discusses what a database is and where databases are used. It then explains what a DBMS is and some examples of DBMS software. The document goes on to describe the relational database model including entities, attributes, relationships and keys. It also discusses the entity-relationship model. Finally, it covers SQL statements including DDL, DML, and DCL and provides examples of commands for creating tables, inserting and updating data, and setting privileges.
The document discusses various SQL concepts like views, triggers, functions, indexes, joins, and stored procedures. Views are virtual tables created by joining real tables, and can be updated, modified or dropped. Triggers automatically run code when data is inserted, updated or deleted from a table. Functions allow reusable code and improve clarity. Indexes allow faster data retrieval. Joins combine data from different tables. Stored procedures preserve data integrity.
The document discusses various SQL concepts like database and tables, RDBMS terminology, SQL commands categories, data types, creating and manipulating tables. It explains concepts like primary key, foreign key, aggregate functions like MAX(), MIN(), AVG(), SUM(). Examples are provided for queries using SELECT, WHERE, ORDER BY, UPDATE and DELETE statements. Logical and relational operators used for filtering data in WHERE clause are also explained.
in this presentation the commands let you help to understand the basic of the database system software. how to retrieve data, how to feed data and manipulate it very efficiently by using this commands.
This document discusses CRUD operations in MySQL and database design. It explains that tables contain records made of columns/fields that classify data. Common data types like varchar, char, int, float, datetime are described. CRUD stands for Create, Read, Update, Delete - the basic functions to add, retrieve, modify and remove data in a database. Examples of SQL queries like SELECT, INSERT, UPDATE, DELETE are provided to demonstrate CRUD operations on a sample Users table. Additional SQL clauses like WHERE, BETWEEN, IN, LIKE, GROUP BY, COUNT, SUM are also overviewed.
This document discusses different types of joins in SQL, including inner joins, outer joins, cross joins, and natural joins. It provides guidelines for writing join conditions, handling ambiguous column names, and joining more than two tables. The key types of joins covered are equijoins for matching column values, outer joins to also return non-matching rows, and self joins to join a table to itself.
MySQL is a popular and freely available open-source relational database management system (RDBMS). It stores data in tables and relationships between data are also stored in tables. MySQL uses SQL and works on many operating systems. It has commands for data definition (CREATE, ALTER, DROP), data manipulation (SELECT, INSERT, UPDATE, DELETE), transaction control (COMMIT, ROLLBACK), and data access control (GRANT, REVOKE). Joins allow retrieving data from multiple tables by linking rows together. Common join types are inner joins, outer joins, and self joins.
PL/SQL is a combination of SQL along with the procedural features of programming languages.
It provides specific syntax for this purpose and supports exactly the same datatypes as SQL.
PL/SQL is Oracle's standard language for accessing and manipulating data in Oracle databases. It allows developers to integrate SQL statements with procedural constructs like variables, conditions, and loops. PL/SQL code is organized into blocks that define a declarative section for variable declarations and an executable section containing SQL and PL/SQL statements. Variables can be scalar, composite, reference, or LOB types and are declared in the declarative section before being used in the executable section.
Data Definition Language (DDL), Data Definition Language (DDL), Data Manipulation Language (DML) , Transaction Control Language (TCL) , Data Control Language (DCL) - , SQL Constraints
PACKAGES, Package Specification and Scope, Create Package Syntax, Declaring Procedures and Functions within a Package, Package Body, Create Package Body Syntax,Example –Package, Example– Package Body, Example – Calling Package Procedure, mResults of Calling Package Procedure, Cursors in Packages , cursor Example – Package Body, Example – Use Cursor Variable
SQL is a standard language for querying and manipulating data in relational databases. It contains five categories of statements: data definition language (DDL) for defining data structure, data manipulation language (DML) for managing data, data control language (DCL) for privileges, transaction control statements for transactions, and session control statements for sessions. Common DDL commands include CREATE, ALTER, and DROP for databases and tables. Common DML commands include SELECT, INSERT, UPDATE, and DELETE for querying and modifying data. Joins are used to combine data from two or more tables.
YouTube Link: https://youtu.be/f6VWSlnHGCE
** MySQL DBA Certification Training: https://www.edureka.co/mysql-dba **
This Edureka PPT on 'SQL Triggers' will help you understand the concept of triggers in SQL. Below are the topics covered in this SQL Triggers For Beginners.
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
This document provides an overview of PL/SQL programming. It outlines an agenda that introduces PL/SQL and covers basic and advanced syntax. The introduction defines PL/SQL and outlines its advantages like block structures, procedural capabilities, and error handling. Basic syntax covers blocks, operators, comments, variables and data types. Advanced topics include cursors, procedures, functions, parameters, and exception handling. Triggers are also introduced as PL/SQL blocks triggered by data changes. Examples are provided throughout to illustrate key PL/SQL concepts.
This document discusses SQL commands for creating tables, adding data, and enforcing integrity constraints. It covers the core SQL commands: DDL for defining schema, DML for manipulating data, DCL for controlling access, DQL for querying data, and TCL for transactions. Specific topics summarized include data types, primary keys, foreign keys, indexes, views, stored procedures, functions and triggers. Integrity constraints like NOT NULL, UNIQUE, CHECK, DEFAULT are explained. The document also covers SQL queries with filtering, sorting, patterns and ranges. Authorization using GRANT and REVOKE commands is briefly covered.
A SQL subquery is a query nested inside another query. Subqueries can be used in the SELECT, WHERE, INSERT, UPDATE, or DELETE clauses. The subquery executes first and its results are then used by the outer query. There are three types of subqueries: single row, multiple row, and multiple column. Single row subqueries use comparison operators like =, <, > and return one row. Multiple row subqueries use operators like IN, ANY, ALL and return multiple rows. Multiple column subqueries compare more than one column between the outer and inner queries.
The document provides examples of SQL statements used to create database objects like tables, users, schemas, procedures, and triggers in Oracle/PLSQL. It includes the CREATE statements to create a database, tablespace, user, schema, procedure, function, role, and trigger. It also includes examples of GRANT, REVOKE, and ALTER statements to manage privileges and roles.
Oracle - Program with PL/SQL - Lession 10Thuan Nguyen
Functions allow users to define reusable blocks of code that can return values. Functions are created using the CREATE FUNCTION syntax and return a single value. They can be invoked from SQL statements and PL/SQL code. Functions must contain a RETURN statement and only accept parameters and return types that are valid SQL data types. Procedures are similar but do not return values and are used to perform actions rather than compute values.
Oracle - Program with PL/SQL - Lession 09Thuan Nguyen
This document discusses procedures in PL/SQL, including:
1. How to create procedures using the CREATE PROCEDURE statement and define parameters.
2. The different parameter modes: IN, OUT, and IN OUT.
3. How to handle exceptions within procedures.
4. How to invoke procedures from other procedures, scripts, or applications.
5. Best practices for developing reusable procedures.
Oracle - Program with PL/SQL - Lession 03Thuan Nguyen
This document discusses interacting with Oracle Server objects through PL/SQL. It covers:
1. Writing SELECT, DML, and transaction control statements in PL/SQL to extract, modify and manage data.
2. Using implicit cursors and attributes to check outcomes of SQL statements.
3. Best practices for naming conventions to avoid ambiguities between local and database identifiers.
The document contains examples of PL/SQL blocks and procedures to perform various operations like checking if a year is a leap year, calculating employee bonuses based on salary, retrieving employee data using cursors, updating job titles in a package, and validating department IDs when adding new employees. It demonstrates how to write PL/SQL code to query and manipulate database tables, handle exceptions, define functions and procedures, and group related code into packages.
Oracle - Program with PL/SQL - Lession 01Thuan Nguyen
This document discusses declaring and using variables in PL/SQL blocks. It covers declaring scalar variables like numbers, dates, strings, and booleans. It also discusses composite variables, reference variables, and LOB variables. It explains initializing variables, naming conventions, and using the %TYPE attribute. It describes using DBMS_OUTPUT to display output and bind variables to pass values between PL/SQL and SQL*Plus. The overall goal is to teach how to declare variables, execute blocks, and handle exceptions when programming in PL/SQL.
Oracle - Program with PL/SQL - Lession 14Thuan Nguyen
This document provides an overview of several Oracle-supplied packages including DBMS_SQL, DBMS_DDL, DBMS_JOB, UTL_FILE, UTL_HTTP, and UTL_TCP. It describes how these packages can be used to write dynamic SQL, schedule jobs, generate text reports by writing to files, and make HTTP requests. The key goals are to enable extended database functionality and access to restricted SQL features from PL/SQL code. Specific functions and procedures of each package are demonstrated through examples.
Oracle - Program with PL/SQL - Lession 17Thuan Nguyen
This document discusses advanced concepts for creating and using database triggers in Oracle. It covers creating triggers on DDL statements, system events, and tables. Triggers can be used to enforce security, data integrity, referential integrity, event logging, and compute derived values. The document provides examples of triggers for these purposes and discusses best practices for managing triggers.
The document provides an overview of PL/SQL programming concepts including:
1. PL/SQL blocks can contain declaration, executable, and exception handling sections.
2. Variables can be declared and assigned values using PL/SQL expressions.
3. SQL statements like INSERT, UPDATE, DELETE and SELECT can be used within PL/SQL blocks to manipulate database data.
The document discusses stored procedures and embedded SQL. Stored procedures allow functions to be stored on the database server and reduce network traffic by being invoked multiple times. They can be written in languages like SQL, C, or Java. Embedded SQL is used to interface SQL with a host programming language by embedding SQL statements directly into program code using syntax like EXEC SQL.
The document discusses functions and stored procedures in SQL. Functions are logical grouped SQL/PL statements that perform a specific task and return a value, while stored procedures perform a specific task without returning a value. The document provides examples of creating simple SQL functions that return values and a stored procedure that updates employee salaries and bonuses.
The document discusses functions and stored procedures in SQL. Functions are logical grouped SQL/PL statements that perform a specific task and return a value, while stored procedures perform a specific task without returning a value. The document provides examples of creating simple SQL functions that return values and a stored procedure that updates employee salaries and bonuses.
Procedures and functions are named PL/SQL blocks that perform specific tasks. Procedures can return values using OUT and IN OUT parameters but are not required to, while functions must return a value of a specified datatype. Procedures are executed using EXECUTE or within other procedures, while functions can also be used in SELECT statements. Parameters can be used to pass values into and return values from both procedures and functions.
Oracle - Program with PL/SQL - Lession 05Thuan Nguyen
This document discusses composite data types in PL/SQL including records, INDEX BY tables, and tables of records. It provides examples of how to create each type, use the %ROWTYPE attribute to define records based on database tables, and demonstrates various methods for accessing and manipulating data in INDEX BY tables including COUNT, EXISTS, DELETE and TRIM. The key concepts covered are how to define and work with composite data structures in PL/SQL to efficiently retrieve and process sets of related data.
This document provides an overview of PL/SQL (Embedded SQL) including its basic constructs such as anonymous blocks, procedures, functions, packages, triggers, and cursors. It discusses the benefits of PL/SQL in combining the power of SQL with programming constructs like loops and conditional statements. Examples are provided for each construct to demonstrate their usage.
This document discusses various ways to customize SQL*Plus and produce more readable output, including:
1) Using substitution variables to prompt for input and dynamically alter queries, reports, and file names.
2) Defining variables with DEFINE and ACCEPT and passing values between SQL statements.
3) Customizing the SQL*Plus environment with SET commands and verifying settings with SHOW.
This document provides guidelines for PL/SQL coding conventions. It discusses naming conventions, coding style and formatting, commenting practices, and best practices for literals, data types, flow control, exception handling, and dynamic SQL. Specific recommendations include using meaningful names, consistent indentation, commenting blocks for views and triggers, avoiding hardcoded values, anchoring variables to types, always labeling loops, and using bind variables in dynamic SQL.
This document provides tips for optimizing SQL queries to improve performance. Some key recommendations include:
1) Select only necessary columns instead of using SELECT * to reduce overhead
2) Use EXISTS, IN, and joins appropriately depending on where filter criteria is specified
3) Minimize subqueries and try to rewrite queries using joins when possible
4) Be cautious of conditions in the WHERE clause to ensure optimal execution order
This document discusses combinational circuits and provides examples of half adders and full adders. It defines combinational circuits as those whose outputs only depend on the current inputs. A half adder is described as having two inputs (A and B) and two outputs (sum and carry), which can add two single bits. Its truth table and logic diagram using an XOR gate and AND gate are shown. A full adder handles three inputs (A, B, and a carry input) and produces a sum and carry output based on its truth table.
The document discusses different number systems used in digital electronics, including binary, decimal, octal, and hexadecimal. It provides examples and explanations of how to convert between these number systems. In particular, it outlines the process for converting binary numbers to decimal numbers by multiplying each bit by its place value weight and summing the results. This includes approaches for fractional binary numbers and mixed binary numbers containing both integer and fractional parts.
This document discusses different types of multiplexers, including 2x1, 4x1, and 8x1 multiplexers. It provides the block diagram and truth table for each type of multiplexer. A 2x1 multiplexer has 2 inputs, 1 selection line, and 1 output. A 4x1 multiplexer has 4 inputs, 2 selection lines, and 1 output. An 8x1 multiplexer has 8 inputs, 3 selection lines, and 1 output. The logical expressions and circuits for each type of multiplexer are also provided.
Logic gates are basic building blocks of digital circuits and systems. Common logic gates include AND, OR, NOT, NAND, NOR, XOR, and XNOR gates. AND gates output 1 only if all inputs are 1, while OR gates output 1 if any input is 1. NOT gates output the inverse of the single input. NAND and NOR gates are combinations of AND/OR with NOT gates. XOR and XNOR gates output 1 only if inputs are both the same or different respectively.
The document discusses Karnaugh maps, which are a graphical technique for simplifying boolean functions. A K-map is a diagram with squares that each represent minterms or maxterms. Variables are represented along rows and columns. Groups of 1s can be combined according to grouping rules to simplify boolean expressions. The example shows a 2-variable K-map used to minimize the boolean expression XY' + X'Y + X'Y' to X' + Y'. K-maps allow boolean functions to be reduced more easily than boolean algebra.
The document discusses rules for minimizing Boolean functions using K-maps. It explains that K-maps are used to graphically represent Boolean functions according to the number of variables. Values are filled in the K-map and grouped based on several rules: groups must contain only 0s or 1s but not both; groups can overlap; groups must contain a power of 2 cells and be horizontal or vertical only; groups should be as large as possible with fewest groups overall. Examples are provided to illustrate opposite and corner grouping.
The half subtractor is a digital circuit that subtracts two single bit binary numbers and outputs the difference and borrow. It contains two inputs, A and B, and two outputs, Diff and Borrow. The Diff output is the difference of A and B, calculated as A XOR B. The Borrow output is 1 only when A is 1 and B is 0, calculated as A'B. The full subtractor expands on this to subtract three 1-bit numbers by adding a third input, Borrowin, and producing Diff and Borrow outputs based on all input combinations.
The document discusses Gray code, which is a binary numbering system where two successive numbers differ in only one bit. This reduces switching errors during transitions between numbers. Gray code is used in digital communications and applications where normal binary could produce errors. The document provides examples to show how decimal numbers convert to binary and Gray code. In binary, more bits may change between numbers, while Gray code ensures only one bit changes.
The document provides information about Prof. Neeraj Bhargava and Mrs. Pooja Dixit who work in the Department of Computer Science in the School of Engineering & System Sciences at MDS University in Ajmer, Rajasthan.
This document discusses encoders and provides examples of 4-to-2 and 8-to-3 line encoders. It defines an encoder as a combinational circuit that performs the reverse operation of a decoder, with a maximum of 2n input lines and n output lines. Truth tables and logic circuits are given for 4-to-2 and 8-to-3 line encoders. Uses of encoders include converting decimal to binary numbers to perform binary operations like addition and subtraction in digital systems.
This document discusses demultiplexers, which are combinational circuits with one input and multiple outputs. It describes 1x2 and 1x4 demultiplexers specifically. For a 1x2 demultiplexer, there are two outputs, one selection line, and a single input. The input is directed to one of the two outputs based on the selection line value. A 1x4 demultiplexer has four outputs, two selection lines, and one input. The input is directed to one of the four outputs based on the combination of values on the two selection lines. Block diagrams and truth tables are provided to illustrate the functionality of 1x2 and 1x4 demultiplexers.
The document discusses DeMorgan's theorems, which state that a NOR gate is logically equivalent to an AND gate with inverted inputs, and a NAND gate is equivalent to an OR gate with inverted inputs. DeMorgan's theorems are important in digital logic, as they allow basic gates like NAND and NOR to be used to implement more complex logic functions. The theorems are verified through truth tables.
This document discusses combinational circuits and provides examples of half adders and full adders. It defines combinational circuits as those whose outputs only depend on the current inputs. A half adder is described as having two inputs (A and B) and two outputs (sum and carry), which can add two single bits. Its truth table and logic diagram using an XOR gate and AND gate are shown. A full adder handles three inputs (A, B, Cin) to add two bits along with a carry bit, with outputs of sum and carry out. Its block diagram and truth table are presented.
The document discusses Boolean algebra, which uses binary numbers (0 and 1) to analyze and simplify digital logic circuits. It was invented by George Boole in 1854. The document outlines several important rules of Boolean algebra, including commutative, associative, distributive, identity, idempotent, complement, and double negation laws. It also discusses de Morgan's theorem and finding the dual of Boolean expressions.
Binary multiplication and division work similarly to decimal operations but use only 0s and 1s. For binary multiplication, there are four basic rules and the process involves multiplying each bit of one number by the other number and summing the results. Examples show multiplying 1010 x 101 to get 10100 and comparing the binary result to its decimal equivalent. Binary division uses long division to divide strings of binary digits. Examples demonstrate dividing several binary numbers by powers of two.
Binary arithmetic is essential for digital computers and systems. It includes four rules for binary addition and subtraction. Binary addition examples show that adding two 1s results in a 1 in the next column with a carry of 1. Binary subtraction uses borrowing to subtract binary numbers, as shown through several examples.
This document provides an overview of computer organization. It defines computer organization as how the various parts of a computer are organized and work together. It describes the main components of a computer like the CPU, memory (RAM and cache), and buses. It also discusses number systems like binary, decimal, octal, and hexadecimal. Additional topics covered include Gray codes, Boolean algebra, logic gates, and flip flops.
A decoder is a logic circuit that takes binary input and provides an output based on the input. It performs the reverse operation of an encoder. There are different types of decoders including a 2 to 4 line decoder and a 3 to 8 line decoder. A 2 to 4 line decoder has 3 inputs (A0, A1, E) and 4 outputs (Y0, Y1, Y2, Y3). It uses AND gates to activate one output based on the input. A 3 to 8 line decoder has 3 inputs (A0, A1, A2), 8 outputs (Y0-Y7), and an enable input. It uses AND gates and logic expressions to activate one of the 8 outputs based on the
The document discusses three address code, which is an intermediate code used by optimizing compilers. Three address code breaks expressions down into separate instructions that use at most three operands. Each instruction performs an assignment or binary operation on the operands. The code is implemented using quadruple, triple, or indirect triple representations. Quadruple representation stores each instruction in four fields for the operator, two operands, and result. Triple avoids temporaries by making two instructions. Indirect triple uses pointers to freely reorder subexpressions.
The Cyrus-Beck algorithm is used for line clipping against non-rectangular convex polygons. It uses a parametric equation to find the intersection point of the line with the polygon boundary. The algorithm calculates the time values for the line endpoints at each polygon edge, then uses those times in the parametric equation to find the clipped line segment P'0 and P'1 that is visible within the polygon clipping window.
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsesushreesangita003
what is pulse ?
Purpose
physiology and Regulation of pulse
Characteristics of pulse
factors affecting pulse
Sites of pulse
Alteration of pulse
for BSC Nursing 1st semester
for Gnm Nursing 1st year
Students .
vitalsign
Exploring Substances:
Acidic, Basic, and
Neutral
Welcome to the fascinating world of acids and bases! Join siblings Ashwin and
Keerthi as they explore the colorful world of substances at their school's
National Science Day fair. Their adventure begins with a mysterious white paper
that reveals hidden messages when sprayed with a special liquid.
In this presentation, we'll discover how different substances can be classified as
acidic, basic, or neutral. We'll explore natural indicators like litmus, red rose
extract, and turmeric that help us identify these substances through color
changes. We'll also learn about neutralization reactions and their applications in
our daily lives.
by sandeep swamy
Title: A Quick and Illustrated Guide to APA Style Referencing (7th Edition)
This visual and beginner-friendly guide simplifies the APA referencing style (7th edition) for academic writing. Designed especially for commerce students and research beginners, it includes:
✅ Real examples from original research papers
✅ Color-coded diagrams for clarity
✅ Key rules for in-text citation and reference list formatting
✅ Free citation tools like Mendeley & Zotero explained
Whether you're writing a college assignment, dissertation, or academic article, this guide will help you cite your sources correctly, confidently, and consistent.
Created by: Prof. Ishika Ghosh,
Faculty.
📩 For queries or feedback: [email protected]
The Pala kings were people-protectors. In fact, Gopal was elected to the throne only to end Matsya Nyaya. Bhagalpur Abhiledh states that Dharmapala imposed only fair taxes on the people. Rampala abolished the unjust taxes imposed by Bhima. The Pala rulers were lovers of learning. Vikramshila University was established by Dharmapala. He opened 50 other learning centers. A famous Buddhist scholar named Haribhadra was to be present in his court. Devpala appointed another Buddhist scholar named Veerdeva as the vice president of Nalanda Vihar. Among other scholars of this period, Sandhyakar Nandi, Chakrapani Dutta and Vajradatta are especially famous. Sandhyakar Nandi wrote the famous poem of this period 'Ramcharit'.
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schoolsdogden2
Algebra 1 is often described as a “gateway” class, a pivotal moment that can shape the rest of a student’s K–12 education. Early access is key: successfully completing Algebra 1 in middle school allows students to complete advanced math and science coursework in high school, which research shows lead to higher wages and lower rates of unemployment in adulthood.
Learn how The Atlanta Public Schools is using their data to create a more equitable enrollment in middle school Algebra classes.
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetSritoma Majumder
Introduction
All the materials around us are made up of elements. These elements can be broadly divided into two major groups:
Metals
Non-Metals
Each group has its own unique physical and chemical properties. Let's understand them one by one.
Physical Properties
1. Appearance
Metals: Shiny (lustrous). Example: gold, silver, copper.
Non-metals: Dull appearance (except iodine, which is shiny).
2. Hardness
Metals: Generally hard. Example: iron.
Non-metals: Usually soft (except diamond, a form of carbon, which is very hard).
3. State
Metals: Mostly solids at room temperature (except mercury, which is a liquid).
Non-metals: Can be solids, liquids, or gases. Example: oxygen (gas), bromine (liquid), sulphur (solid).
4. Malleability
Metals: Can be hammered into thin sheets (malleable).
Non-metals: Not malleable. They break when hammered (brittle).
5. Ductility
Metals: Can be drawn into wires (ductile).
Non-metals: Not ductile.
6. Conductivity
Metals: Good conductors of heat and electricity.
Non-metals: Poor conductors (except graphite, which is a good conductor).
7. Sonorous Nature
Metals: Produce a ringing sound when struck.
Non-metals: Do not produce sound.
Chemical Properties
1. Reaction with Oxygen
Metals react with oxygen to form metal oxides.
These metal oxides are usually basic.
Non-metals react with oxygen to form non-metallic oxides.
These oxides are usually acidic.
2. Reaction with Water
Metals:
Some react vigorously (e.g., sodium).
Some react slowly (e.g., iron).
Some do not react at all (e.g., gold, silver).
Non-metals: Generally do not react with water.
3. Reaction with Acids
Metals react with acids to produce salt and hydrogen gas.
Non-metals: Do not react with acids.
4. Reaction with Bases
Some non-metals react with bases to form salts, but this is rare.
Metals generally do not react with bases directly (except amphoteric metals like aluminum and zinc).
Displacement Reaction
More reactive metals can displace less reactive metals from their salt solutions.
Uses of Metals
Iron: Making machines, tools, and buildings.
Aluminum: Used in aircraft, utensils.
Copper: Electrical wires.
Gold and Silver: Jewelry.
Zinc: Coating iron to prevent rusting (galvanization).
Uses of Non-Metals
Oxygen: Breathing.
Nitrogen: Fertilizers.
Chlorine: Water purification.
Carbon: Fuel (coal), steel-making (coke).
Iodine: Medicines.
Alloys
An alloy is a mixture of metals or a metal with a non-metal.
Alloys have improved properties like strength, resistance to rusting.
How to manage Multiple Warehouses for multiple floors in odoo point of saleCeline George
The need for multiple warehouses and effective inventory management is crucial for companies aiming to optimize their operations, enhance customer satisfaction, and maintain a competitive edge.
A measles outbreak originating in West Texas has been linked to confirmed cases in New Mexico, with additional cases reported in Oklahoma and Kansas. The current case count is 795 from Texas, New Mexico, Oklahoma, and Kansas. 95 individuals have required hospitalization, and 3 deaths, 2 children in Texas and one adult in New Mexico. These fatalities mark the first measles-related deaths in the United States since 2015 and the first pediatric measles death since 2003.
The YSPH Virtual Medical Operations Center Briefs (VMOC) were created as a service-learning project by faculty and graduate students at the Yale School of Public Health in response to the 2010 Haiti Earthquake. Each year, the VMOC Briefs are produced by students enrolled in Environmental Health Science Course 581 - Public Health Emergencies: Disaster Planning and Response. These briefs compile diverse information sources – including status reports, maps, news articles, and web content– into a single, easily digestible document that can be widely shared and used interactively. Key features of this report include:
- Comprehensive Overview: Provides situation updates, maps, relevant news, and web resources.
- Accessibility: Designed for easy reading, wide distribution, and interactive use.
- Collaboration: The “unlocked" format enables other responders to share, copy, and adapt seamlessly. The students learn by doing, quickly discovering how and where to find critical information and presenting it in an easily understood manner.
1. Prof. Neeraj Bhargava
Pooja Dixit
Department of Computer Science
School of Engineering & System Science
MDS, University Ajmer, Rajasthan, India
1
2. Like a procedure, a function can accept multiple
parameters, and the data type of the return value
must be declared in the header of the function.
CREATE [OR REPLACE] FUNCTION <function_name>
(<parameter1_name> <mode> <data type>,
<parameter2_name> <mode> <data type>, ...)
RETURN <function return value data type> {AS|IS}
<Variable declarations>
BEGIN
Executable Commands
RETURN (return_value);
. . .
[EXCEPTION
Exception handlers]
END;
The general syntax of the RETURN statement is:
RETURN <expression>;
2
3. CREATE OR REPLACE FUNCTION RetrieveSalary
RETURN NUMBER
IS
v_Salary NUMBER(10,2);
BEGIN
SELECT Salary INTO v_Salary
FROM Employee
WHERE EmployeeID = '01885';
RETURN v_Salary;
END RetrieveSalary;
/
3
5. PL/SQL Example illustrates a function that has a
single IN parameter and that returns a VARCHAR2
data type.
CREATE OR REPLACE FUNCTION FullName (p_EmployeeID IN
employee.EmployeeID%TYPE)
RETURN VARCHAR2 IS
v_FullName VARCHAR2(100);
v_FirstName employee.FirstName%TYPE;
v_MiddleName employee.MiddleName%TYPE;
v_LastName employee.LastName%TYPE;
BEGIN
SELECT FirstName, MiddleName, LastName INTO
v_FirstName, v_MiddleName, v_LastName
FROM Employee
WHERE EmployeeID = p_EmployeeID;
5
6. -- Store last name, comma and blank and first name
to variable
v_FullName := v_LastName||', '||v_FirstName;
-- Check for existence of a middle name
IF LENGTH(v_MiddleName) > 0 THEN
v_FullName := v_FullName|| ' '
||SUBSTR(v_MiddleName,1,1)||'.';
END IF;
RETURN v_FullName;
END FullName;
/
6
7. A simple SELECT statement executed
within SQL*Plus can return the full name
for any employee identifier value as
shown in PL/SQL Example.
/* PL SQL Example 13.10 */
SQL> SELECT FullName('01885')
2 FROM Employee
3 WHERE EmployeeID = '01885';
FULLNAME('01885')
-----------------------------------
Bock, Douglas B.
7
8. SQL> SELECT FullName(EmployeeID)
2 FROM Employee
3 ORDER BY FullName(EmployeeID);
FULLNAME(EMPLOYEEID)
-------------------------------------
Adams, Adam A.
Barlow, William A.
Becker, Robert B.
Becker, Roberta G.
Bock, Douglas B.
... more rows will display
8
9. As with the DROP PROCEDURE statement,
the DROP FUNCTION <functionName> is
also straight-forward.
As with DROP PROCEDURE, the DROP
FUNCTION statement is a DDL command
that causes execution of an implicit
commit prior to and immediately after
the command.
SQL> DROP FUNCTION FullName;
Function dropped.
9