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.
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 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.
In DBMS (DataBase Management System), the relation algebra is important term to further understand the queries in SQL (Structured Query Language) database system. In it just give up the overview of operators in DBMS two of one method relational algebra used and another name is relational calculus.
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 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.
In DBMS (DataBase Management System), the relation algebra is important term to further understand the queries in SQL (Structured Query Language) database system. In it just give up the overview of operators in DBMS two of one method relational algebra used and another name is relational calculus.
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.
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 week's session is on SQL Views: what they are, how to create them, how to insert, update and delete data through them along with other key details to know!
Watch the video at:
http://www.aaronbuma.com/2016/01/views/
Using and Creating SQL Functions with Ammar Hassan Brohi.
String Functions
Numeric Functions
String / Number Conversion Functions
Group Functions
Date and Time Functions
Date Conversion Functions
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.
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 week's session is on SQL Views: what they are, how to create them, how to insert, update and delete data through them along with other key details to know!
Watch the video at:
http://www.aaronbuma.com/2016/01/views/
Using and Creating SQL Functions with Ammar Hassan Brohi.
String Functions
Numeric Functions
String / Number Conversion Functions
Group Functions
Date and Time Functions
Date Conversion Functions
Presented by,
Mr. Abhilash K
Database Architect, Livares Technologies
Introduction
About DBMS
A database management system (DBMS) is a software for
creating and managing databases. DBMS provides
users/programmers with a systematic way to create,
retrieve, update and manage data.
What is RDBMS
A type of DBMS in which the database is organized and
accessed according to the relationships between data
values. RDBMS are designed to take care of large amounts
of data and also the security of this data
This PPT will help to understand how learning happens in brain. How you can adjust your skill acquisition in the right way so that maximum output is obtained.
Baabtra.com has a solution to provide programming for kids in school. This is based on the CBSE curriculum of India. The main subjects covered are Mathematics and Physics.
99LMS is a mobile based comprehensive enterprise learning environment in which learning processes of a company can be managed and integrated. It ensures employees have the right skills by enabling course content management, providing classroom training and e-learning. Through the APIs, you can develop your resources before they join your company.
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.
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
"Impact of front-end architecture on development cost", Viktor TurskyiFwdays
I have heard many times that architecture is not important for the front-end. Also, many times I have seen how developers implement features on the front-end just following the standard rules for a framework and think that this is enough to successfully launch the project, and then the project fails. How to prevent this and what approach to choose? I have launched dozens of complex projects and during the talk we will analyze which approaches have worked for me and which have not.
UiPath Test Automation using UiPath Test Suite series, part 4DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 4. In this session, we will cover Test Manager overview along with SAP heatmap.
The UiPath Test Manager overview with SAP heatmap webinar offers a concise yet comprehensive exploration of the role of a Test Manager within SAP environments, coupled with the utilization of heatmaps for effective testing strategies.
Participants will gain insights into the responsibilities, challenges, and best practices associated with test management in SAP projects. Additionally, the webinar delves into the significance of heatmaps as a visual aid for identifying testing priorities, areas of risk, and resource allocation within SAP landscapes. Through this session, attendees can expect to enhance their understanding of test management principles while learning practical approaches to optimize testing processes in SAP environments using heatmap visualization techniques
What will you get from this session?
1. Insights into SAP testing best practices
2. Heatmap utilization for testing
3. Optimization of testing processes
4. Demo
Topics covered:
Execution from the test manager
Orchestrator execution result
Defect reporting
SAP heatmap example with demo
Speaker:
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Ramesh Iyer
In today's fast-changing business world, Companies that adapt and embrace new ideas often need help to keep up with the competition. However, fostering a culture of innovation takes much work. It takes vision, leadership and willingness to take risks in the right proportion. Sachin Dev Duggal, co-founder of Builder.ai, has perfected the art of this balance, creating a company culture where creativity and growth are nurtured at each stage.
Neuro-symbolic is not enough, we need neuro-*semantic*Frank van Harmelen
Neuro-symbolic (NeSy) AI is on the rise. However, simply machine learning on just any symbolic structure is not sufficient to really harvest the gains of NeSy. These will only be gained when the symbolic structures have an actual semantics. I give an operational definition of semantics as “predictable inference”.
All of this illustrated with link prediction over knowledge graphs, but the argument is general.
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.
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.
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.
When stars align: studies in data quality, knowledge graphs, and machine lear...
SQL Views
1.
2. Disclaimer: This presentation is prepared by trainees of
baabtra as a part of mentoring program. This is not official
document of baabtra –Mentoring Partner
Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt .
Ltd
4. VIEWS
• The view is a virtual table. It does not physically exist. Rather, it is created by a
query joining one or more tables.
• 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
Creating an SQL VIEW
Syntax:
CREATE VIEW view_name AS
SELECT column_name(s)
FROM table_name
WHERE condition;
5. View Creation - Example
• View Creation - Example
CREATE VIEW sup_orders
AS SELECT suppliers.supplier_id, orders.quantity, orders.price
FROM suppliers, orders
WHERE suppliers.supplier_id = orders.supplier_id and suppliers.supplier_name = 'IBM';
• This View (Create statement) would create a virtual table based on the result set of the select
statement. You can now query the view as follows
SELECT * FROM sup_orders;
6. Updating VIEW
• You can modify the definition of a VIEW without dropping it by using the following
syntax
CREATE OR REPLACE VIEW view_name
AS SELECT columns
FROM table
WHERE predicates;
• View Modify - Example
CREATE or REPLACE VIEW sup_orders
AS SELECT suppliers.supplier_id, orders.quantity, orders.price
FROM suppliers, orders
WHERE suppliers.supplier_id = orders.supplier_id
and suppliers.supplier_name = 'Microsoft';
7. Dropping VIEW
• The syntax for dropping a VIEW :
DROP VIEW view_name;
• View Drop - Example
DROP VIEW sup_orders;
Question: Can you update the data in an view?
Answer : A view is created by joining one or more tables. When you update record(s) in a view, it
updates the records in the underlying tables that make up the View.
So, yes, you can update the data in View providing you have the proper privileges to the
underlying tables.
Question: Does the SQL View exist if the table is dropped from the database?
Answer: Yes, View continues to exist even after one of the tables (that the SQL View is based on) is
dropped from the database. However, if you try to query the View after the table has been
dropped, you will receive a message indicating that the View has errors.
8. TRIGGER
• What is a Trigger?
A trigger is a block structure which is fired when a DML statements like Insert,
Delete, Update is executed on a database table. A trigger is triggered automatically
when an associated DML statement is executed.
• Syntax of Triggers
CREATE [OR REPLACE ] TRIGGER trigger_name
{BEFORE | AFTER | INSTEAD OF }
{INSERT [OR] | UPDATE [OR] | DELETE}
[OF col_name]
ON table_name
[REFERENCING OLD AS o NEW AS n]
[FOR EACH ROW]
WHEN (condition) ;
9. TRIGGER
• The syntax for a dropping a Trigger is:
DROP TRIGGER trigger_name ON tbl_name;
• The syntax for a disabling a Trigger is:
ALTER TRIGGER trigger_name DISABLE;
• The syntax for a enabling a Trigger is:
ALTER TRIGGER trigger_name ENABLE;
10. Example
• Creating Trigger
CREATE TRIGGER deleted_detailss
BEFORE
DELETE on tbl_customer
FOR EACH ROW
EXECUTE PROCEDURE customerss_delete();
• Drop Trigger
drop trigger delete_details on tbl_customer;
11. Functions
• A function is a group of statements that executes upon request
• Python provides many built-in functions and allows programmers to define their own
functions
• A request to execute a function is known as a function call
• When a function is called, it may be passed arguments that specify data upon which
the function performs its computation
• Functions defined within class statements are also called methods
The def Statement
• The def statement is the most common way to define a function
Syntax
def function-name(parameters):
statement(s)
12. Functions
The return keyword
• A function is created to do a specific task
• Often there is a result from such a task
• The return keyword is used to return values from a function
• A function may or may not return a value
• If a function does not have a return keyword, it will send a None value
13. Example
def showMessage(msg):
print msg
def cube(x):
return x * x * x
def main():
x = cube(3)
print x
showMessage("Computation finished.")
print showMessage("Ready.")
main()
output:
baabtra@baabtra-desktop:~$ python ppt.py
27
Computation finished.
Ready.
None
14. Calling Functions
• A function call is an expression with the following syntax:
function-object(arguments)
• function-object It is most often the function's name.
• The parentheses denote the function-call operation itself.
• Arguments, in the simplest case, is a series of zero or more expressions separated by
commas (,), giving values for the function's corresponding formal parameters
15. Calling Functions
total = 0;
# Function definition is here
def sum( arg1, arg2 ):
# Add both the parameters and return them."
total = arg1 + arg2;
# Here total is local variable.
print "Inside the function local total : ", total
return total;
def main():
# Now you can call sum function
sum( 10, 20 );
print "Outside the function global total : ", total
main()
output:
baabtra@baabtra-desktop:~$ python ppt2.py
Inside the function local total : 30
Outside the function global total : 0
16. Advantage
The advantages of using functions are:
• Reducing duplication of code
• Improving clarity of the code
• Reuse of code
• Information hiding
17. INDEX
• The CREATE INDEX statement is used to create indexes in tables
• Indexes allow the database application to find data fast; without reading the whole
table
• An index can be created in a table to find data more quickly and efficiently
• The users cannot see the indexes, they are just used to speed up searches/queries
18. INDEX
• CREATE INDEX Syntax
Creates an index on a table. Duplicate values are allowed:
CREATE INDEX index_name
ON table_name (column_name);
• CREATE UNIQUE INDEX Syntax
Creates a unique index on a table. Duplicate values are not allowed:
CREATE UNIQUE INDEX index_name
ON table_name (column_name);
• UNIQUE indicates that the combination of values in the indexed columns must be
unique
19. INDEX
• Rename an Index
The syntax for renaming an index is:
ALTER INDEX index_name RENAME TO new_index_name;
• Drop an Index
The syntax for dropping an index is:
DROP INDEX index_name;
20. JOINS
• Joins are used to query data from two or more tables, based on a relationship
between certain columns in these tables
• Types of Joins
LEFT JOIN: Return all rows from the left table, even if there are no matches in the
right table
RIGHT JOIN: Return all rows from the right table, even if there are no matches in
the left table
FULL JOIN: Return rows when there is a match in one of the tables
21. INNER JOIN
• The INNER JOIN keyword returns rows when there is at least one match in both
tables
• INNER JOIN Syntax
SELECT column_name(s)
FROM table_name1
INNER JOIN table_name2
ON table_name1.column_name=table_name2.column_name;
• If there are rows in “table_name1 " that do not have matches in " table_name2 ",
those rows will NOT be listed
22. LEFT JOIN
• The LEFT JOIN keyword returns all rows from the left table (table_name1), even if
ther are no matches in the right table (table_name2)
• LEFT JOIN Syntax
SELECT column_name(s)
FROM table_name1
LEFT JOIN table_name2
ON table_name1.column_name=table_name2.column_name;
23. RIGHT JOIN
• The RIGHT JOIN keyword returns all the rows from the right table (table_name2),
even if there are no matches in the left table (table_name1)
• RIGHT JOIN Syntax
SELECT column_name(s)
FROM table_name1
RIGHT JOIN table_name2
ON table_name1.column_name=table_name2.column_name;
24. FULL JOIN
• The FULL JOIN keyword return rows when there is a match in one of the tables
FULL JOIN Syntax
SELECT column_name(s)
FROM table_name1
FULL JOIN table_name2
ON table_name1.column_name=table_name2.column_name;
• The FULL JOIN keyword returns all the rows from the left table (Table1), and all the rows
from the right table (Table2). If there are rows in " Table1 " that do not have matches in "
Table2", or if there are rows in " Table2" that do not have matches in " Table1 ", those rows
will be listed as well.
25. stored procedure
• In a database management system (DBMS), a stored procedure is a set of Structured Query
Language (SQL) statements with an assigned name that's stored in the database in compiled
form so that it can be shared by a number of programs.
• preserving data integrity (information is entered in a consistent manner)
Data integrity means the correctness and consistency of data
Enforcing data integrity ensures the quality of the data in the database
Consider following two examples of data integriry in a database
1) If an employee is entered with an employee_id value of 123, the database should not allow
another employee to have an ID with the same value
2) If you have an employee_rating column intended to have values ranging from 1 to 5, the
database should not accept a value of 6
26. Example
CREATE OR REPLACE FUNCTION insert_tbl_customer(int,text,date,text,int,boolean)
RETURNS void AS
$delimiter$
INSERT INTO tbl_customer (pk_int_cu_id, vchr_cname, dat_dob, vchr_email,bint_phone,bln_sex)
VALUES ($1,$2,$3,$4,$5,$6);
$delimiter$
LANGUAGE SQL;
select insert_tbl_customer(201,'john','1990-10-5','b@gmail',94,true);
27. If this presentation helped you, please visit our page
facebook.com/baabtra and like it.
Thanks in advance.
www.baabtra.com | www.massbaab.com |www.baabte.com