SlideShare a Scribd company logo
1 of 20
Download to read offline
General Commands for tables
Creating a table
Command:
create table <table name> (<attribute1> data type, <attribute2> data
type,………………..<attribute N> data type);
Describing a table
Command:
Descibe tablename;
Inserting values into table
Command:
insert into <table name> values (<attribute1> , <attribute2> ,………………..<attribute
N> data type);
Creating Table with Primary Key Constraint
Command:
Create table tablename( <attribute1> datatype primary key);
Viewing the table
Command:
select * from <table name>;
Viewing selected columns in table
Command:
select * from <table name> where <attribute >=;
Altering the table to modify
Command:
Alter table tablename modify(<attribute> datatype);
Altering the table to add a column
Command:
Alter table tablename add(<attribute> datatype);
To arrange data in some particular order in table
(sorting)
Command:
select * from <table name> order by <col 1>, <col 2>;
To drop columns from a table
Command:
Alter table tablename drop column columnname;
Deleting a specific entry
Command:
delete from <table name> where <attribute 1=att. Value>;
To change the name of existing table
Command:
rename <old table name> to <new table name>;
Count Function
Command:
Select count(columnname) from tablename;
Count Distinct Function
Command:
Select count(distinct columnname) from tablename;
Maximum Function
Command:
Select max(columnname) from tablename;
Minimum Function
Command:
Select sum(columnname) from tablename;
Average Function
Command:
Select avg(columnname) from tablename;
Numeric Functions
Absolute Function
Command:
Select abs(value) from dual;
Cosine Function
Command:
Select cos(value) from dual;
Inverse Cosine Function
Command:
Select acos(value) from dual;
Hyperbolic Cosine
Command:
Select cosh(value) from dual;
Sine Function
Command:
Select sin(value) from dual;
Inverse Sine Function
Command:
Select asin(value) from dual;
Hyperbolic Sine Function
Command:
Select sinh(value) from dual;
Tangent Function
Command:
Select tan(value) from dual;
Inverse Tangent Function
Command:
Select atan(value) from dual;
Hyperbolic Tangent Function
Command:
Select tanh(value) from dual;
Exponenetial Function
Command:
Select exp(value) from dual;
Mod Function
Command:
Select mod(num1 , num2) from dual;
Power Function
Command:
Select power(num1 , num2) from dual;
Natural Log Function
Command:
Select ln(value) from dual;
Log Fuction
Command:
Select log(num , base) from dual;
Ceiling Function
Command:
Select ceil(value) from dual;
Floor Function
Command:
Select floor(value) from dual;
Greatest Value Function
Command:
Select greatest(num1 , num2) from dual;
Least Value Function
Command:
Select least(num1 , num2) from dual;
Sign Function
Command:
Select sign(num) from dual;
Square root of any value
Command:
Select sqrt(value) from dual;
Date Functions
To determine the system date of a computer
Command:
Select sysdate from dual;
To add months in a date
Command:
Select add_months(sysdate , monthnum) from dual;
To determine months between two dates
Command:
Select months_between(sysdate , ‘new date’) from dual;
To round off the month/year of a date
Command:
Select round(sysdate, ‘month/year) from dual;
To round off the month/year of a date using truncate
Command:
select trunc(‘date’, ‘month/year’) from dual;
To determine the next day of the date
Command:
select next_day(‘date’, ‘day’) from dual;
CHARACTER FUNCTION
To change the lower case of a string to upper case
Command:
select upper(‘string’) from dual;
To change the upper case of a string to lower case
Command:
select lower(‘string’) from dual;
To change the first case of a string to upper case
Command:
select initcap(‘string’) from dual;
To take out the substring from a string
Command:
select substr(‘string’ start, end) from dual;
To find the position of character in a string
Command:
select instr(‘string’, ‘character’) from dual;
To find the length of a string
Command:
select length(‘string’) from dual;
To concatenate the two strings
Command:
select concat(‘string 1’, ‘string 2’) from dual;
To insert symbol on left side in a string
Command:
select lpad(‘string’,size,’symbol’) from dual;
To insert symbol on right side in a string
Command:
select rpad(‘string’,size,’symbol’) from dual;
To trim the characters from left side in a string
Command:
select ltrim(‘string’,’characters’) from dual;
To trim the characters from right side in a string
Command:
select rtrim(‘string’,’characters’) from dual;
To replace the characters from a string
Command:
select replace(‘string’, ‘characters’, ’replacing characters’) from dual;
Dbms file

