It includes discussion of SQL, Lecture notes of Information Technology

It shows the processes that must be done

Typology: Lecture notes

2019/2020

Uploaded on 03/09/2023

patricia-garcia-7hz
patricia-garcia-7hz 🇵🇭

3 documents

1 / 13

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
I. SQL
The structure query language is language that enables to create and operate on
relational database, which are sets of related information stored in tables. It has
clearly established itself as the standard relational database language. It is basically
used to pass the query to retrieve and manipulate the information from database,
depending upon the nature of query. SQL can:
Create Schemas in the DBMS
Alter Schemas
Add data
Remove data
Change data
Access Data
Processing Capability of SQL:
1. Data Definition Language (DDL) it provides commands for defining
relations schemas, deleting relations, creating index, and modifying relations
schemas.
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download It includes discussion of SQL and more Lecture notes Information Technology in PDF only on Docsity!

relational data clearly esta^ The structure query language is language that enablished itself as the standard relational database, which are sets of related information stored in ta I.^ SQL bbase language.les to create and operate on It isbles. It has basically used to pass the query to retrieve and manipulate depending upon the nature of query. • Create Schemas in the DBMS SQL can: the information from database,

  • • • • Alter SchemasAdd dataRemove dataChange data

Processing Capability of^ •^ SQL: Access Data

  1. Data Definition Language (DDL) relations schemas, deleting relations, creating index, and modifying relations schemas. – it provides commands for defining
    1. Data Manipulation Language (DML) b includes also command to insert, delete and modifying in the dataView Definitionased on both the relation – the SQL DDL also includes commands for defining views.al algebra and the tuples relational calculus. It it includes the queries languagebase.
    1. Authorization rights to relation and views.Integrity standard of SQL are likely to include enhanced features for integrity checking. – the SQL provides forms of integrity checking. Future products and – the SQL DDL includes commands for specifying access Relational Data Structure A relational data ▪ ▪ A relation is a collection of rows or tuplesA tuple is a collection of columns or attributes structure is a collection of tables or relations. ▪ A domain is a pool of values from which the actual attribute values are taken.
  1. CREATE statement Syntax: Data Definition Language (DDL) : It is used to create the database. create and click execute. database database _name;
  1. To show your data Syntax: show and click execute. databases.bases;
  1. CREATE statements: It is used to Syntax: B.^ Creating your create the table.^ Table create datatype(size),……… and click execute. table table_name(columnName1 datatype(size), columnName2 primary key (columnName));
  1. Describe statements: existing Syntax: descri database, table, index, or view.be table_name; To describe the structure (column and data types) of an and click execute.

Dropping a column from a tabl Syntax: a and click execute.lter table table_name drop column columnName; e:

  1. DROP statements: table is dropped all records held within it are lost and cannot be recovered. Syntax: drop table table _name; To destroy an existing database, table, index, or view. If a and click execute.

Additional command is: • • ModifyRename to column_name table_name… (syntax)

Table Stud_Info