SQL is a non-procedural language used to create and manipulate relational databases. It allows users to define database schemas through DDL commands like CREATE and ALTER, manipulate data through DML commands like INSERT, UPDATE and DELETE, and provide security through DCL commands. Key SQL concepts covered include data types, constraints, creating and modifying tables, and performing CRUD operations.
SQL: Structured Query Language
Includes:
Introduction
It is a computer programming language that is used for storage, retrieval and manipulation of data that is stored in relational database. This is a standard computer programming language used for RDMS (Relational Database Management Systems).
IBM’s Ted Cod a.k.a Father of Relational databases gave the concept of relational model for database in 1970. It was 4 years later SQL appeared in 1974. This was just an idea, which got conceptualized in the form of Systems/R in 1978 and was released by IBM. The ANSI standards and first prototype of relational databases was released in 1986, which is popularly knows as Oracle
Advantages:
Used for accessing data in RDBMS.
Used for describing data.
Definition of data and its manipulation.
Can be used with other programming language by embedding SQL modules into other languages code, pre-compilers and libraries.
Possible to create and drop data base using this programming language.
Setting permission on views, table and procedures.
Can be used for creating views, procedures and functions.
Commands
Commands in SQL are categorized into three category namely
DDL – Data definition language
DML – Data Manipulation language
DCL – Data Control language
Data Definition Language (DDL)
Commands that are classified under DDL category are as follows:
CREATE – Used for creating an object, table/view.
ALTER – Used for modifying an existing database object.
DROP – Object, table an views created using CREATE can be deleted/removed.
Data Manipulation Language (DML)
Commands that are classified under DML are as follows:
SELECT – Used for retrieving a set of records from one/more than one tables.
DELETE – Used for deleting records.
UPDATE – Used for modifying / updating records.
INSERT – Used for inserting records.
Data Control Language (DCL)
Commands that have been classified under DCL are:
GRANT – Users can be granted permission / privileges using this command
REVOKE – Privileges to the user can be taken back using this command.
Constraints
Rules are enforced on the columns of the table that contain data specific for the field for all the record in the table. These rules are referred to as constraints, which are generally used to ensure that field only gets a particular type of value. For instance if there is a field called “Age” in the table, then this field can only take numeric value.
Constraints set up for the table apply to all the data stored in the table.
Some of the common constraints are:
NOT NULL:
This constraints ensure that the field value is never set to NULL
DEFAULT:
Typically used to fill in a default value for any field left blank.
UNIQUE:
If the constraints is set on a column, then all value set for this field will have to be unique
SQL: Structured Query Language
Includes:
Introduction
It is a computer programming language that is used for storage, retrieval and manipulation of data that is stored in relational database. This is a standard computer programming language used for RDMS (Relational Database Management Systems).
IBM’s Ted Cod a.k.a Father of Relational databases gave the concept of relational model for database in 1970. It was 4 years later SQL appeared in 1974. This was just an idea, which got conceptualized in the form of Systems/R in 1978 and was released by IBM. The ANSI standards and first prototype of relational databases was released in 1986, which is popularly knows as Oracle
Advantages:
Used for accessing data in RDBMS.
Used for describing data.
Definition of data and its manipulation.
Can be used with other programming language by embedding SQL modules into other languages code, pre-compilers and libraries.
Possible to create and drop data base using this programming language.
Setting permission on views, table and procedures.
Can be used for creating views, procedures and functions.
Commands
Commands in SQL are categorized into three category namely
DDL – Data definition language
DML – Data Manipulation language
DCL – Data Control language
Data Definition Language (DDL)
Commands that are classified under DDL category are as follows:
CREATE – Used for creating an object, table/view.
ALTER – Used for modifying an existing database object.
DROP – Object, table an views created using CREATE can be deleted/removed.
Data Manipulation Language (DML)
Commands that are classified under DML are as follows:
SELECT – Used for retrieving a set of records from one/more than one tables.
DELETE – Used for deleting records.
UPDATE – Used for modifying / updating records.
INSERT – Used for inserting records.
Data Control Language (DCL)
Commands that have been classified under DCL are:
GRANT – Users can be granted permission / privileges using this command
REVOKE – Privileges to the user can be taken back using this command.
Constraints
Rules are enforced on the columns of the table that contain data specific for the field for all the record in the table. These rules are referred to as constraints, which are generally used to ensure that field only gets a particular type of value. For instance if there is a field called “Age” in the table, then this field can only take numeric value.
Constraints set up for the table apply to all the data stored in the table.
Some of the common constraints are:
NOT NULL:
This constraints ensure that the field value is never set to NULL
DEFAULT:
Typically used to fill in a default value for any field left blank.
UNIQUE:
If the constraints is set on a column, then all value set for this field will have to be unique
Data Manipulation(DML) and Transaction Control (TCL) MuhammadWaheed44
A short course "SQL Fundamentals - Oracle 11g" is being in progress at PMAS Arid Agriculture University. Complete course video and can be found at following link
https://www.youtube.com/playlist?list=PL12t8CWUhXZaUXsmg7M67o_Q37JhhfAKU
Data Manipulation(DML) and Transaction Control (TCL) MuhammadWaheed44
A short course "SQL Fundamentals - Oracle 11g" is being in progress at PMAS Arid Agriculture University. Complete course video and can be found at following link
https://www.youtube.com/playlist?list=PL12t8CWUhXZaUXsmg7M67o_Q37JhhfAKU
Data Definition Language (DDL), Data Definition Language (DDL), Data Manipulation Language (DML) , Transaction Control Language (TCL) , Data Control Language (DCL) - , SQL Constraints
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
Introduction to AI for Nonprofits with Tapp NetworkTechSoup
Dive into the world of AI! Experts Jon Hill and Tareq Monaur will guide you through AI's role in enhancing nonprofit websites and basic marketing strategies, making it easy to understand and apply.
Macroeconomics- Movie Location
This will be used as part of your Personal Professional Portfolio once graded.
Objective:
Prepare a presentation or a paper using research, basic comparative analysis, data organization and application of economic information. You will make an informed assessment of an economic climate outside of the United States to accomplish an entertainment industry objective.
Embracing GenAI - A Strategic ImperativePeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdfTechSoup
In this webinar you will learn how your organization can access TechSoup's wide variety of product discount and donation programs. From hardware to software, we'll give you a tour of the tools available to help your nonprofit with productivity, collaboration, financial management, donor tracking, security, and more.
Honest Reviews of Tim Han LMA Course Program.pptxtimhan337
Personal development courses are widely available today, with each one promising life-changing outcomes. Tim Han’s Life Mastery Achievers (LMA) Course has drawn a lot of interest. In addition to offering my frank assessment of Success Insider’s LMA Course, this piece examines the course’s effects via a variety of Tim Han LMA course reviews and Success Insider comments.
2. SQL
SQL (Structure Query Language)
It is relational database language that enables you to
create and operate on relational database.
3. Feature of SQL
It is a non procedural language.
It is a 4GL programming language.
(i.e. only What to do? not How to do?).
It is a case insensitive language.
4. Constraints of SQL
A constraint is a condition or check that is applied to a
column or set of columns in a table.
Null Constraint: It means a Unknown Value.
Eg. mobile number(10) null
Not Null Constraint: It means always a Known
Value.
Eg. name varchar2(20) not null
5. Unique Constraint: It ensures that no two rows
have the same value in the specified column(s). i.e
Known Value (Distinct) or Unknown Value.
Eg. ecode number(5) unique
Primary Key Constraint: It is similar to Unique
constraint except that the Primary Key can not allow
Null values so that this constraint must be applied to
columns declared as Not Null. i.e Always Known Value
(Distinct).
Eg. empid char(5) primary key
Constraints of SQL
6. Default Constraint: A default value can be specified for
a column using default clause when a user does not enter
a value for that column.
Eg. grade char(2) default ‘E1’
Constraints of SQL
7. Foreign Key Constraint:
Whenever two tables are related by a common column then Foreign Key is present in
the Child table (Related Table or Detail Table) and it is derived from primary key of Parent
Table (Primary Table or Master Table).
Eg. Two Tables:
Items (Itemno, Description, Price)
Orders (Orderno, Orderdate, Itemno, Qty)
where Itemno & Orderno are Primary Key and Itemno is Foreign Key. i.e both the tables
are related through common column Itemno.
Note: It may be possible that Primary Key and Foreign Key are same.
Eg. create table Items
( Itemno char(5) Primary Key,
…………….);
create table Orders
( Orderno number(5) Primary Key,
Itemno char(5),
constraint fk foreign key (itemno) references items(itemno)
…………….
);
Constraints of SQL (Contd:)
8. Classification of SQL Commands
DDL Commands
DML Commands
DCL Commands
Query Language
9. DDL Commands
DDL (Data Definition Language):
It provides commands for defining various database
objects (i.e defining relation schemas, deleting relations,
creating indexes, and modifying relation schemas etc.)
Eg. Create, Alter, Drop etc.
10. The tables are created by using Create Table command and also its columns are
named, data types and sizes are supplied for each column.
Syntax: create table <table_name>
(
<col1> <datatype> [<size>] [<constraint>],
<col2> <datatype> [<size>] [<constraint>],
………..
<coln> <datatype> [<size>] [<constraint>]
);
Eg. create table emp1
(
empid char(4) primary key,
ename varchar2(20) not null,
);
Create Command
12. Alter Command
Altering Table: The alter table command is used to modify
the structure of existing table. (i.e adding a column, add an
integrity constraint etc.).
Adding Columns: The new column will be added with
NULL values for all rows currently in table.
Syntax: alter table <table_name>
add column(<col1> <datatype> <size> [<constraint>],
<col2> <datatype> <size> <constraint>]
…….);
Eg. alter table emp
add column(tel_number number(11) );
13. Alter table
Modifying Column Definitions: To change
datatype, size, default value and NOT NULL column
constraint of a column definition.
Syntax:
alter table <table_name>
modify <col_name> <new_datatype> <new_size>;
Eg. alter table emp
modify tel_number int(13) ;
14. Alter table (Contd:)
Deleting Column: To change datatype, size, default
value and NOT NULL column constraint of a column
definition.
Syntax:
alter table <table_name>
drop <col_name>;
Eg. alter table emp
drop tel_number;
15. Drop table
Drop Table Command: It removes a table from the
database .
Syntax:
drop table <table_name>;
Eg. Drop table emp;
16. Data Manipulation Language(DML)
(Data Manipulation Language): It enables users to
manipulate data (i.e commands to insert, delete, and
modify tuples in the database).
Eg. Insert, Update, Delete etc.
17. Insert table
Inserting Data into Table
The data can be inserted in a table using Insert Into
command.
Syntax: insert into <table_name> [<column_lists>]
values (<value1>, <value2>, …………….);
Eg. insert into emp1
values(‘E001’,’Vipin’,5000);
Note: Here the order of values matches the order of
columns in the create table command of the table.
Or insert into emp1 (empid, ename, sal)
values(‘E001’,’Vipin’,5000);
Note: The columns not listed in the insert into command will have
their default values or null values.
18. Modifying Data with Update Command
This is a DML statement used to modify or change some or all of the
values in an existing row of a table.
Syntax: update <table_name>
set col1 = <new_value>,
col2 = < new_value>,
…..coln = <new_value>
[where <condition>];
Eg. update emp
set sal= 400; ‘updates all rows
Eg. update emp
set sal= sal*2, ename= ‘JONES’
where empno = 7844; ‘update only one row
Update table
19. This is also a DML statement used to remove row(s) of a
table.
Syntax: delete from <table_name>
[where <condition>];
Eg. delete from emp
where sal < 5000;
Delete table