Introduction to Oracle SQL | Oracle SQL Tutorial - LearnHowToCode SarkariResult.com Interview Questions and Answers LearnHowToCodeOnline
Introduction to Oracle SQL

Introduction to Oracle SQL | Oracle SQL Tutorial

Introduction to Oracle SQL | Oracle SQL Tutorial 

Oracle database is a relational database management system.
It is known as Oracle database, OracleDB or simply Oracle. It is produced and marketed by Oracle Corporation.
Oracle database is the first database designed for enterprise grid computing. The enterprise grid computing provides the most flexible and cost effective way to manage information and applications.

Different editions of Oracle database

Following are the four editions of the Oracle database.
  • Enterprise Edition: It is the most robust and secure edition. It offers all features, including superior performance and security.
  • Standard Edition: It provides the base functionality for users that do not require Enterprise Edition's robust package.
  • Express Edition (XE): It is the lightweight, free and limited Windows and Linux edition.
  • Oracle Lite: It is designed for mobile devices.

The Oracle Corporation

Oracle Corporation is the largest software company in the field of database business. Its relational database was the first to support SQL which has since become the industry standard.
Oracle database is one of the most trusted and widely used relational database engines. The biggest rival of Oracle database is Microsoft's SQL Server.

History of Oracle

Oracle was originally developed by Lawrence Ellison (Larry Ellision) and his two friends and former co-worker in 1977. Oracle DB runs on the most major platforms like Windows, UNIX, Linux and Mac OS.



Oracle String Functions

FunctionDescription
ASCIIReturns the number code that represents the specified character
ASCIISTRConverts a string in any character set to an ASCII string using the database character set
CHRReturns the character based on the number code
COMPOSEReturns a Unicode string
CONCATAllows you to concatenate two strings together
Concat with ||Allows you to concatenate two or more strings together
CONVERTConverts a string from one character set to another
DECOMPOSEAccepts a string and returns a Unicode string
DUMPReturns a varchar2 value that includes the datatype code, the length in bytes, and the internal representation of the expression
INITCAPSets the first character in each word to uppercase and the rest to lowercase
INSTRReturns the location of a substring in a string
INSTR2Returns the location of a substring in a string, using UCS2 code points
INSTR4Returns the location of a substring in a string, using UCS4 code points
INSTRBReturns the location of a substring in a string, using bytes instead of characters
INSTRCReturns the location of a substring in a string, using Unicode complete characters
LENGTHReturns the length of the specified string
LENGTH2Returns the length of the specified string, using UCS2 code points
LENGTH4Returns the length of the specified string, using UCS4 code points
LENGTHBReturns the length of the specified string, using bytes instead of characters
LENGTHCReturns the length of the specified string, using Unicode complete of characters
LOWERConverts all letters in the specified string to lowercase
LPADPads the left-side of a string with a specific set of characters
LTRIMRemoves all specified characters from the left-hand side of a string
NCHRReturns the character based on the number code in the national character set
REGEXP_INSTRReturns the location of a regular expression pattern in a string
REGEXP_REPLACEAllows you to replace a sequence of characters in a string with another set of characters using regular expression pattern matching
REGEXP_SUBSTRAllows you to extract a substring from a string using regular expression pattern matching
REPLACEReplaces a sequence of characters in a string with another set of characters
RPADPads the right-side of a string with a specific set of characters
RTRIMRemoves all specified characters from the right-hand side of a string
SOUNDEXReturns a phonetic representation (the way it sounds) of a string
SUBSTRAllows you to extract a substring from a string
TRANSLATEReplaces a sequence of characters in a string with another set of characters
TRIMRemoves all specified characters either from the beginning or the end of a string
UPPERConverts all letters in the specified string to uppercase
VSIZEReturns the number of bytes in the internal representation of an expression


Oracle Numeric Functions

FunctionDescription
ABSReturns the absolute value of a number
ACOSReturns the arc cosine of a number
ASINReturns the arc sine of a number
ATANReturns the arc tangent of a number
ATAN2Returns the arc tangent of n and m
AVGReturns the average value of an expression
BITANDReturns an integer representing an AND operation on the bits of expr1 and expr2
CEILReturns the smallest integer value that is greater than or equal to a number
COSReturns the cosine of a number
COSHReturns the hyperbolic cosine of a number
COUNTReturns the count of an expression
EXPReturns e raised to the power of number
FLOORReturns the largest integer value that is equal to or less than a number
GREATESTReturns the greatest value in a list of expressions
LEASTReturns the smallest value in a list of expressions
LNReturns the natural logarithm of a number
LOGReturns the natural logarithm of a number to a specified base
MAXReturns the maximum value of an expression
MEDIANReturns the median of an expression
MINReturns the minimum value of an expression
MODReturns the remainder of n divided by m
POWERReturns m raised to the nth power
REGEXP_COUNTCounts the number of times that a pattern occurs in a string
REMAINDERReturns the remainder of m divided by n
ROUNDReturns a number rounded to a certain number of decimal places
ROWNUMReturns a number that represents the order that a row is
SIGNReturns a value indicating the sign of a number
SINReturns the sine of a number
SQRTReturns the square root of a number
SUMReturns the summed value of an expression
TANReturns the tangent of a number
TANHReturns the hyperbolic tangent of n
TRUNCReturns a number truncated to a certain number of decimal places

Oracle Date Functions

FunctionDescription
ADD_MONTHSReturns a date with a specified number of months added
CURRENT_DATEReturns the current date in the time zone of the current SQL session as set by the ALTER SESSION command
CURRENT_TIMESTAMPReturns the current date and time in the time zone of the current SQL session as set by the ALTER SESSION command
DBTIMEZONEreturns the database time zone as a time zone offset or a time zone region name
EXTRACTExtracts a value from a date or interval value
LAST_DAYReturns the last day of the month based on a date value
LOCALTIMESTAMPReturns the current date and time in the time zone of the current SQL session as set by the ALTER SESSION command
MONTHS_BETWEENReturns the number of months between date1 and date2
NEW_TIMEConverts a date from time zone1 to a date in time zone2
NEXT_DAYReturns the first weekday that is greater than a date
ROUNDReturns a date rounded to a specific unit of measure
SESSIONTIMEZONEReturns the current session's time zone as a time zone offset or a time zone region name
SYSDATEReturns the current system date and time on your local database
SYSTIMESTAMPReturns the current system date and time (including fractional seconds and time zone) on your local database
TRUNCReturns a date truncated to a specific unit of measure
TZ_OFFSETReturns the time zone offset of a value

About Mariano

I'm Ethan Mariano a software engineer by profession and reader/writter by passion.I have good understanding and knowledge of AngularJS, Database, javascript, web development, digital marketing and exploring other technologies related to Software development.

0 comments:

Featured post

Political Full Forms List

Acronym Full Form MLA Member of Legislative Assembly RSS Really Simple Syndication, Rashtriya Swayamsevak Sangh UNESCO United Nations E...

Powered by Blogger.