CONNECT:
jonmaas1978 AT gmail DOT com +1-310-500-5841
Oracle SQL Dictionary

Here is an Oracle SQL Dictionary, describing the concepts and with reference to names in other dialects and database languages if applicable. It is sortable, searchable and filterable with the help of keywords.

CategoryConcept / QueryOther Names / DatabasesPlain English DescriptionUse CaseKeywords
Data RetrievalSELECTSame in all SQLChoose which columns to display from a tableGetting specific data from a tableselect, query, retrieve, columns, display
Data RetrievalFROMSame in all SQLSpecify which table to queryIdentifying the source table for your datafrom, table, source
Data RetrievalWHERESame in all SQLFilter rows based on conditionsNarrowing down results to specific criteriawhere, filter, condition, criteria
Data RetrievalDISTINCTSame in all SQLRemove duplicate rows from resultsGetting unique values onlydistinct, unique, duplicates, remove
Data RetrievalFETCH FIRSTLIMIT (PostgreSQL, MySQL), TOP (SQL Server)Restrict number of rows returnedGetting top N resultsfetch, limit, top, restrict, top n
Data RetrievalROWNUMROW_NUMBER() (Standard SQL)Oracle-specific row numbering for limiting resultsLegacy way to limit rows in Oraclerownum, limit, row number, legacy
SortingORDER BYSame in all SQLSort results in ascending or descending orderOrganizing data by specific column valuesorder, sort, asc, desc, ascending, descending
SortingASCSame in all SQLSort in ascending order (A-Z, 1-10, oldest-newest)Default sorting from lowest to highestasc, ascending, low to high, a to z
SortingDESCSame in all SQLSort in descending order (Z-A, 10-1, newest-oldest)Sorting from highest to lowestdesc, descending, high to low, z to a
FilteringComparison OperatorsSame in all SQLUse =, !=, <, >, <=, >= to compare valuesFiltering based on numeric or text comparisonsequals, not equal, greater, less, comparison
FilteringBETWEENSame in all SQLFilter values within a range (inclusive)Finding values between two endpointsbetween, range, from to, inclusive
FilteringINSame in all SQLFilter rows matching any value in a listChecking if value exists in specified setin, list, match any, multiple values
FilteringLIKESame in all SQLPattern matching with wildcards (% and _)Searching for text patternslike, pattern, wildcard, percent, contains
FilteringIS NULLSame in all SQLCheck if value is NULL (missing/unknown)Finding rows with missing datanull, missing, empty, is null
FilteringIS NOT NULLSame in all SQLCheck if value has data (not NULL)Finding rows with populated datanot null, has value, populated, exists
Logical OperatorsANDSame in all SQLCombine conditions (all must be true)Requiring multiple conditions to be metand, both, all conditions, combine
Logical OperatorsORSame in all SQLCombine conditions (at least one must be true)Requiring any one of several conditionsor, either, any condition, alternative
Logical OperatorsNOTSame in all SQLNegate a conditionExcluding specific criterianot, negate, exclude, opposite
NULL HandlingNVLIFNULL (MySQL), ISNULL (SQL Server), COALESCE (Standard)Replace NULL with default value (2 args)Converting NULL to usable valuenvl, null value, replace null, default
NULL HandlingNVL2Oracle-specificReturn different values for NULL vs NOT NULL (3 args)Conditional handling based on NULL statusnvl2, null if, conditional null
NULL HandlingCOALESCESame in all SQLReturn first non-NULL value from listChecking multiple columns for first available valuecoalesce, first non-null, fallback, multiple
NULL HandlingNULLIFSame in all SQLReturn NULL if two values are equalConverting specific values to NULLnullif, convert to null, equal to null
AggregationCOUNTSame in all SQLCount number of rowsCounting total records or non-NULL valuescount, total, number, rows
AggregationSUMSame in all SQLAdd up numeric valuesCalculating totalssum, total, add, aggregate
AggregationAVGSame in all SQLCalculate average of numeric valuesFinding mean valueavg, average, mean
AggregationMINSame in all SQLFind minimum (smallest) valueGetting lowest valuemin, minimum, smallest, lowest
AggregationMAXSame in all SQLFind maximum (largest) valueGetting highest valuemax, maximum, largest, highest
AggregationCOUNT(DISTINCT)Same in all SQLCount unique values onlyCounting how many different values existcount distinct, unique count, distinct
GroupingGROUP BYSame in all SQLOrganize rows into groups for aggregationSummarizing data by categorygroup, group by, summarize, category
GroupingHAVINGSame in all SQLFilter groups after aggregationFiltering aggregated resultshaving, filter groups, post-aggregate filter
GroupingROLLUPSame in most SQLCreate subtotals and grand totalsHierarchical summary reportsrollup, subtotals, grand total, hierarchy
GroupingCUBESame in most SQLCreate all possible grouping combinationsMulti-dimensional analysiscube, all combinations, cross-tab
GroupingGROUPING SETSSame in most SQLSpecify exact grouping combinationsCustom aggregation groupingsgrouping sets, custom groups, specific combinations
JoinsINNER JOINJOIN (Standard SQL)Return only matching rows from both tablesCombining related data from multiple tablesinner join, join, matching, intersection
JoinsLEFT JOINLEFT OUTER JOIN (Standard)Return all from left table plus matches from rightKeeping all records from primary tableleft join, left outer join, keep left, all from left
JoinsRIGHT JOINRIGHT OUTER JOIN (Standard)Return all from right table plus matches from leftKeeping all records from secondary tableright join, right outer join, keep right, all from right
JoinsFULL OUTER JOINFULL JOIN (Standard)Return all rows from both tablesSeeing everything from both tablesfull outer join, full join, all from both, everything
JoinsCROSS JOINSame in all SQLCartesian product of two tablesCreating all possible combinationscross join, cartesian product, all combinations
JoinsSELF JOINSame technique in all SQLJoin table to itselfComparing rows within same tableself join, self-reference, employee-manager, hierarchy
JoinsONSame in all SQLSpecify join conditionDefining how tables relateon, join condition, match on, relationship
SubqueriesSubqueryNested Query, Inner Query (all SQL)Query within another queryUsing calculated results in main querysubquery, nested, inner query, sub-select
SubqueriesScalar SubquerySame in all SQLSubquery returning single valueAdding calculated column to resultsscalar, single value, calculated column
SubqueriesInline ViewDerived Table (Standard SQL)Subquery in FROM clauseCreating temporary result setinline view, derived table, subquery from, temporary
SubqueriesCorrelated SubquerySame in all SQLSubquery referencing outer queryComparing each row to its groupcorrelated, references outer, row-by-row
SubqueriesEXISTSSame in all SQLCheck if subquery returns any rowsTesting for presence of related dataexists, check presence, any rows
SubqueriesNOT EXISTSSame in all SQLCheck if subquery returns no rowsTesting for absence of related datanot exists, check absence, no rows
SubqueriesIN with subquerySame in all SQLCheck if value matches any in subquery listFiltering against multiple valuesin, match any, list, multiple
SubqueriesNOT INSame in all SQLCheck if value matches none in subquery listExcluding multiple valuesnot in, exclude, not match, none
Set OperatorsUNIONSame in all SQLCombine results, remove duplicatesMerging similar datasets into one unique listunion, combine, merge, remove duplicates
Set OperatorsUNION ALLSame in all SQLCombine results, keep duplicatesMerging datasets faster without deduplicationunion all, combine all, keep duplicates, fast
Set OperatorsINTERSECTSame in all SQLReturn only rows in both queriesFinding common elements between datasetsintersect, overlap, common, both, intersection
Set OperatorsMINUSEXCEPT (PostgreSQL, SQL Server)Return rows in first query not in secondFinding differences between datasetsminus, except, difference, not in second
Window FunctionsROW_NUMBERSame in all SQLAssign unique sequential number to rowsRanking with unique numbers, paginationrow_number, sequence, unique rank, number rows
Window FunctionsRANKSame in all SQLAssign rank with gaps for tiesRanking where ties get same rankrank, ranking, gaps, ties
Window FunctionsDENSE_RANKSame in all SQLAssign rank without gaps for tiesRanking without gaps in sequencedense_rank, ranking, no gaps, consecutive
Window FunctionsNTILESame in all SQLDivide rows into N bucketsCreating quartiles, percentiles, or groupsntile, buckets, quartiles, percentiles, divide
Window FunctionsLAGSame in all SQLAccess previous row valueComparing to previous recordlag, previous, prior row, look back
Window FunctionsLEADSame in all SQLAccess next row valueComparing to next recordlead, next, following row, look ahead
Window FunctionsFIRST_VALUESame in all SQLGet first value in windowFinding first value in partitionfirst_value, first, earliest in group
Window FunctionsLAST_VALUESame in all SQLGet last value in windowFinding last value in partitionlast_value, last, latest in group
Window FunctionsOVERSame in all SQLDefine window for window functionCreating window for calculationsover, window, partition
Window FunctionsPARTITION BYSame in all SQLDivide rows into groups for window functionResetting calculations per grouppartition, partition by, group window, reset
Window FunctionsROWS BETWEENSame in all SQLDefine exact window frameSpecifying moving or sliding windowsrows between, window frame, range, sliding
Window FunctionsRANGE BETWEENSame in all SQLDefine value-based window frameCreating windows based on value rangesrange between, value window, logical range
Conditional LogicCASESame in all SQLIF-THEN-ELSE logic in SQLCreating conditional valuescase, case when, if-then, conditional
Conditional LogicCASE WHENSame in all SQLSpecify conditions in CASE statementDefining IF conditionscase when, when, condition, if
Conditional LogicTHENSame in all SQLSpecify result when condition is trueDefining result for true conditionthen, result, return
Conditional LogicELSESame in all SQLSpecify default result when no conditions matchDefining default/fallback valueelse, default, otherwise, fallback
Conditional LogicENDSame in all SQLClose CASE statementCompleting CASE logicend, close case, terminate
String FunctionsCONCATPipe Pipe (Oracle), CONCAT (Standard), Plus (SQL Server)Combine strings togetherJoining text valuesconcat, concatenate, combine, join strings
String FunctionsSUBSTRSUBSTRING (Standard SQL)Extract portion of stringGetting part of textsubstr, substring, extract, part of string
String FunctionsLENGTHLEN (SQL Server), LENGTH (PostgreSQL)Get number of characters in stringCounting characterslength, len, count characters, string length
String FunctionsUPPERSame in all SQLConvert text to uppercaseMaking text all capsupper, uppercase, caps, ucase
String FunctionsLOWERSame in all SQLConvert text to lowercaseMaking text all lowercaselower, lowercase, lcase
String FunctionsTRIMSame in all SQLRemove leading/trailing spacesCleaning up whitespacetrim, remove spaces, strip, whitespace
String FunctionsLTRIMSame in all SQLRemove leading (left) spacesCleaning left whitespaceltrim, left trim, remove left spaces
String FunctionsRTRIMSame in all SQLRemove trailing (right) spacesCleaning right whitespacertrim, right trim, remove right spaces
String FunctionsREPLACESame in all SQLReplace text with different textSubstituting text valuesreplace, substitute, swap, change text
String FunctionsINSTRCHARINDEX (SQL Server), POSITION (PostgreSQL)Find position of substringLocating text within stringinstr, position, find, locate, charindex
String FunctionsLPADOracle-specificPad string on left to specified lengthAdding characters to leftlpad, left pad, pad left, fill left
String FunctionsRPADOracle-specificPad string on right to specified lengthAdding characters to rightrpad, right pad, pad right, fill right
Date FunctionsSYSDATEGETDATE (SQL Server), NOW (MySQL), CURRENT_TIMESTAMP (Standard)Get current date and timeGetting current system date/timesysdate, now, current date, today, getdate
Date FunctionsTO_DATESTR_TO_DATE (MySQL), CONVERT (SQL Server)Convert string to dateParsing text into date formatto_date, parse date, convert to date, string to date
Date FunctionsTO_CHARFORMAT (SQL Server), TO_CHAR (PostgreSQL)Convert date to formatted stringFormatting dates for displayto_char, format date, date to string
Date FunctionsADD_MONTHSDATEADD (SQL Server), DATE_ADD (MySQL)Add months to dateCalculating future/past dates by monthsadd_months, add months, date math, future date
Date FunctionsMONTHS_BETWEENDATEDIFF (SQL Server), age (PostgreSQL)Calculate months between two datesFinding duration in monthsmonths_between, date difference, months apart, duration
Date FunctionsTRUNC (date)DATE_TRUNC (PostgreSQL), CAST (SQL Server)Truncate date to specified unitRemoving time portion or rounding datetrunc, truncate date, round date, strip time
Date FunctionsEXTRACTSame in all SQLExtract part of date (year, month, day)Getting specific date componentextract, get year, get month, date part
Date FunctionsLAST_DAYOracle-specificGet last day of monthFinding month end datelast_day, end of month, month end
Date FunctionsNEXT_DAYOracle-specificGet next occurrence of day of weekFinding next Monday, Tuesday, etcnext_day, next weekday, day of week
Date FunctionsROUND (date)Oracle date roundingRound date to specified unitRounding dates to nearest day/month/yearround date, round, nearest date
Numeric FunctionsROUNDSame in all SQLRound number to specified decimalsRounding to decimal placesround, round number, decimals, precision
Numeric FunctionsTRUNC (numeric)FLOOR (Standard SQL)Truncate number (cut off decimals)Removing decimal portiontrunc, truncate, cut decimals, floor
Numeric FunctionsCEILCEILING (Standard SQL)Round up to next integerAlways rounding upceil, ceiling, round up
Numeric FunctionsFLOORSame in all SQLRound down to previous integerAlways rounding downfloor, round down
Numeric FunctionsMODPercent (SQL Server), MOD (PostgreSQL)Get remainder after divisionFinding modulo/remaindermod, modulo, remainder, division remainder
Numeric FunctionsABSSame in all SQLGet absolute value (remove negative sign)Converting negative to positiveabs, absolute, positive, magnitude
Numeric FunctionsSIGNSame in all SQLGet sign of number (-1, 0, 1)Determining if positive or negativesign, positive, negative, direction
Numeric FunctionsPOWERSame in all SQLRaise number to powerCalculating exponentspower, exponent, raise to power
Numeric FunctionsSQRTSame in all SQLCalculate square rootFinding square rootsqrt, square root, root
Conversion FunctionsTO_NUMBERCAST (Standard), CONVERT (SQL Server)Convert string to numberParsing text as numericto_number, string to number, parse number
Conversion FunctionsTO_CHARCAST (Standard), CONVERT (SQL Server)Convert number/date to stringFormatting for displayto_char, number to string, format
Conversion FunctionsCASTSame in all SQLConvert between data typesGeneral type conversioncast, convert, change type, data type
Conversion FunctionsDECODECASE WHEN (Standard SQL)Oracle IF-THEN-ELSE functionConditional value mappingdecode, if-then, conditional, oracle case
Data ManipulationINSERTSame in all SQLAdd new rows to tableCreating new recordsinsert, add, create, new row
Data ManipulationINSERT ALLOracle-specificInsert multiple rows in one statementBulk inserting with different valuesinsert all, multi-insert, bulk insert
Data ManipulationUPDATESame in all SQLModify existing rowsChanging dataupdate, modify, change, edit
Data ManipulationDELETESame in all SQLRemove rows from tableDeleting recordsdelete, remove, erase, drop rows
Data ManipulationTRUNCATESame in all SQLQuickly remove all rows (no rollback)Fast table clearingtruncate, clear table, remove all, fast delete
Data ManipulationMERGEUPSERT (PostgreSQL), MERGE (SQL Server)Insert or update in one operationHandling updates or inserts conditionallymerge, upsert, insert or update, synchronize
Transaction ControlCOMMITSame in all SQLPermanently save changesMaking changes permanentcommit, save, permanent, finalize
Transaction ControlROLLBACKSame in all SQLUndo changes since last commitCanceling changesrollback, undo, cancel, revert
Transaction ControlSAVEPOINTSame in all SQLCreate intermediate save pointPartial rollback pointssavepoint, checkpoint, partial save
Table DefinitionCREATE TABLESame in all SQLDefine new table structureBuilding new tablecreate table, define table, new table, ddl
Table DefinitionALTER TABLESame in all SQLModify existing table structureChanging table structurealter, modify table, change structure
Table DefinitionDROP TABLESame in all SQLDelete table completelyRemoving table permanentlydrop, delete table, remove table
Table DefinitionRENAMEALTER TABLE…RENAME (Standard SQL)Change table nameRenaming tablerename, change name, rename table
Table DefinitionCOMMENTOracle-specific syntaxAdd description to table/columnDocumenting database objectscomment, description, documentation
ConstraintsPRIMARY KEYSame in all SQLUnique identifier for each rowUniquely identifying recordsprimary key, pk, unique id, identifier
ConstraintsFOREIGN KEYSame in all SQLLink to another tableCreating relationships between tablesforeign key, fk, reference, relationship
ConstraintsUNIQUESame in all SQLEnsure all values are differentPreventing duplicatesunique, unique constraint, no duplicates, distinct values
ConstraintsNOT NULLSame in all SQLRequire value (no NULLs allowed)Mandating data entrynot null, required, mandatory, must have value
ConstraintsCHECKSame in all SQLEnforce business rulesValidating datacheck, validation, business rule, constraint
ConstraintsDEFAULTSame in all SQLAutomatic value if none providedSetting default valuesdefault, default value, automatic value
IndexesCREATE INDEXSame in all SQLBuild index for faster queriesSpeeding up searchescreate index, index, performance, speed up
IndexesDROP INDEXSame in all SQLRemove indexDeleting indexdrop index, remove index, delete index
IndexesUNIQUE INDEXSame in all SQLIndex ensuring unique valuesEnforcing uniqueness with performanceunique index, unique, index constraint
ViewsCREATE VIEWSame in all SQLCreate virtual table based on queryCreating reusable querycreate view, view, virtual table, saved query
ViewsCREATE MATERIALIZED VIEWOracle/PostgreSQLCreate physical cached result setPre-computing expensive queriesmaterialized view, mview, cached query, pre-compute
ViewsDROP VIEWSame in all SQLDelete viewRemoving viewdrop view, delete view, remove view
ViewsREFRESHOracle-specificUpdate materialized view dataRefreshing cached datarefresh, update view, reload
AdvancedWITHCTE (SQL Server), WITH (PostgreSQL)Common Table Expression for temp resultsCreating named temporary result setswith, cte, common table expression, temp query
AdvancedRECURSIVEWITH RECURSIVE (Standard SQL)Self-referencing queryTraversing hierarchiesrecursive, hierarchy, self-reference, tree
AdvancedCONNECT BYOracle-specificNavigate hierarchical dataOracle hierarchy traversalconnect by, hierarchy, tree, start with, prior
AdvancedSTART WITHOracle-specificDefine root of hierarchyStarting point for hierarchystart with, root, hierarchy start
AdvancedPRIOROracle-specificReference parent in hierarchyParent-child relationshipprior, parent, hierarchy reference
AdvancedLEVELOracle-specificDepth in hierarchyHow many levels deeplevel, depth, hierarchy level
AdvancedPIVOTOracle/SQL ServerTransform rows to columnsCreating crosstab reportspivot, rows to columns, crosstab, spreadsheet
AdvancedUNPIVOTOracle/SQL ServerTransform columns to rowsNormalizing dataunpivot, columns to rows, normalize
AdvancedLISTAGGSTRING_AGG (PostgreSQL, SQL Server)Concatenate values from multiple rowsCombining rows into delimited stringlistagg, string_agg, concatenate rows, aggregate string
AdvancedEXPLAIN PLANEXPLAIN (PostgreSQL), SHOWPLAN (SQL Server)Show query execution planAnalyzing query performanceexplain plan, execution plan, query plan, performance
PerformanceANALYZEANALYZE (PostgreSQL), UPDATE STATISTICS (SQL Server)Update table statisticsRefreshing optimizer statisticsanalyze, statistics, update stats, optimizer
PerformanceHINTQuery hints in SQL ServerSuggest execution method to optimizerForcing specific execution pathhint, optimizer hint, force plan, performance tuning
SequencesCREATE SEQUENCEIDENTITY (SQL Server), SERIAL (PostgreSQL)Create auto-incrementing number generatorGenerating unique IDssequence, auto-increment, identity, serial, generator
SequencesNEXTVALNEXT VALUE FOR (SQL Server), nextval (PostgreSQL)Get next sequence valueGetting next IDnextval, next value, increment, next id
SequencesCURRVALOracle-specificGet current sequence valueGetting last generated IDcurrval, current value, last id
SystemDUALNot needed in other SQLOracle dummy table for SELECTRunning SELECT without real tabledual, dummy table, test query
SystemUSERCURRENT_USER (Standard SQL)Get current database usernameIdentifying logged-in useruser, current_user, username, session user
SystemSYS_GUIDNEWID (SQL Server), gen_random_uuid (PostgreSQL)Generate unique identifierCreating GUIDs/UUIDssys_guid, guid, uuid, unique id, newid
Privacy Settings
We use cookies to enhance your experience while using our website. If you are using our Services via a browser you can restrict, block or remove cookies through your web browser settings. We also use content and scripts from third parties that may use tracking technologies. You can selectively provide your consent below to allow such third party embeds. For complete information about the cookies we use, data we collect and how we process them, please check our Privacy Policy
Youtube
Consent to display content from Youtube
Vimeo
Consent to display content from Vimeo
Google Maps
Consent to display content from Google