More Related Content

What's hot

Oracle Training in Kochi | Trivandrum |Thrissur
Oracle Training in Kochi | Trivandrum |ThrissurOracle Training in Kochi | Trivandrum |Thrissur
Oracle Training in Kochi | Trivandrum |ThrissurIndiaOptions Softwares
 
Md10 building java gu is
Md10 building java gu isMd10 building java gu is
Md10 building java gu isRakesh Madugula
 
Inventory aging report using oracle discoverer desktop
Inventory aging report using oracle discoverer desktopInventory aging report using oracle discoverer desktop
Inventory aging report using oracle discoverer desktopAhmed Elshayeb
 
Structured query language functions
Structured query language functionsStructured query language functions
Structured query language functionsVineeta Garg
 
The Ring programming language version 1.7 book - Part 25 of 196
The Ring programming language version 1.7 book - Part 25 of 196The Ring programming language version 1.7 book - Part 25 of 196
The Ring programming language version 1.7 book - Part 25 of 196Mahmoud Samir Fayed
 
INSERCION DE REGISTROS DESDE VISUAL.NET A UNA BD DE SQL SERVER
INSERCION DE REGISTROS DESDE VISUAL.NET A UNA BD DE SQL SERVERINSERCION DE REGISTROS DESDE VISUAL.NET A UNA BD DE SQL SERVER
INSERCION DE REGISTROS DESDE VISUAL.NET A UNA BD DE SQL SERVERDarwin Durand
 
Lecture 3 sql {basics ddl commands}
Lecture 3 sql {basics  ddl commands}Lecture 3 sql {basics  ddl commands}
Lecture 3 sql {basics ddl commands}Shubham Shukla
 
Oracle ERP Personalization for control master items list
Oracle ERP Personalization for control master items listOracle ERP Personalization for control master items list
Oracle ERP Personalization for control master items listAhmed Elshayeb
 
Lecture 4 sql {basics keys and constraints}
Lecture 4 sql {basics  keys and constraints}Lecture 4 sql {basics  keys and constraints}
Lecture 4 sql {basics keys and constraints}Shubham Shukla
 
SQL WORKSHOP::Lecture 1
SQL WORKSHOP::Lecture 1SQL WORKSHOP::Lecture 1
SQL WORKSHOP::Lecture 1Umair Amjad
 

What's hot (20)

Oracle Training in Kochi | Trivandrum |Thrissur
Oracle Training in Kochi | Trivandrum |ThrissurOracle Training in Kochi | Trivandrum |Thrissur
Oracle Training in Kochi | Trivandrum |Thrissur
 
Triggers
TriggersTriggers
Triggers
 
Md10 building java gu is
Md10 building java gu isMd10 building java gu is
Md10 building java gu is
 
Inventory aging report using oracle discoverer desktop
Inventory aging report using oracle discoverer desktopInventory aging report using oracle discoverer desktop
Inventory aging report using oracle discoverer desktop
 
Les01
Les01Les01
Les01
 
Les12
Les12Les12
Les12
 
Structured query language functions
Structured query language functionsStructured query language functions
Structured query language functions
 
The Ring programming language version 1.7 book - Part 25 of 196
The Ring programming language version 1.7 book - Part 25 of 196The Ring programming language version 1.7 book - Part 25 of 196
The Ring programming language version 1.7 book - Part 25 of 196
 
4sem dbms(1)
4sem dbms(1)4sem dbms(1)
4sem dbms(1)
 
Les03
Les03Les03
Les03
 
