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.
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.
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.
=-=-=-==-=-Overview of the Talk-=-=-=-=-=
Introduction to the Subject
Database
Rational Database
Object Rational Database
Database Management System
History
Programming
SQL,
Connecting Java, Matlab to a Database
Advance DBMS
Data Grid
BigTable
Demo
Products
MySQL, SQLite, Oracle,
DB2, Microsoft Access,
Microsoft SQL Server
Products Comparison.
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.
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.
=-=-=-==-=-Overview of the Talk-=-=-=-=-=
Introduction to the Subject
Database
Rational Database
Object Rational Database
Database Management System
History
Programming
SQL,
Connecting Java, Matlab to a Database
Advance DBMS
Data Grid
BigTable
Demo
Products
MySQL, SQLite, Oracle,
DB2, Microsoft Access,
Microsoft SQL Server
Products Comparison.
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.
Check Constraints in MySQL 8.0. Presented at pre-FOSDEM MySQL Day 2020DmitryLenev
One of the most asked for feature from the community,
support for CHECK constraints, is available in MySQL starting from version 8.0.16. This talk will provide introduction to this
new feature to our users. It will cover its syntax, semantics and
limitations. Also some typical use cases for this feature will be
studied.
The big data platforms of many organisations are underpinned by a technology that is soon to celebrate its 45th birthday: SQL. This industry stalwart is applied in a multitude of critical points in business data flows; the results that these processes generate may significantly influence business and financial decision making. However, the SQL ecosystem has been overlooked and ignored by more recent innovations in the field of software engineering best practices such as fine grained automated testing and code quality metrics. This exposes organisations to poor application maintainability, high bug rates, and ultimately corporate risk.
We present the work we’ve been doing at Hotels.com to address these issues by bringing some advanced software engineering practices and open source tools to the realm of Apache Hive SQL. We first define the relevance of such approaches and demonstrate how automated testing can be applied to Hive SQL using HiveRunner, a JUnit based testing framework. We next consider how best to structure Hive queries to yield meaningful test scenarios that are maintainable and performant. Finally, we demonstrate how test coverage reports can highlight areas of risk in SQL codebases and weaknesses in the testing process. We do this using Mutant Swarm, an open source mutation testing tool for SQL languages developed by Hotels.com that can deliver insights similar to those produced by Java focused tools such as Jacoco and PIT.
Introduction to Relational algebra in DBMS - The relational algebra is explained with all the operations. Some of the examples from the textbook is also solved and explained.
Saudi Arabia stands as a titan in the global energy landscape, renowned for its abundant oil and gas resources. It's the largest exporter of petroleum and holds some of the world's most significant reserves. Let's delve into the top 10 oil and gas projects shaping Saudi Arabia's energy future in 2024.
About
Indigenized remote control interface card suitable for MAFI system CCR equipment. Compatible for IDM8000 CCR. Backplane mounted serial and TCP/Ethernet communication module for CCR remote access. IDM 8000 CCR remote control on serial and TCP protocol.
• Remote control: Parallel or serial interface.
• Compatible with MAFI CCR system.
• Compatible with IDM8000 CCR.
• Compatible with Backplane mount serial communication.
• Compatible with commercial and Defence aviation CCR system.
• Remote control system for accessing CCR and allied system over serial or TCP.
• Indigenized local Support/presence in India.
• Easy in configuration using DIP switches.
Technical Specifications
Indigenized remote control interface card suitable for MAFI system CCR equipment. Compatible for IDM8000 CCR. Backplane mounted serial and TCP/Ethernet communication module for CCR remote access. IDM 8000 CCR remote control on serial and TCP protocol.
Key Features
Indigenized remote control interface card suitable for MAFI system CCR equipment. Compatible for IDM8000 CCR. Backplane mounted serial and TCP/Ethernet communication module for CCR remote access. IDM 8000 CCR remote control on serial and TCP protocol.
• Remote control: Parallel or serial interface
• Compatible with MAFI CCR system
• Copatiable with IDM8000 CCR
• Compatible with Backplane mount serial communication.
• Compatible with commercial and Defence aviation CCR system.
• Remote control system for accessing CCR and allied system over serial or TCP.
• Indigenized local Support/presence in India.
Application
• Remote control: Parallel or serial interface.
• Compatible with MAFI CCR system.
• Compatible with IDM8000 CCR.
• Compatible with Backplane mount serial communication.
• Compatible with commercial and Defence aviation CCR system.
• Remote control system for accessing CCR and allied system over serial or TCP.
• Indigenized local Support/presence in India.
• Easy in configuration using DIP switches.
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...Amil Baba Dawood bangali
Contact with Dawood Bhai Just call on +92322-6382012 and we'll help you. We'll solve all your problems within 12 to 24 hours and with 101% guarantee and with astrology systematic. If you want to take any personal or professional advice then also you can call us on +92322-6382012 , ONLINE LOVE PROBLEM & Other all types of Daily Life Problem's.Then CALL or WHATSAPP us on +92322-6382012 and Get all these problems solutions here by Amil Baba DAWOOD BANGALI
#vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore#blackmagicformarriage #aamilbaba #kalajadu #kalailam #taweez #wazifaexpert #jadumantar #vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore #blackmagicforlove #blackmagicformarriage #aamilbaba #kalajadu #kalailam #taweez #wazifaexpert #jadumantar #vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore #Amilbabainuk #amilbabainspain #amilbabaindubai #Amilbabainnorway #amilbabainkrachi #amilbabainlahore #amilbabaingujranwalan #amilbabainislamabad
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfKamal Acharya
The College Bus Management system is completely developed by Visual Basic .NET Version. The application is connect with most secured database language MS SQL Server. The application is develop by using best combination of front-end and back-end languages. The application is totally design like flat user interface. This flat user interface is more attractive user interface in 2017. The application is gives more important to the system functionality. The application is to manage the student’s details, driver’s details, bus details, bus route details, bus fees details and more. The application has only one unit for admin. The admin can manage the entire application. The admin can login into the application by using username and password of the admin. The application is develop for big and small colleges. It is more user friendly for non-computer person. Even they can easily learn how to manage the application within hours. The application is more secure by the admin. The system will give an effective output for the VB.Net and SQL Server given as input to the system. The compiled java program given as input to the system, after scanning the program will generate different reports. The application generates the report for users. The admin can view and download the report of the data. The application deliver the excel format reports. Because, excel formatted reports is very easy to understand the income and expense of the college bus. This application is mainly develop for windows operating system users. In 2017, 73% of people enterprises are using windows operating system. So the application will easily install for all the windows operating system users. The application-developed size is very low. The application consumes very low space in disk. Therefore, the user can allocate very minimum local disk space for this application.
Democratizing Fuzzing at Scale by Abhishek Aryaabh.arya
Presented at NUS: Fuzzing and Software Security Summer School 2024
This keynote talks about the democratization of fuzzing at scale, highlighting the collaboration between open source communities, academia, and industry to advance the field of fuzzing. It delves into the history of fuzzing, the development of scalable fuzzing platforms, and the empowerment of community-driven research. The talk will further discuss recent advancements leveraging AI/ML and offer insights into the future evolution of the fuzzing landscape.
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)MdTanvirMahtab2
This presentation is about the working procedure of Shahjalal Fertilizer Company Limited (SFCL). A Govt. owned Company of Bangladesh Chemical Industries Corporation under Ministry of Industries.
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxR&R Consult
CFD analysis is incredibly effective at solving mysteries and improving the performance of complex systems!
Here's a great example: At a large natural gas-fired power plant, where they use waste heat to generate steam and energy, they were puzzled that their boiler wasn't producing as much steam as expected.
R&R and Tetra Engineering Group Inc. were asked to solve the issue with reduced steam production.
An inspection had shown that a significant amount of hot flue gas was bypassing the boiler tubes, where the heat was supposed to be transferred.
R&R Consult conducted a CFD analysis, which revealed that 6.3% of the flue gas was bypassing the boiler tubes without transferring heat. The analysis also showed that the flue gas was instead being directed along the sides of the boiler and between the modules that were supposed to capture the heat. This was the cause of the reduced performance.
Based on our results, Tetra Engineering installed covering plates to reduce the bypass flow. This improved the boiler's performance and increased electricity production.
It is always satisfying when we can help solve complex challenges like this. Do your systems also need a check-up or optimization? Give us a call!
Work done in cooperation with James Malloy and David Moelling from Tetra Engineering.
More examples of our work https://www.r-r-consult.dk/en/cases-en/
Forklift Classes Overview by Intella PartsIntella Parts
Discover the different forklift classes and their specific applications. Learn how to choose the right forklift for your needs to ensure safety, efficiency, and compliance in your operations.
For more technical information, visit our website https://intellaparts.com
Student information management system project report ii.pdfKamal Acharya
Our project explains about the student management. This project mainly explains the various actions related to student details. This project shows some ease in adding, editing and deleting the student details. It also provides a less time consuming process for viewing, adding, editing and deleting the marks of the students.
Quality defects in TMT Bars, Possible causes and Potential Solutions.PrashantGoswami42
Maintaining high-quality standards in the production of TMT bars is crucial for ensuring structural integrity in construction. Addressing common defects through careful monitoring, standardized processes, and advanced technology can significantly improve the quality of TMT bars. Continuous training and adherence to quality control measures will also play a pivotal role in minimizing these defects.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Integrity constraints in dbms
1. Creating a table,
populating data, adding
integrity constraints
Prepared by,
Mr. K.Vignesh Saravanan
Assistant Professor
Department of Computer Science and Engineering
Ramco Institute of Technology
Rajapalayam
6. Data Control Language
• DCL – to give privilege / to revoke privilege to the
users to perform DDL, DML operations
• User are given the rights (or restricted) to execute the
select, insert, update, alter, create… etc
Syntax:
GRANT(REVOKE) [privilege] on [tablename] from [users];
• > GRANT select, update on employee to 17ee001;
• > REVOKE alter, delete on employee from 17ee001;
7. Data Control Language
To give permission to perform all commands:
• > GRANT all on employee to 17ee001;
• > REVOKE all on employee from 17ee001;
Names
17ee001
17ee002
17ee003
17ee004
.
.
.
.
17ee060
To give permission to many users:
• > GRANT all on employee to Users;
• > REVOKE all on employee from Users;
• > REVOKE update, delete on employee
from Users;
Users
8. Transaction Control Language
• To control/save the changes done by the DML
commands.
• commit – It saves the state of the Database and no
previous commands can be undone.
• savepoint – creates a temporary state where we can
return to undo any changes made. To reverse any
commands we can use this savepoints.
• rollback – command use to restore to a particular
savepoint.
9. Transaction Control Language
NAME REGNO MARKS
AAA 1001 89
BBB 1002 90
CCC 1003 92
• > savepoint s1;
• > delete from student where marks=90;
• > savepoint s2;
• > rollback s1;
NAME REGNO MARKS
AAA 1001 89
CCC 1003 92
10. Transaction Control Language
NAME REGNO MARKS
AAA 1001 89
BBB 1002 90
CCC 1003 92
• > delete from student where marks=92;
• > savepoint s3;
• > commit;
• > rollback s3; # Error
• > rollback s2; # Error
• > rollback s1; # Error
NAME REGNO MARKS
AAA 1001 89
BBB 1002 90
11. Integrity Constraints
• Integrity – Data Quality
• Constraints – Conditions
• To ensure the quality of data in the database some
integrity constraints are used.
• KEYS
• NOT NULL
• UNIQUE
• CHECK
• DEFAULT
12. Integrity Constraints
Consider a student database (regno, name, marks, attd)
• Integrity constraints required are:
– Student name should not be null;
– No student regno must be same (unique regno
needed);
– Student mark will be 0 by default;
– Student attendance should be > 75;
13. Integrity Constraints
• NOT NULL – if the particular field should not be left
empty (i.e null values are not allowed)
• CREATE table student
(
regno int,
name varchar(20) not null,
marks int,
attd int
);
14. Integrity Constraints
• UNIQUE – the regno for two students should not be
same (i.e unique regno are only allowed)
• CREATE table student
(
regno int unique,
name varchar(20) not null,
marks int,
attd int
);
15. Integrity Constraints
• KEY – the primary key can be set to the table to
uniquely identify a tuple. (so primary key will be always
not null and unique)
• CREATE table student
(
regno int primary key,
name varchar(20) not null,
marks int,
attd int
);
16. Integrity Constraints
• KEY – the primary key can be set to the table to
uniquely identify a tuple. (so primary key will be always
not null and unique) (ANOTHER WAY OF DEFINING KEY)
• CREATE table student
(
regno int,
name varchar(20) not null,
marks int,
attd int,
primary key(regno)
);
17. Integrity Constraints
• DEFAULT– to provide a default values to the attributes
• To give the marks value to be zero.
• CREATE table student
(
regno int primary key,
name varchar(20) not null,
marks int default 0,
attd int
);
18. Integrity Constraints
• CHECK – to ensure if the attribute values has satisfied
the specific condition
• To check if the attendance should be >75.
• CREATE table student
(
regno int primary key,
name varchar(20) not null,
marks int default 0,
attd int check(attd>75)
);
19. SELECT - Restrictions
• Restricting the values:
– ALL / DISTINCT keyword;
• Select city from location;
NAME CITY
AAA SVKS
BBB SRI
CCC SRI
DDD RJPM
EEE SVKS
FFF RJPM
GGG VNR
LOCATION
CITY
SVKS
SRI
SRI
RJPM
SVKS
RJPM
VNR
select all city from location;
Same result
20. SELECT - Restrictions
• Restricting the values:
– ALL / DISTINCT keyword;
• To know what are the places
from which the persons are
coming:
• Select distinct city from
location;
NAME CITY
AAA SVKS
BBB SRI
CCC SRI
DDD RJPM
EEE SVKS
FFF RJPM
GGG VNR
LOCATION
CITY
SVKS
SRI
RJPM
VNR
21. SELECT – Pattern Matching
• Pattern matching for string:
– LIKE keyword;
• To retrieve a string data based
on a pattern (or) based on
some character
To select city names starting with
the letter ‘T’
• Select * from location
where city like ‘T%’;
NAME CITY
AAA Sivakasi
BBB Sriviliputtur
CCC Rajapalayam
DDD Sattur
EEE Tenkasi
FFF Erode
GGG Chennai
LOCATION
NAME CITY
EEE Tenkasi
22. SELECT – Pattern Matching
To select city names ending with
the letter ‘i’
• Select city from location
where city like ‘%i’;
To select the string from
the middle:
• Select * from location
where city like ‘_ _o_ _’;
NAME CITY
AAA Sivakasi
BBB Sriviliputtur
CCC Rajapalayam
DDD Sattur
EEE Tenkasi
FFF Erode
GGG Chennai
LOCATION
CITY
Sivakasi
Tenkasi
Chennai
NAME CITY
FFF Erode
23. SELECT – between
Retrieve all employees in
department 5 whose salary is
between $30,000 and $40,000.
• Select * from Employee
where salary > 30000 and
salary < 40000;
• Select * from Employee where
salary between 30000 and 40000;
NAME SALARY
AAA 10000
BBB 35000
CCC 25000
DDD 32000
EEE 41000
Employee
NAME SALARY
BBB 35000
DDD 32000
24. SELECT – ordering the data
Arrange the data in the table in some
particular order
(by default ascending order)
• Select * from Employee
order by salary;
NAME SALARY
AAA 10000
BBB 35000
CCC 25000
DDD 32000
EEE 41000
Employee
NAME SALARY
AAA 10000
CCC 25000
DDD 32000
BBB 35000
EEE 41000
NAME SALARY
EEE 41000
BBB 35000
DDD 32000
CCC 25000
AAA 10000
Select * from Employee
order by salary desc;
25. Assertions
• An assertion (statement) is a predicate
expressing a condition that
– is always expected to satisfy (or)
– The database should always satisfy
• Types:
– Domain constraints
– Referential Integrity constraints
• Ex: Customers maintain minimum balance
Rs.1000/- in their bank account
26. • Syntax:
create assertion assertion_name check predicate;
• Example:
create assertion min_balance check
(select * from customers where balance<500)
• Complex assertions leads to DB overhead.
• Assertions are not most widely used recently.
• Equivalent functionality can be implemented
using triggers
27. Authorization
• Authorization - a privilege
• Providing different levels of grants / privilege
to the database users.
– Authorization to read data
– Authorization to insert new data
– Authorization to update data
– Authorization to delete data
• SQL – DCL – includes grant and revoke
commands
28. • Syntax: (grant)
grant <privilege list>
on <relation name or view name>
to <user/role list>;
• Privileges can be select, insert, update, delete,
alter, etc.,
• grant select on department to Amit, Satoshi;
• grant update (budget) on department to Amit, Satoshi;
Note: user/role should be declared as public – if access to
all common users
29. • Syntax: (revoke)
revoke <privilege list>
on <relation name or view name>
from <user/role list>;
• revoke select on department from Amit, Satoshi;
• revoke update (budget) on department from Amit,
Satoshi;
Note: user/role should be declared as public – if access to
all common users