The document provides an overview of database concepts and features in Oracle, including fundamentals like data grouping and relationships, as well as operations on tables like insert, update, delete. It also covers queries with filters, joins, and aggregations, as well as other objects like views, sequences, indexes, triggers, and stored procedures. The document is intended as training material for the Oracle database.
This presentation is on SQL constraints. This presentation was used by me in my YouTube vlog on SQL constraints. Vlog link: https://youtu.be/E94YFmATqb4
Data Definition Language (DDL), Data Definition Language (DDL), Data Manipulation Language (DML) , Transaction Control Language (TCL) , Data Control Language (DCL) - , SQL Constraints
This presentation deals with the fundamentals of SQL, Installation and Database concepts. Presented by our team in Alphalogic Inc: https://www.alphalogicinc.com/
This presentation is on SQL constraints. This presentation was used by me in my YouTube vlog on SQL constraints. Vlog link: https://youtu.be/E94YFmATqb4
Data Definition Language (DDL), Data Definition Language (DDL), Data Manipulation Language (DML) , Transaction Control Language (TCL) , Data Control Language (DCL) - , SQL Constraints
This presentation deals with the fundamentals of SQL, Installation and Database concepts. Presented by our team in Alphalogic Inc: https://www.alphalogicinc.com/
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.
With the introduction of SQL Server 2012 data developers have new ways to interact with their databases. This session will review the powerful new analytic windows functions, new ways to generate numeric sequences and new ways to page the results of our queries. Other features that will be discussed are improvements in error handling and new parsing and concatenating features.
Data Warehouse:
A physical repository where relational data are specially organized to provide enterprise-wide, cleansed data in a standardized format.
Reconciled data: detailed, current data intended to be the single, authoritative source for all decision support.
Extraction:
The Extract step covers the data extraction from the source system and makes it accessible for further processing. The main objective of the extract step is to retrieve all the required data from the source system with as little resources as possible.
Data Transformation:
Data transformation is the component of data reconcilation that converts data from the format of the source operational systems to the format of enterprise data warehouse.
Data Loading:
During the load step, it is necessary to ensure that the load is performed correctly and with as little resources as possible. The target of the Load process is often a database. In order to make the load process efficient, it is helpful to disable any constraints and indexes before the load and enable them back only after the load completes. The referential integrity needs to be maintained by ETL tool to ensure consistency.
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.
With the introduction of SQL Server 2012 data developers have new ways to interact with their databases. This session will review the powerful new analytic windows functions, new ways to generate numeric sequences and new ways to page the results of our queries. Other features that will be discussed are improvements in error handling and new parsing and concatenating features.
Data Warehouse:
A physical repository where relational data are specially organized to provide enterprise-wide, cleansed data in a standardized format.
Reconciled data: detailed, current data intended to be the single, authoritative source for all decision support.
Extraction:
The Extract step covers the data extraction from the source system and makes it accessible for further processing. The main objective of the extract step is to retrieve all the required data from the source system with as little resources as possible.
Data Transformation:
Data transformation is the component of data reconcilation that converts data from the format of the source operational systems to the format of enterprise data warehouse.
Data Loading:
During the load step, it is necessary to ensure that the load is performed correctly and with as little resources as possible. The target of the Load process is often a database. In order to make the load process efficient, it is helpful to disable any constraints and indexes before the load and enable them back only after the load completes. The referential integrity needs to be maintained by ETL tool to ensure consistency.
Join us and learn how to use Addins for some simple queries and data loads.
A brief overview of Lawson MS Addins. The presentation covers:
Introduction to Lawson Add-Ins for Microsoft Office
Navigation and logging in to the Addins
Query Wizard
Inqueries
Uploads
Advanced Tools
Troubleshooting
Optimizing Query is very important to improve the performance of the database. Analyse query using query execution plan, create cluster index and non-cluster index and create indexed views
Key Trends Shaping the Future of Infrastructure.pdfCheryl Hung
Keynote at DIGIT West Expo, Glasgow on 29 May 2024.
Cheryl Hung, ochery.com
Sr Director, Infrastructure Ecosystem, Arm.
The key trends across hardware, cloud and open-source; exploring how these areas are likely to mature and develop over the short and long-term, and then considering how organisations can position themselves to adapt and thrive.
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Albert Hoitingh
In this session I delve into the encryption technology used in Microsoft 365 and Microsoft Purview. Including the concepts of Customer Key and Double Key Encryption.
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...DanBrown980551
Do you want to learn how to model and simulate an electrical network from scratch in under an hour?
Then welcome to this PowSyBl workshop, hosted by Rte, the French Transmission System Operator (TSO)!
During the webinar, you will discover the PowSyBl ecosystem as well as handle and study an electrical network through an interactive Python notebook.
PowSyBl is an open source project hosted by LF Energy, which offers a comprehensive set of features for electrical grid modelling and simulation. Among other advanced features, PowSyBl provides:
- A fully editable and extendable library for grid component modelling;
- Visualization tools to display your network;
- Grid simulation tools, such as power flows, security analyses (with or without remedial actions) and sensitivity analyses;
The framework is mostly written in Java, with a Python binding so that Python developers can access PowSyBl functionalities as well.
What you will learn during the webinar:
- For beginners: discover PowSyBl's functionalities through a quick general presentation and the notebook, without needing any expert coding skills;
- For advanced developers: master the skills to efficiently apply PowSyBl functionalities to your real-world scenarios.
JMeter webinar - integration with InfluxDB and GrafanaRTTS
Watch this recorded webinar about real-time monitoring of application performance. See how to integrate Apache JMeter, the open-source leader in performance testing, with InfluxDB, the open-source time-series database, and Grafana, the open-source analytics and visualization application.
In this webinar, we will review the benefits of leveraging InfluxDB and Grafana when executing load tests and demonstrate how these tools are used to visualize performance metrics.
Length: 30 minutes
Session Overview
-------------------------------------------
During this webinar, we will cover the following topics while demonstrating the integrations of JMeter, InfluxDB and Grafana:
- What out-of-the-box solutions are available for real-time monitoring JMeter tests?
- What are the benefits of integrating InfluxDB and Grafana into the load testing stack?
- Which features are provided by Grafana?
- Demonstration of InfluxDB and Grafana using a practice web application
To view the webinar recording, go to:
https://www.rttsweb.com/jmeter-integration-webinar
GraphRAG is All You need? LLM & Knowledge GraphGuy Korland
Guy Korland, CEO and Co-founder of FalkorDB, will review two articles on the integration of language models with knowledge graphs.
1. Unifying Large Language Models and Knowledge Graphs: A Roadmap.
https://arxiv.org/abs/2306.08302
2. Microsoft Research's GraphRAG paper and a review paper on various uses of knowledge graphs:
https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/
DevOps and Testing slides at DASA ConnectKari Kakkonen
My and Rik Marselis slides at 30.5.2024 DASA Connect conference. We discuss about what is testing, then what is agile testing and finally what is Testing in DevOps. Finally we had lovely workshop with the participants trying to find out different ways to think about quality and testing in different parts of the DevOps infinity loop.
Elevating Tactical DDD Patterns Through Object CalisthenicsDorra BARTAGUIZ
After immersing yourself in the blue book and its red counterpart, attending DDD-focused conferences, and applying tactical patterns, you're left with a crucial question: How do I ensure my design is effective? Tactical patterns within Domain-Driven Design (DDD) serve as guiding principles for creating clear and manageable domain models. However, achieving success with these patterns requires additional guidance. Interestingly, we've observed that a set of constraints initially designed for training purposes remarkably aligns with effective pattern implementation, offering a more ‘mechanical’ approach. Let's explore together how Object Calisthenics can elevate the design of your tactical DDD patterns, offering concrete help for those venturing into DDD for the first time!
Transcript: Selling digital books in 2024: Insights from industry leaders - T...BookNet Canada
The publishing industry has been selling digital audiobooks and ebooks for over a decade and has found its groove. What’s changed? What has stayed the same? Where do we go from here? Join a group of leading sales peers from across the industry for a conversation about the lessons learned since the popularization of digital books, best practices, digital book supply chain management, and more.
Link to video recording: https://bnctechforum.ca/sessions/selling-digital-books-in-2024-insights-from-industry-leaders/
Presented by BookNet Canada on May 28, 2024, with support from the Department of Canadian Heritage.
Generating a custom Ruby SDK for your web service or Rails API using Smithyg2nightmarescribd
Have you ever wanted a Ruby client API to communicate with your web service? Smithy is a protocol-agnostic language for defining services and SDKs. Smithy Ruby is an implementation of Smithy that generates a Ruby SDK using a Smithy model. In this talk, we will explore Smithy and Smithy Ruby to learn how to generate custom feature-rich SDKs that can communicate with any web service, such as a Rails JSON API.
Epistemic Interaction - tuning interfaces to provide information for AI supportAlan Dix
Paper presented at SYNERGY workshop at AVI 2024, Genoa, Italy. 3rd June 2024
https://alandix.com/academic/papers/synergy2024-epistemic/
As machine learning integrates deeper into human-computer interactions, the concept of epistemic interaction emerges, aiming to refine these interactions to enhance system adaptability. This approach encourages minor, intentional adjustments in user behaviour to enrich the data available for system learning. This paper introduces epistemic interaction within the context of human-system communication, illustrating how deliberate interaction design can improve system understanding and adaptation. Through concrete examples, we demonstrate the potential of epistemic interaction to significantly advance human-computer interaction by leveraging intuitive human communication strategies to inform system design and functionality, offering a novel pathway for enriching user-system engagements.
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualityInflectra
In this insightful webinar, Inflectra explores how artificial intelligence (AI) is transforming software development and testing. Discover how AI-powered tools are revolutionizing every stage of the software development lifecycle (SDLC), from design and prototyping to testing, deployment, and monitoring.
Learn about:
• The Future of Testing: How AI is shifting testing towards verification, analysis, and higher-level skills, while reducing repetitive tasks.
• Test Automation: How AI-powered test case generation, optimization, and self-healing tests are making testing more efficient and effective.
• Visual Testing: Explore the emerging capabilities of AI in visual testing and how it's set to revolutionize UI verification.
• Inflectra's AI Solutions: See demonstrations of Inflectra's cutting-edge AI tools like the ChatGPT plugin and Azure Open AI platform, designed to streamline your testing process.
Whether you're a developer, tester, or QA professional, this webinar will give you valuable insights into how AI is shaping the future of software delivery.
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Tobias Schneck
As AI technology is pushing into IT I was wondering myself, as an “infrastructure container kubernetes guy”, how get this fancy AI technology get managed from an infrastructure operational view? Is it possible to apply our lovely cloud native principals as well? What benefit’s both technologies could bring to each other?
Let me take this questions and provide you a short journey through existing deployment models and use cases for AI software. On practical examples, we discuss what cloud/on-premise strategy we may need for applying it to our own infrastructure to get it to work from an enterprise perspective. I want to give an overview about infrastructure requirements and technologies, what could be beneficial or limiting your AI use cases in an enterprise environment. An interactive Demo will give you some insides, what approaches I got already working for real.
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Oracle Course
1. Softsmith Infotech
Oracle
Table of contents
• What is a database?
• Fundamentals of database
• Table management
• Inserting data
• Updating data
• Deleting data
• Query management
– Simple queries
– Aggregate functions
– String manipulation
– Date manipulation
– Sub queries
– Equi join
– Outer join
– Self join
– Union, intersection, minus
• View management
• Sequence Management
• Index Management
• Constraints Management
• Triggers
• Stored procedures
• Exceptions
• Sequences
• Constraints
• DBA features
2. Softsmith Infotech
Fundamentals of database
• Applications are used by end users and they enter a
group of raw data
• This data is later collated and used by management to
arrive at meaningful information
• Before we first understand the technical aspects of
database, we must understand the business data clearly
• Rule 1: In any application, first identify raw data
• Rule 2: Group related data and associate data type and
size (summary and detail)
• Rule 3: Create a set of samples for each of these groups
for better clarity
• Rule 4: Identify unique and non-unique data
• Rule 5: Identify the relationship between the data
3. Softsmith Infotech
Raw Data and Grouping
• Let us take railways reservation as the application
• The raw data could be
– Passenger name
– Age
– Date of journey
– Train name
– From station
– To Station
– PNR number
– Route codes
– Stations covered in the route
• The data groups would be
• Train related data – train number, train name, route in which it is
running
• Station related data – station code, station name, station RMS
Pincode, station type (junction, station etc)
• Ticket related data – PNR Number, passenger name, date of
journey, set or berth, age, from station, to station, train code etc
4. Softsmith Infotech
Unique and non-unique data
• Unique data means a data that does not repeat
itself
• Station code is unique across country
• Train code is unique across country
• PNR number is unique across country
• Coach number is unique within a train, but not
unique across system
• Seat number is unique within a coach and train
• Passenger name is not unique
• Ticket price is not unique
5. Softsmith Infotech
Relationship between data
• One PNR number is associated with one train
code
• One PNR number is associated with one or
more passenger names
• One train code is associated with one or more
stations
• One train code is associated with one route code
• All relationships will fall under one-to-one, one-
to-many, many-to-one
• Many-to-many is a combinations of the above
• We need to identify the relationships between
the data to understand clearly the dependency
between data
6. Softsmith Infotech
Components of database
• A physical database installation in a machine
has the following logical entities
– Database (group of tables)
– Tables (that contain data)
– Views
– Index files
– Triggers
– Sequences
– Stored procedures (packages, functions, procedures)
– Users to access the tables
7. Softsmith Infotech
Table Management
• Create, alter and drop are the operations on a table
• To create a table, we need to supply the table name, column names
and attributes, for each column whether it is a null or not null
column, what is the default value for that column, whether the
column is primary key or not
• CREATE TABLE is the command to be used
• When we want to add a column to a table or to change the attributes
of a column in a table, we use ALTER TABLE command
• We cannot remove a column from a table
• If we want to remove the table from the database, we need to use
DROP TABLE command
• When a table is dropped, the data is also lost
• Dual is a default built-in table to do any on the fly calculations
• The usual column data types will be number, varchar2, char, date
8. Softsmith Infotech
Inserting Data
• INSERT operation into a table requires data to
be entered
• We can insert all column values or selective
column values
• When insert is successful, we will get a success
message
• When we try to enter a duplicate value into a
table, we will get duplicate constraint violation
message
• During insert, if we do not supply a value, the
default value for a column is used to fill up that
column
• We can insert data only to one table at a time
9. Softsmith Infotech
Update Operation
• When we want to modify data in a table, we can use
UPDATE command
• We can update only one table at a time
• When we update we need to use the SET clause to set
the values for a particular column
• During update also, if try to update a record, such that it
results in duplicate record, we will get a unique
constraint violation message
• If we use update command without WHERE clause, it
will update all the records
• It is not recommended to update, without giving a where
clause
• Examples
– Update employee set salary = 1000
– Update employee set salary = 2000 where designation =
‘SALESMANAGER’
10. Softsmith Infotech
Delete Operation
• When we want to remove data in a table, we can
use DELETE command
• We can delete only one table at a time
• We cannot delete a particular column; it is
always one row or multiple rows
• If we use delete command without WHERE
clause, it will delete all the records
• It is not recommended to delete, without giving a
where clause
• Example
– delete from employee
– Delete from employee where designation =
‘HRMANAGER’
11. Softsmith Infotech
SELECT Queries
• When we want to retrieve data from a table, we
use SELECT clause
• Most of the times, testers use SELECT queries
only
• SELECT has a lot of variations and clauses.
Hence SELECT is a must for all testers
• SELECT queries can handle date and string
manipulation commands as well
• SELECT helps to filter, search and sort data
• SELECT helps to find out relationships in data
12. Softsmith Infotech
Simple query
• SELECT * from TRAINS
– this will get all columns in the table
• SELECT TRAIN_CODE, TRAIN_NAME from
TRAINS
– this will return only 2 columns from the table
• SELECT TRAIN_NAME from TRAINS WHERE
number_of_coaches > 15
– This is a simple filter
• SELECT TRAIN_NAME from TRAINS WHERE
number_of_coaches > 15 AND TRAIN_CODE <
100
– This is a complex filter
13. Softsmith Infotech
Aggregate functions
• Aggregate functions work on the whole set of
records
• SELECT max(salary) from EMPLOYEE
– this will get the maximum salary data from the table
• SELECT min(salary) from EMPLOYEE
– this will get the minimum salary data from the table
• SELECT avg(salary) from EMPLOYEE
– this will get the average salary data from the table
• SELECT count(*) from EMPLOYEE
– this will get the number of records in the table
• SELECT sum(salary) from EMPLOYEE
– this will get the sum of all salary data from the table
14. Softsmith Infotech
String/Numeric/Date Manipulation Functions
• Lower – this will convert to lower case
• Upper – this will convert to upper case
• Substr – this will return a portion of the string
• Soundex – will look for sounding matches
• Floor – will show the lower side value
• Ceil – will show the upper side value
• Round – will round off the number to the nearest value
• Sysdate – will show the current date
• Current_timestamp – will show the current timestamp
• To_date and to_char – to manipulate date formats
15. Softsmith Infotech
Operators
• We can use arithmetic operators like +, -, *, /
• Logical operators are AND, OR, NOT
• Open and close brackets are used to group
items
• % is used along with LIKE operator
• Where firstname LIKE ‘%raj%’ will search for raj
anywhere in firstname column
• Distinct is an operator on a column to fetch
distinct values present in all rows
• IN operator is used to provide a set of values in
the WHERE clause
• BETWEEN operator is used to provide a range
of values in the WHERE clause
16. Softsmith Infotech
SubQuery
• Sub query is query within a query
• This is used to ensure that the WHERE condition is
further getting values from another query
• Select employee_name, salary from employee where
designation = (select designation from positionmaster
where positioncategory like ‘%MANAGER%’)
• The innermost select is executed first and then the outer
select is executed
• In sub queries, if we use = in where condition, the
subquery must return only one value
• In sub queries, if we use IN clause in where condition,
the subquery can return more than one values
17. Softsmith Infotech
JOINs
• Joins are nothing but a cross product of one or
more tables
• Inner join is used to get records that match a
condition in all tables
• In joins we use alias to denote table names
• Outer join is used to get records from more than
one tables, irrespective of the condition match in
left or right table
• Example
– SELECT a.empname, b.projectname from employees
a, projects b where a.employeecode =
b.employeecode and b.projectstatus = ‘Active’
• To create outer join we use + sign to the left
table or right table
18. Softsmith Infotech
Union, Intersect, Minus
• Union is used to combine many SELECT
queries. The result will be all records fetched by
all queries. If 2 records match in 2 different
queries, it is printed once in the result
• Intersect is used to combine many SELECT
queries. The result will be the common records
between the 2 select queries
• Minus is used to find out the difference between
2 SELECT queries
• In all these cases, the columns selected must be
the same in all select statements
• We can use all these to find the referential
integrity of the database
19. Softsmith Infotech
Views
• A view is a virtual table
• A view is used to simplify a complex select
statement
• A view can bring multiple data from many tables
• For all query purposes, a view is treated as a
table
• Create View SalesPeople As Select
employeename from employees where
designation like ‘%SALES%’
• When we create views, our job to write complex
queries get reduced
20. Softsmith Infotech
Index Files, Transactions
• Index files are pointers to the exact location of a record
on the disk
• These help us to search faster. Hence a query executes
faster
• If we do not have index on a column, and we search
based on that column, it becomes sequential. The
performance will be poor
• Index can be unique or non-unique
• By using index files, search works as binary search
• When we do insert or update or delete, we can make
that permanent by issuing a COMMIT statement
• If we want to ignore the previous insert, update, delete
statements, we use ROLLBACK statement
21. Softsmith Infotech
Triggers
• Trigger is an automatic event that happens based on
insert or update or delete
• We cannot pass parameters to triggers
• A trigger can happen before or after the operation
• Create or replace trigger is used to get the trigger in
database
• :NEW.column or :OLD.column is used to retrieve internal
values when the triggers are fired
• Drop trigger is used to remove the trigger
• To test a trigger, first do the required insert or delete or
update operation on the primary table
• Do a select query on the other tables on which the
trigger operated
22. Softsmith Infotech
Stored Procedures
• These are executable code written in PLSQL
• These reside inside oracle
• We can write loops, conditions etc including exception handling
• This comes in 2 parts – package header and package body
• The package header contains procedures and function definitions
• The package body contains actual executable code of functions and
procedures
• Procedures and functions take parameters
• They must be explicitly executed and they are not automatic
• Before executing procedures, set serveroutput on
• Functions must return a value to the left hand side
• Usually functions are used when there is only one return value or
there is a true/false returns
• Inside stored procedures, people write any database queries as
required by application logic
• To execute, from the prompt, give
– exec packagename.procedurename(paramaters)
23. Softsmith Infotech
Exceptions
• Exceptions must be handled inside stored
procedures or triggers
• This will ensure that the code does not crash
• When Others is the generic exception
• SQLCODE and SQLERRM will hold the error
number and error text
• Usually no_data_found and dup_val_on_index
are checked in most of the places
24. Softsmith Infotech
Cursors
• When a stored procedure needs to retrieve only one
record, we use into clause in the select statement
• When the procedure needs to process a record set, we
use cursor
• Declare the cursor and provide the select statement
• Use OPEN, FETCH and CLOSE commands to access
the cursor
• Cursorname%notfound will be set to true if there are no
more records to fetch
• Cursorname%count will provide the number of records in
the cursor
25. Softsmith Infotech
Sequences
• Sequences are used to generate auto
increment values
• Use Create sequence command and
provide minimum, maximum, start and
increment values
• Sequcen.nextval will provide the next
sequence number
• This can be used in any insert statements
subsequently
26. Softsmith Infotech
Constraints
• Not Null is a constraint while creating a
table
• Primary Key is a constraint
• Foreign Key is a constraint
• Check is a constraint to ensure that a
column has only specified values
• Unique index is also a constraing
27. Softsmith Infotech
DBA Features
• This list gives only the features and not detailed
information
– Creating database
– Creating users
– Providing access rights to users across tables
– Backup and restore
– Crash recovery
– Replication
– Loading of bulk data
– Partitioning of data across disks