INSERCION DE REGISTROS DESDE VISUAL.NET A UNA BD DE SQL SERVER
INSERCION DE REGISTROS DESDE VISUAL.NET A UNA BD DE SQL SERVERINSERCION DE REGISTROS DESDE VISUAL.NET A UNA BD DE SQL SERVER
INSERCION DE REGISTROS DESDE VISUAL.NET A UNA BD DE SQL SERVER
 
Lecture 3 sql {basics ddl commands}
Lecture 3 sql {basics  ddl commands}Lecture 3 sql {basics  ddl commands}
Lecture 3 sql {basics ddl commands}
 
Oracle ERP Personalization for control master items list
Oracle ERP Personalization for control master items listOracle ERP Personalization for control master items list
Oracle ERP Personalization for control master items list
 
Writeable CTEs: The Next Big Thing
Writeable CTEs: The Next Big ThingWriteable CTEs: The Next Big Thing
Writeable CTEs: The Next Big Thing
 
Les09 Manipulating Data
Les09 Manipulating DataLes09 Manipulating Data
Les09 Manipulating Data
 
ZFINDALLZPROGAM
ZFINDALLZPROGAMZFINDALLZPROGAM
ZFINDALLZPROGAM
 
Lecture 4 sql {basics keys and constraints}
Lecture 4 sql {basics  keys and constraints}Lecture 4 sql {basics  keys and constraints}
Lecture 4 sql {basics keys and constraints}
 
SQL WORKSHOP::Lecture 1
SQL WORKSHOP::Lecture 1SQL WORKSHOP::Lecture 1
SQL WORKSHOP::Lecture 1
 
Sql 3
Sql 3Sql 3
Sql 3
 
Select To Order By
Select  To  Order BySelect  To  Order By
Select To Order By
 

Viewers also liked

Matlab practical file
Matlab practical fileMatlab practical file
Matlab practical fileArchita Misra
 
C++ neural networks and fuzzy logic
C++ neural networks and fuzzy logicC++ neural networks and fuzzy logic
C++ neural networks and fuzzy logicJamerson Ramos
 
Artificial Neural Network Lecture 6- Associative Memories & Discrete Hopfield...
Artificial Neural Network Lecture 6- Associative Memories & Discrete Hopfield...Artificial Neural Network Lecture 6- Associative Memories & Discrete Hopfield...
Artificial Neural Network Lecture 6- Associative Memories & Discrete Hopfield...Mohammed Bennamoun
 
Introduction to Neural networks (under graduate course) Lecture 8 of 9
Introduction to Neural networks (under graduate course) Lecture 8 of 9Introduction to Neural networks (under graduate course) Lecture 8 of 9
Introduction to Neural networks (under graduate course) Lecture 8 of 9Randa Elanwar
 
Compiler Design File
Compiler Design FileCompiler Design File
Compiler Design FileArchita Misra
 
Introduction to Neural networks (under graduate course) Lecture 7 of 9
Introduction to Neural networks (under graduate course) Lecture 7 of 9Introduction to Neural networks (under graduate course) Lecture 7 of 9
Introduction to Neural networks (under graduate course) Lecture 7 of 9Randa Elanwar
 
Dynamics 6th ed meriam solution
Dynamics 6th ed meriam solutionDynamics 6th ed meriam solution
Dynamics 6th ed meriam solutionfitsum2020
 
System Analysis and Design
System Analysis and DesignSystem Analysis and Design
System Analysis and DesignAamir Abbas
 
Core Java Slides
Core Java SlidesCore Java Slides
Core Java SlidesVinit Vyas
 

Viewers also liked (12)

Java File
Java FileJava File
Java File
 
Matlab practical file
Matlab practical fileMatlab practical file
Matlab practical file
 
C++ neural networks and fuzzy logic
C++ neural networks and fuzzy logicC++ neural networks and fuzzy logic
C++ neural networks and fuzzy logic
 
Artificial Neural Network Lecture 6- Associative Memories & Discrete Hopfield...
Artificial Neural Network Lecture 6- Associative Memories & Discrete Hopfield...Artificial Neural Network Lecture 6- Associative Memories & Discrete Hopfield...
Artificial Neural Network Lecture 6- Associative Memories & Discrete Hopfield...
 
