Search for notes by fellow students, in your own course and all over the country.
Browse our notes for titles which look like what you need, you can preview any of the notes via a sample of the contents. After you're happy these are the notes you're after simply pop them into your shopping cart.
Title: sql notes
Description: The purpose of the research The narrative tone of the paper [typically defined by the type of the research] The methods used
Description: The purpose of the research The narrative tone of the paper [typically defined by the type of the research] The methods used
Document Preview
Extracts from the notes are below, to see the PDF you'll receive please use the links above
Introduction to Structured Query Language | points regarding its
Features and Syllabus
Gate Smashers
Gate Smashers is going to discuss Introduction to Introduction to SQL
...
Because many times the query of
students comes that what are the topics we have to cover inside the sql ,
Whether it is about higher competitive exams or placement
...
The structure data we have at today 's
time is very less
...
There is no general use of
SQL so it is a particular domain where we use what is that domain ?
Relational database , that 's why we call it Domain Specific Language
...
What to do happens
and how to do also that means I have to mention both things inside the
program what to do
...
We use direct
application program interface and we do query like that particular day ,
I have to search any train
...
I will give the most stars to this point here
because the students who get stuck the most get stuck
...
In which we have also added the procedural
part in which we create triggers , create functions , create cursors , we
can also create procedures which we do in C language
...
All Types of SQL Commands with Example | DDL, DML, DCL, TCL and
CONSTRAINTS | DBMS
Gate Smashers
Gate Smashers are going to discuss about types of SQL commands
...
Structure data
means data that we normally store in the form of tables or relations
...
DDL means data definition so the data we have to store before storing I
need a structure in which I can put that data
...
commit means if the transaction is completed
commit then we will put all the values in the database
...
If the transaction fails then we rollback , in Actual
acid property
...
If you want to execute then you use the software
which is from Oracle
...
You can use
sequel server or sequel software
...
ALTER Command (DDL) in SQL with Implementation on ORACLE
Gate Smashers
Varun Singla: In today 's video we are going to discuss About ALTER
command As we had discussed in the last video In DDL the first command
about create In which we had done create table with implementation In
this video we will also do its implementation In Oracle
...
Alter command is used so these are the multiple ways through which you
can Thorough Alter command you can perform all these task So come we will
see its implementation Come we will start with implementation First of
all I want to tell you Over here I have written create table command And
we are creating a table over here Employee And I have added 2 columns Id
and Name in it
...
In this way we
can add , drop and modify column datatypes and along with that you can
rename So alter table Tablename Employee
...
Object to be described Could not be found which means
...
Table name What we have changed ? Emp11 So this
major , what we can do is With alter Add , drop , modify , rename column
Or rename table
...
SQL Queries and Subqueries (part-1) | Database Management System
Gate Smashers
Gate Smashers Today I am going to discuss The practice questions on SQL
query
...
We are going to write near about 7-8
queries On this topic And these whole queries We will start from very
simple From absolute beginning And we will go till end End means We will
go to complex queries
...
Now this whole table will be compared With inner
query output
...
Nested for loop means for 1 value of i j will go till
n
...
We will discuss where
correlated queries query from source And more nested queries
...
We will
find that Then , Which employee is taking second highest salary That
employees name Or Id If I want to find that employees information Then
how we will find That information
...
Select salary from employee where salary ! = so always
inner query Whenever I talk about nested query So inner query Will give
output for one time It will be executed once And it will give the output
50,000 Now I want to compare this with outer salary We will compare the
values over here Over here my all the salaries have came 30,40 and 50 We
have written where salary Where salary From employee table Where salary
means You write value of all salaries over here Not equal to Inner query
output What is inner query output? We print second highest salary so
second highest is printed over here This is the logic
...
The one who can frame queries Can apply logic He can solve all the
queries And I have already told that this is the only topic Where
students in interviews are asked about queries
...
Groupby
clause help so how do we write groupby clause ? Select Select We will see
afterwards that what is to be selected From employee table This is the
important part When SQL query is executed First of all from We have to
start to execute first from Table first of all table From table name
Groupby
...
How many
employees are there in each department For that what I have to apply over
here Count function How ? Select department , count * Count * Select
department Select department obviously Department is over here so I can
use department Other than that We can use only the aggregate function
Select department
...
2 means
1 So It should be the output So for that this video It is totally linked
Even all the sub queries series that I am making are linked with each
other
...
I do n't know where
randomly HR is Because I can sort employee id easily If I talk about
department Then even if I want to sort department Then What is the
advantage ? There is no advantage HR ones , what is the meaning of
sorting ? That we can just display in the output
...
tell the name of that employee
Who , is working in such department Where number of employees are less
...
2 employees The department with less than two
employees Who all are working in that Tell
...
The concept of nested queries is a bit complex to frame queries
...
Max
means if you want to find the maximum value Minimum value Count means ,
total number of values In a table Average and sum Max means
...
salary
...
Minimum value means we have to use Min Min
function so select minimum value Minimum value
...
Then, we use count We can use count as There is a simple method , select
count ( *) Null means Anything Null means the value that is empty Then
why we should consider it into count ? We will not count null because
when we will count in salary
...
average ( Salary )
Sum is 1,40,000 and what is the count ? 1,2,3,4,5 Because it will not
take null into count And we have not used distinct So rows will come in
the output
...
aggregate functions
that we have It is very easy to use them We can use it in a query easily
But when we will do nested queries In nested queries or correlated
queries These aggregate functions are used many times
...
Title: sql notes
Description: The purpose of the research The narrative tone of the paper [typically defined by the type of the research] The methods used
Description: The purpose of the research The narrative tone of the paper [typically defined by the type of the research] The methods used