Introduction to Neural networks (under graduate course) Lecture 8 of 9
Introduction to Neural networks (under graduate course) Lecture 8 of 9Introduction to Neural networks (under graduate course) Lecture 8 of 9
Introduction to Neural networks (under graduate course) Lecture 8 of 9
 
Compiler Design File
Compiler Design FileCompiler Design File
Compiler Design File
 
Introduction to Neural networks (under graduate course) Lecture 7 of 9
Introduction to Neural networks (under graduate course) Lecture 7 of 9Introduction to Neural networks (under graduate course) Lecture 7 of 9
Introduction to Neural networks (under graduate course) Lecture 7 of 9
 
Compiler design lab programs
Compiler design lab programs Compiler design lab programs
Compiler design lab programs
 
Dynamics 6th ed meriam solution
Dynamics 6th ed meriam solutionDynamics 6th ed meriam solution
Dynamics 6th ed meriam solution
 
Core java slides
Core java slidesCore java slides
Core java slides
 
System Analysis and Design
System Analysis and DesignSystem Analysis and Design
System Analysis and Design
 
Core Java Slides
Core Java SlidesCore Java Slides
Core Java Slides
 

Similar to Dbms file

Bootcamp sql fundamental
Bootcamp sql fundamentalBootcamp sql fundamental
Bootcamp sql fundamentalvarunbhatt23
 
Oracle naveen Sql
Oracle naveen   SqlOracle naveen   Sql
Oracle naveen Sqlnaveen
 
Oracle naveen Sql
Oracle naveen   SqlOracle naveen   Sql
Oracle naveen Sqlnaveen
 
SQL Quick Reference Card
SQL Quick Reference CardSQL Quick Reference Card
SQL Quick Reference CardTechcanvass
 
30 08 Final Sql
30 08 Final Sql30 08 Final Sql
30 08 Final Sqlsarov
 
Prabu's sql quries
Prabu's sql quries Prabu's sql quries
Prabu's sql quries Prabu Cse
 
MySQL-commands.pdf
MySQL-commands.pdfMySQL-commands.pdf
MySQL-commands.pdfssuserc5aa74
 
Mysql 120831075600-phpapp01
Mysql 120831075600-phpapp01Mysql 120831075600-phpapp01
Mysql 120831075600-phpapp01sagaroceanic11
 
MySQL Database System Hiep Dinh
MySQL Database System Hiep DinhMySQL Database System Hiep Dinh
MySQL Database System Hiep Dinhwebhostingguy
 
Les09 (using ddl statements to create and manage tables)
Les09 (using ddl statements to create and manage tables)Les09 (using ddl statements to create and manage tables)
Les09 (using ddl statements to create and manage tables)Achmad Solichin
 
SQL 🌟🌟🔥.pdf
SQL 🌟🌟🔥.pdfSQL 🌟🌟🔥.pdf
SQL 🌟🌟🔥.pdfLightWolf2
 
SQL learning notes and all code.pdf
SQL learning notes and all code.pdfSQL learning notes and all code.pdf
SQL learning notes and all code.pdf79TarannumMulla
 

Similar to Dbms file (20)

Sql
SqlSql
Sql
 
Bootcamp sql fundamental
Bootcamp sql fundamentalBootcamp sql fundamental
Bootcamp sql fundamental
 
Oracle naveen Sql
Oracle naveen   SqlOracle naveen   Sql
Oracle naveen Sql
 
Oracle naveen Sql
Oracle naveen   SqlOracle naveen   Sql
Oracle naveen Sql
 
My Sql concepts
My Sql conceptsMy Sql concepts
My Sql concepts
 
SQL Quick Reference Card
SQL Quick Reference CardSQL Quick Reference Card
SQL Quick Reference Card
 
30 08 Final Sql
30 08 Final Sql30 08 Final Sql
30 08 Final Sql
 
Parallel Server
Parallel ServerParallel Server
Parallel Server
 
My SQL.pptx
My SQL.pptxMy SQL.pptx
My SQL.pptx
 
Prabu's sql quries
Prabu's sql quries Prabu's sql quries
Prabu's sql quries
 
dbms.pdf
dbms.pdfdbms.pdf
dbms.pdf
 
MySQL-commands.pdf
MySQL-commands.pdfMySQL-commands.pdf
MySQL-commands.pdf
 
Mysql 120831075600-phpapp01
Mysql 120831075600-phpapp01Mysql 120831075600-phpapp01
Mysql 120831075600-phpapp01
 
Les09
Les09Les09
Les09
 
MySQL Database System Hiep Dinh
MySQL Database System Hiep DinhMySQL Database System Hiep Dinh
MySQL Database System Hiep Dinh
 
mysqlHiep.ppt
mysqlHiep.pptmysqlHiep.ppt
mysqlHiep.ppt
 
Les09 (using ddl statements to create and manage tables)
Les09 (using ddl statements to create and manage tables)Les09 (using ddl statements to create and manage tables)
Les09 (using ddl statements to create and manage tables)
 
1670595076250.pdf
1670595076250.pdf1670595076250.pdf
1670595076250.pdf
 
SQL 🌟🌟🔥.pdf
SQL 🌟🌟🔥.pdfSQL 🌟🌟🔥.pdf
SQL 🌟🌟🔥.pdf
 
SQL learning notes and all code.pdf
SQL learning notes and all code.pdfSQL learning notes and all code.pdf
SQL learning notes and all code.pdf
 

Recently uploaded

TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHTEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHSneha Padhiar
 
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithm
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithmComputer Graphics Introduction, Open GL, Line and Circle drawing algorithm
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithmDeepika Walanjkar
 
List of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdfList of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdfisabel213075
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingBootNeck1
 
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...Sumanth A
 
Turn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxTurn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxStephen Sitton
 
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdfDEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdfAkritiPradhan2
 
Artificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewArtificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewsandhya757531
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating SystemRashmi Bhat
 
Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating SystemRashmi Bhat
 
Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Romil Mishra
 
KCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosKCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosVictor Morales
 
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTFUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTSneha Padhiar
 
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书rnrncn29
 
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdfModule-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdfManish Kumar
 
CS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdfCS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdfBalamuruganV28
 
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATIONSOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATIONSneha Padhiar
 
Novel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsNovel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsResearcher Researcher
 
Katarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School CourseKatarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School Coursebim.edu.pl
 

Recently uploaded (20)

TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACHTEST CASE GENERATION GENERATION BLOCK BOX APPROACH
TEST CASE GENERATION GENERATION BLOCK BOX APPROACH
 
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithm
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithmComputer Graphics Introduction, Open GL, Line and Circle drawing algorithm
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithm
 
List of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdfList of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdf
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event Scheduling
 
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
Robotics-Asimov's Laws, Mechanical Subsystems, Robot Kinematics, Robot Dynami...
 
Turn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptxTurn leadership mistakes into a better future.pptx
Turn leadership mistakes into a better future.pptx
 
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdfDEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
 
Designing pile caps according to ACI 318-19.pptx
Designing pile caps according to ACI 318-19.pptxDesigning pile caps according to ACI 318-19.pptx
Designing pile caps according to ACI 318-19.pptx
 
Artificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewArtificial Intelligence in Power System overview
Artificial Intelligence in Power System overview
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating System
 
Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating System
 
Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________
 
KCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosKCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitos
 
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTFUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
 
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
 
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdfModule-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
 
CS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdfCS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdf
 
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATIONSOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
 
Novel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsNovel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending Actuators
 
Katarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School CourseKatarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School Course
 

Dbms file

  • 1. General Commands for tables Creating a table Command: create table <table name> (<attribute1> data type, <attribute2> data type,………………..<attribute N> data type); Describing a table Command: Descibe tablename; Inserting values into table Command: insert into <table name> values (<attribute1> , <attribute2> ,………………..<attribute N> data type);
  • 2. Creating Table with Primary Key Constraint Command: Create table tablename( <attribute1> datatype primary key); Viewing the table Command: select * from <table name>; Viewing selected columns in table Command: select * from <table name> where <attribute >=;
  • 3. Altering the table to modify Command: Alter table tablename modify(<attribute> datatype); Altering the table to add a column Command: Alter table tablename add(<attribute> datatype); To arrange data in some particular order in table (sorting) Command: select * from <table name> order by <col 1>, <col 2>;
  • 4. To drop columns from a table Command: Alter table tablename drop column columnname; Deleting a specific entry Command: delete from <table name> where <attribute 1=att. Value>; To change the name of existing table Command: rename <old table name> to <new table name>;
  • 5. Count Function Command: Select count(columnname) from tablename; Count Distinct Function Command: Select count(distinct columnname) from tablename; Maximum Function Command: Select max(columnname) from tablename;
  • 6. Minimum Function Command: Select sum(columnname) from tablename; Average Function Command: Select avg(columnname) from tablename;
  • 7. Numeric Functions Absolute Function Command: Select abs(value) from dual; Cosine Function Command: Select cos(value) from dual; Inverse Cosine Function Command: Select acos(value) from dual;
  • 8. Hyperbolic Cosine Command: Select cosh(value) from dual; Sine Function Command: Select sin(value) from dual; Inverse Sine Function Command: Select asin(value) from dual;
  • 9. Hyperbolic Sine Function Command: Select sinh(value) from dual; Tangent Function Command: Select tan(value) from dual; Inverse Tangent Function Command: Select atan(value) from dual;
  • 10. Hyperbolic Tangent Function Command: Select tanh(value) from dual; Exponenetial Function Command: Select exp(value) from dual; Mod Function Command: Select mod(num1 , num2) from dual;
  • 11. Power Function Command: Select power(num1 , num2) from dual; Natural Log Function Command: Select ln(value) from dual; Log Fuction Command: Select log(num , base) from dual;
  • 12. Ceiling Function Command: Select ceil(value) from dual; Floor Function Command: Select floor(value) from dual; Greatest Value Function Command: Select greatest(num1 , num2) from dual;
  • 13. Least Value Function Command: Select least(num1 , num2) from dual; Sign Function Command: Select sign(num) from dual; Square root of any value Command: Select sqrt(value) from dual;
  • 14. Date Functions To determine the system date of a computer Command: Select sysdate from dual; To add months in a date Command: Select add_months(sysdate , monthnum) from dual; To determine months between two dates Command: Select months_between(sysdate , ‘new date’) from dual;
  • 15. To round off the month/year of a date Command: Select round(sysdate, ‘month/year) from dual; To round off the month/year of a date using truncate Command: select trunc(‘date’, ‘month/year’) from dual; To determine the next day of the date Command: select next_day(‘date’, ‘day’) from dual;
  • 16. CHARACTER FUNCTION To change the lower case of a string to upper case Command: select upper(‘string’) from dual; To change the upper case of a string to lower case Command: select lower(‘string’) from dual; To change the first case of a string to upper case Command: select initcap(‘string’) from dual;
  • 17. To take out the substring from a string Command: select substr(‘string’ start, end) from dual; To find the position of character in a string Command: select instr(‘string’, ‘character’) from dual; To find the length of a string Command: select length(‘string’) from dual;
  • 18. To concatenate the two strings Command: select concat(‘string 1’, ‘string 2’) from dual; To insert symbol on left side in a string Command: select lpad(‘string’,size,’symbol’) from dual; To insert symbol on right side in a string Command: select rpad(‘string’,size,’symbol’) from dual;
  • 19. To trim the characters from left side in a string Command: select ltrim(‘string’,’characters’) from dual; To trim the characters from right side in a string Command: select rtrim(‘string’,’characters’) from dual; To replace the characters from a string Command: select replace(‘string’, ‘characters’, ’replacing characters’) from dual;