Home
Videos uploaded by user “Database Star”
Agile Vs Waterfall - Four Massive Differences
 
04:49
http://www.databasestar.com/agile-vs-waterfall/ A short video explaining some of the key differences between Agile and Waterfall software development methodologies.
Views: 70881 Database Star
How to Install Oracle Database 12c on Windows 10
 
08:46
https://www.databasestar.com/oracle-hq/ - This video takes you through the exact steps required to install Oracle Database 12c on Windows 10. It uses 12c Release 2 Standard Edition, but the same steps can be followed for installing Oracle 12c Enterprise Edition. The steps involved are: 1. Visit www.oracle.com and go to Downloads - Database - Oracle Database 2. Log in with your Oracle account (or create one) and download the ZIP file 3. Extract the ZIP file 4. Run setup.exe as an administrator 5. Follow the steps in the installer 6. Log in to the database using SQL*Plus to check it has installed correctly For more information on Oracle SQL, visit my website at www.databasestar.com. There you'll find guides on various Oracle SQL topics and tips on improving your career. Finally, if you like the video, don't forget to subscribe to the channel! Thanks!
Views: 15650 Database Star
Self Join (Introduction to Oracle SQL)
 
04:57
Learn what a self join is and when you can use one. The full Introduction to Oracle SQL course is available here: https://www.databasestar.com/introduction-to-oracle-sql-course/
Views: 1802 Database Star
How To Create and Populate Tables in SQL Developer
 
03:27
http://softwaredeveloperacademy.com/get-introduction-to-oracle-sql/?utm_source=youtube&utm_medium=video&utm_campaign=isqlpreview - A demonstration of how to create and populate the tables needed for the Introduction to Oracle SQL course.
Views: 13027 Database Star
How to Install Oracle Express Edition 11g
 
05:49
This video will show you how to install Oracle Express Edition on your computer. Oracle Express runs on a Windows PC and allows you to easily use an Oracle database. It's easier to install than the full 11g or 12c version, and allows you to perform and practice your SQL queries. The steps are: 1. Visit www.oracle.com 2. Download Oracle Express (at the time of recording, the latest version of Oracle Express is 11g) 3. Install Oracle Express There are a few steps within this process, which the video demonstrates. Also, remember the password you enter during installation! You'll need it when you set up connections in your IDE and when you log in via SQL*Plus If you like the video, subscribe to my channel and click the thumbs up!
Views: 2391 Database Star
Oracle TO_NUMBER Function
 
02:42
https://www.databasestar.com/oracle-to_number/ The Oracle TO_NUMBER function is used to convert a text value into a number value. It’s similar to TO_CHAR and TO_DATE, but converts a value to a number. The number will also be rounded to a specified number of digits, and returned as a NUMBER value. The syntax is: TO_NUMBER( input_value, [format_mask], [nls_parameter] ) The input_value is the value to be converted to a number. Commonly this is provided as a string (e.g. CHAR or VARCAHR2) but can be several other data types as well. The format_mask is the format that the output value should be displayed as. It must be a valid number format. This is an optional value. The final parameter, nls_date_language, is used to work out how the output is displayed, such as how to display currency symbols. It’s also an optional value. For more information about the Oracle TO_NUMBER function, including all of the SQL shown in this video and the examples, read the related article here: https://www.databasestar.com/oracle-to_number/
Views: 1795 Database Star
Oracle CAST Function
 
03:23
https://www.databasestar.com/oracle-cast/ The Oracle CAST function allows you to convert one data type to another. It’s similar to the TO_NUMBER, TO_DATE, and TO_CHAR functions, but allows for more functionality, including converting to many other data types. The syntax of the CAST function is: CAST( {expr | MULTISET (subquery) } AS type_name ) The structure of this function is different to other functions, because it uses the word AS to separate parameters rather than a comma. You can run this function like many other functions, on a single row, which would look like this: CAST( expr AS type_name ) Or, you can run it as though it’s a subquery, using the MULTISET feature: CAST( MULTISET (subquery) AS type_name ) The parameters of the CAST function are: - expr (mandatory choice): This is the value or expression that is to be converted to another data type. - MULTISET (optional): This keyword indicates that the subquery results will return multiple rows, and are then CAST into a collection value. If this is omitted, and the subquery returns multiple rows, it will only return a single row. - subquery (mandatory choice): This is the subquery that can be run to be converted into a collection data type. - type_name (mandatory): This is the Oracle data type that the expr or subquery will be converted to. There are several data types that are compatible with the CAST function, both for converting from and to. You can find the full list in the article mentioned below. For more information about the Oracle CAST function, including all of the SQL shown in this video and the examples, read the related article here: https://www.databasestar.com/oracle-cast/
Views: 1664 Database Star
Oracle LISTAGG Function
 
04:57
https://www.databasestar.com/oracle-listagg/ The Oracle LISTAGG function allows you to aggregate or combine string values from multiple rows into a single row. For example, it turns this data: FIRST_NAME Adam Brad Carrie Into this data: FIRST_NAME Adam, Brad, Carrie The same data is shown, but it’s in one row and not multiple. It’s a valuable string manipulation function, and once you know what it is and how it works, you’ll be able to use it in your queries as needed. So what does it look like? The function is: LISTAGG ( measure_expr [, delimiter]) WITHIN GROUP (order_by_clause) [OVER query_partition_clause] These parameters are: measure_expr: This is a column or expression that you want to concatenate the values of. In the example above, it was the first_name column. Mandatory. delimiter: This is the character between each of the measure_expr values. Optional, the default is a comma. order_by_clause: This is the order that the values from the measure_expr are listed. Mandatory. query_partition_clause: This allows you to use LISTAGG as an analytic function, allowing you to show LISTAGG in groups for different rows. One thing to be aware of is that the output of the Oracle LISTAGG function is limited to 4,000 bytes. If you get more than this, you’ll receive an error. The most common way around this that I’ve seen is to write a custom function and use a CLOB. Watch the video to find out more and see some examples. For more information about the Oracle LISTAGG function, including all of the SQL shown in this video and the examples, read the related article here: https://www.databasestar.com/oracle-listagg/
Views: 2043 Database Star
Oracle INSTR Function
 
03:28
https://www.databasestar.com/oracle-instr/ The Oracle INSTR function allows you to search a string for the occurrence of another string, and return the position of the occurrence within a string. It’s helpful for finding if a string exists within another string. It can also be used for performing further string manipulation on, like substrings. The syntax of the INSTR function is: INSTR(string, substring [, start_position [, occurrence]]) These parameters are: string: The text string that is searched in. It’s usually the larger of the two strings. Mandatory. substring: The text to search for. It’s usually the smaller of the two strings. Mandatory. start_position: This is an integer value which indicates where in the string value to start the search. Optional, and the default is 1. occurrence: The occurrence of the substring to search for. Optional, and the default is 1, which means the first occurrence. Also, the searches performed by the INSTR function are case-sensitive. The value returned by INSTR is a number value, which is the number in the location of the string where the substring is found. The first character is 1. For more information about the Oracle INSTR function, including all of the SQL shown in this video and the examples, read the related article here: https://www.databasestar.com/oracle-instr/
Views: 4131 Database Star
Oracle MONTHS_BETWEEN Function
 
02:17
https://www.databasestar.com/oracle-months_between/ The Oracle MONTHS_BETWEEN function allows you to find the number of months between two dates. You can enter two dates and the function returns the difference. This function is often used as part of other calculations. Sometimes you’ll want to know the difference between two dates to perform other functions. The syntax of the MONTHS_BETWEEN function is: MONTHS_BETWEEN(date1, date2) What do these two parameters mean? The function performs date1 minus date2. So, if date1 is larger, the result is positive. If date2 is larger, then the result is negative. What data type is returned? It depends on the values you provide. If the dates are both on the same day of the month (e.g. both on the 10th of the month), then the result is an integer or whole number. If not, then the result will be a decimal value. For more information on the MONTHS_BETWEEN function, including the code used in this video and examples, read the related article here: https://www.databasestar.com/oracle-months_between/
Views: 718 Database Star
How to Resolve Oracle SQL Parent Key Not Found (ORA-02291)
 
05:49
In this video, we’ll explain what the ORA-02291 “parent key not found” error is, see an example, and look at how to resolve it. This error usually happens when we try to insert data into a table. It looks like this: Error is: ORA-02291: integrity constraint (constraint_name) violated - parent key not found So what does this error mean? It means we’re trying to insert data into a child table, and there is no related record in the parent table. If a foreign key has been set up to enforce this relationship, there needs to be a parent to insert a child that refers to it. Watch the video to see an example of this error as well as how to resolve it. For more information on Oracle SQL, refer to the Database Star website here: https://www.databasestar.com/
Views: 723 Database Star
How to Install Oracle SQL Developer
 
09:17
This video explains how to install SQL Developer. Oracle's SQL Developer is a free SQL IDE, which allows you to write and run SQL statements on an Oracle database. It can be used with Oracle Express, or the full version of Oracle database. In summary, the steps are: 1. Download SQL Developer from www.oracle.com 2. Optionally, download the JDK from the same page 3. Extract the ZIP files 4. Optionally, install the JDK 5. Run SQL Developer 6. Set up a connection to your database SQL Developer has improved over the last few years and it's a great IDE to use for your development. It's recommended by many in the industry, and it's easy to set up as well. If you enjoy this video, please like it and subscribe to my channel. Thanks!
Views: 1239 Database Star
Oracle TO_CHAR Function
 
04:13
https://www.databasestar.com/oracle-to_char/ The Oracle TO_CHAR function is a common and useful string manipulation function. It allows you to convert a number or a date value into a string value. It allows you to take a number or a string, and convert it to a VARCHAR2 data type. The syntax of the function is: TO_CHAR( input_value, [format_mask], [nls_parameter] ) The parameters are: - input_value: this is the value to convert to a VARCHAR2 value. It can be one of many different number or date data types. - format_mask is an optional parameter and allows you to specify the format to display the output as. If this is omitted, the function uses a default format. - nls_parameter: this is also optional and lets you determine a regional parameter for displaying the output value. The format mask helps you determine what your output is displayed as. For example, if you provide the date of May 3rd, and the output is ‘03/05/2018’, how do you know if this is May 3rd or March 5th? Using a format mask can specify which format is used. The function is similar to the TO_NUMBER and TO_DATE functions, in that they both convert a specific data type. For more information about the Oracle TO_CHAR function, including all of the SQL shown in this video and the examples, read the related article here: https://www.databasestar.com/oracle-to_char/
Views: 264 Database Star
Natural Join (Introduction to Oracle SQL)
 
03:21
Find out what a natural join is and when you should/shouldn't use it. The full Introduction to Oracle SQL course is available here: https://www.databasestar.com/introduction-to-oracle-sql-course/
Views: 803 Database Star
SQL Developer   Create User
 
02:36
https://www.databasestar.com/introduction-oracle-sql-course/ In this video, we’ll look at how to create a new user on an Oracle database in SQL Developer. In an Oracle database, there are a couple of user accounts already created. However, these are system accounts, which have a lot of privileges. This can be dangerous as you (or other users) could do something bad to the database, either accidentally or on purpose. So, we should create our own users on the Oracle database. To do this, we can log in as one of the system accounts. I use SQL Developer in this video, but you can do the same thing in SQL*Plus or any other tool. You can watch the video to find out exactly how this is done, but in short, this is the process: - Log in as a system user - Create a new user with a password - Give them appropriate privileges - Create a new connection with the new user - Log in as the new user You should now be up and running with the new user! So that’s how you can create a new user in Oracle with SQL Developer. Let me know in the comments if you have any questions. For my complete Introduction to Oracle SQL course, visit this page: https://www.databasestar.com/introduction-oracle-sql-course/
Views: 8018 Database Star
Oracle REPLACE Function
 
03:55
https://www.databasestar.com/oracle-replace/ The Oracle REPLACE function is a string manipulation function that allows you to replace one text string with another. It can be a whole word or sentence, or even a single value. The syntax of the REPLACE function is: REPLACE ( whole_string, string_to_replace, [replacement_string]) To use this function, the parameters are: - whole_string (mandatory): This is the string that will be checked for the characters to be replaced. - string_to_replace (mandatory): This is the string that will be searched for within whole_string. - replacement_string (optional): This is the string that will be used to replace occurrences of string_to_replace. Because the last parameter is optional, if it is not specified, then the Oracle REPLACE function removes all occurrences of string_to_replace. You can replace carriage returns with REPLACE, but you’ll need to use the CHR function. You can replace NULL values in Oracle, but this is best done with another function such as NVL, rather than REPLACE. If you want to replace multiple characters, you can do this using nested REPLACE functions or a REGEXP_REPLACE function. For more information about the Oracle REPLACE function, including all of the SQL shown in this video and the examples, read the related article here: https://www.databasestar.com/oracle-replace/
Views: 878 Database Star
Oracle TO_DATE Function Explained with Examples
 
06:14
https://www.databasestar.com/oracle-to_date/ The Oracle TO_DATE function is one of the most useful conversion functions in Oracle. It can be a little confusing though. The TO_DATE function is used to convert a character value to a date value. You can use it to convert a string that is in the format of a date, into a date data type. Why would you use this? Converting a character to a date is helpful if you want to insert a date into a column in a table. Being specific about the format (explicit) is better than assuming the conversion will be done for you (implicit). This TO_DATE function only converts to a DATE data type. If you want to convert to the other datetime data types, you’ll have to use other functions such as TO_TIMESTAMP or TO_TIMESTAMP_TZ. The syntax for this function is: TO_DATE(charvalue [, format_mask [, nls_date_language]]) The parameters for this function are: Charvalue: This is the character value that you want to convert to a date. It’s the main input of the function. Format_mask: This is the format that the input value, the charvalue, is in. This is used to help convert your character value into a date, as your character may be in a different format to the default. Nls_date_language: this is used to determine how the output is displayed. For more information about the Oracle TO_DATE function, including all of the SQL shown in this video and the examples, read the related article here: https://www.databasestar.com/oracle-to_date/
Views: 362 Database Star
Set Up a new Connection in Oracle SQL Developer
 
02:23
https://www.databasestar.com/introduction-oracle-sql-course/ In this video, I’ll show you how to set up a connection in SQL Developer. SQL Developer is Oracle’s free IDE for working with your SQL database. It’s one of the best tools available, and used by a lot of people. As part of my Introduction to Oracle SQL series of videos, I use SQL Developer to set up the data and explain the concepts. The first step once you have downloaded the application is to set up a connection. What is a connection? A connection in SQL Developer lets you connect to a database. You enter in a set of data once for your database, and SQL Developer remembers this and lets you connect to the database. You provide the following data: - Connection name - Username - Password - Server details (e.g. server, port, SID) The connection can have a name to help you remember it in the future. Connections can also be colour coded to make it easier to see which connection you’re working on! So, to find out how to set up a connection in SQL Developer, watch this video! Let me know in the comments if you have any questions.
Views: 292 Database Star
Oracle Date Format
 
07:13
http://www.databasestar.com/oracle-to_date/ - A video that explains the different date formats in the Oracle SQL database.
Views: 3281 Database Star
Oracle CEIL Function
 
01:56
https://www.databasestar.com/oracle-ceil/ The Oracle CEIL function, short for “ceiling”, will return the smallest integer value greater than the specified number. In other words, it rounds up to the nearest whole number. It’s the opposite of the FLOOR function, which rounds down. The syntax of CEIL is: CEIL(number) The number parameter can be any numeric data type. The CEIL function will return a number in the same data type as the parameter. So, you can use CEIL with decimal numbers, which is actually where CEIL works best. You can use it with whole numbers too. It won’t show an error, it just might display the same value as provided (e.g. CEIL(8) would be 8). You can also use functions inside CEIL. For example, CEIL(SUM(salary)) will SUM all of the salary values, and then round them up to the nearest whole number. Like with all functions, the Oracle CEIL function can also use column aliases. So, instead of having your column labelled “CEIL(8.12)” or “CEIL(salary)”, you can label your column “salary_rounded” or something that makes more sense. The CEIL function is similar to the ROUND function. However, ROUND will round up or down, where CEIL will always round up. The TRUNC function will also do some kind of rounding, but it removes decimals from a number which may cause it to “round” down. For more information, including the code used in the examples, read the related article here: https://www.databasestar.com/oracle-ceil/
Views: 491 Database Star
Oracle LPAD Function
 
04:27
https://www.databasestar.com/oracle-lpad/ The Oracle LPAD function is used to add extra characters to the left of a text value. This is called “padding”, and the function is called LPAD because the L stands for “left” and it “left pads” a text value. It’s the opposite of RPAD, which pads characters to the right of the value. The LPAD function can be useful for ensuring all values are the same length, or if there is another requirement you have for adding characters to the end. The syntax is: LPAD(expr, length [,pad_expression]) The expr parameter is the text value you want to pad or add characters to. The length is the total length the expression or value will be after the padding has been done. It’s not the number of characters to add. The pad_expression is an optional field and is the character or characters to add to the left end of the string. The default value is a space. If the length specified in the function is shorter than the length of the string, then the string is truncated to meet the length. For more information about the Oracle LPAD (and LPAD) function, including all of the SQL shown in this video and the examples, read the related article here: https://www.databasestar.com/oracle-lpad/
Views: 507 Database Star
Oracle ADD_MONTHS Function
 
03:15
https://www.databasestar.com/oracle-add_months/ The Oracle ADD_MONTHS allows you to add a specified number of months to a date value, and return the new date value. It’s great for performing calculations on dates, or date arithmetic, which can be hard in many different programming languages. The syntax of the ADD_MONTHS function is: ADD_MONTHS ( input_date, number_months ) The function returns a DATE value. The parameters of this function are: - input_date (mandatory): This is the starting date, or the date that you will add a number of months to. - number_months (mandatory): This is an integer value that represents the number of months to add to input_date. The input_date can be any datetime value, or even a character value that can be converted to a date. Also, the number_months can be any number value, or a character value that can be converted to a number. What if the number of days in the two months are different? For example, adding a month to Jan 31 could result in Feb 31, which does not exist. Well, in this case, Oracle would work out that the date does not exist, and use the last date of the month (e.g. Feb 28). You can also provide a negative value for ADD_MONTHS to subtract months from the specified date. For more information about the Oracle ADD_MONTHS function, including all of the SQL shown in this video and the examples, read the related article here: https://www.databasestar.com/oracle-add_months/
Views: 322 Database Star
Oracle FLOOR Function
 
01:49
https://www.databasestar.com/oracle-ceil/ The Oracle FLOOR function will return the largest integer value less than the specified number. In other words, it rounds down to the nearest whole number. It’s the opposite of the CEIL function, which rounds up. The syntax of FLOOR is: FLOOR(number) The number parameter can be any numeric data type. The function will return a number in the same data type as the parameter. So, you can use FLOOR with decimal numbers, which is actually where FLOOR works best. You can use it with whole numbers too. It won’t show an error, it just might display the same value as provided (e.g. FLOOR(5) would be 5). You can also use functions inside FLOOR. For example, FLOOR(SUM(salary)) will SUM all of the salary values, and then round them down to the nearest whole number. Just like with all functions, the Oracle FLOOR function can also use column aliases. So, instead of having your column labelled “FLOOR(8.12)” or “FLOOR(salary)”, you can label your column “salary_rounded” or something that makes more sense. The FLOOR function is similar to the ROUND function. However, ROUND will round up or down, where FLOOR will always round down. The TRUNC function will also do some kind of rounding, but it removes decimals from a number which may cause it to “round” down. For more information, including the code used in the examples, read the related article here: https://www.databasestar.com/oracle-ceil/
Views: 368 Database Star
COMMIT and ROLLBACK (Introduction to Oracle SQL)
 
04:18
An explanation of what COMMIT and ROLLBACK is. The full Introduction to Oracle SQL course is available here: https://www.databasestar.com/introduction-to-oracle-sql-course/
Views: 620 Database Star
Single Row Subqueries (Introduction to Oracle SQL)
 
03:01
Explains what a single row subquery is and how it's used. This is a subquery that returns one row. The full Introduction to Oracle SQL course is available here: https://www.databasestar.com/introduction-to-oracle-sql-course/
Views: 271 Database Star
Oracle DECODE Function
 
04:31
https://www.databasestar.com/oracle-decode-function/ The Oracle DECODE function lets you perform IF-THEN-ELSE functionality in your queries. It’s similar to a CASE statement. The syntax of the DECODE function is: DECODE ( expression, search, result [, search, result]... [,default] ) The parameters of the Oracle DECODE function are: - expression (mandatory): This is the value to compare. - search (mandatory): This is the value to compare against the expression. - result (mandatory): This is the return value if the search value matches the expression value. There can be multiple combinations of search and result values, and the result value is attached to the previous search value. - default (optional): If none of the search values match, then this value is returned. If this is not provided, the DECODE function will return NULL if no matches are found. If you compare this to an IF-THEN-ELSE statement, it would look like this: IF (expression = search) THEN result [ELSE IF (expression = search) THEN result] ELSE default END IF The parameters can be one of many different data types, and the return type is calculated from them. Earlier I mentioned it’s similar to CASE. So why would you use one and not the other? - DECODE is an older function, and CASE was introduced as a replacement for DECODE. - CASE offers more flexibility then DECODE - CASE is also easier to read and debug (in my opinion) The performance of these functions is the same, so if you’re considering using DECODE, I would suggest using CASE instead. For more information about the Oracle DECODE function, including all of the SQL shown in this video and the examples, read the related article here: https://www.databasestar.com/oracle-decode-function/
Views: 220 Database Star
Oracle NULLIF Function
 
02:29
https://www.databasestar.com/oracle-nullif/ The Oracle NULLIF function is used to compare two values and determine if they match or not. If the two values match, NULLIF returns NULL. If they don’t match, the function returns the first value. The syntax of the NULLIF function is: NULLIF (expr1, expr2) These parameters are the two expressions to compare. As mentioned above, this function returns either: - NULL if expr1 and expr2 match - expr1 if expr1 and expr2 don't match Both of these parameters can be numeric, and they both need to be the same data type. The functionality of NULLIF can be written as a CASE statement. However, if a CASE statement is really what you need, then you should use that. NULLIF should only be used if that’s the functionality you require. For more information about the Oracle NULLIF function, including all of the SQL shown in this video and the examples, read the related article here: https://www.databasestar.com/oracle-nullif/
Views: 180 Database Star
Oracle TO_TIMESTAMP Function
 
01:31
https://www.databasestar.com/oracle-to_timestamp/ The Oracle TO_TIMESTAMP function can be confusing, but we’ll explain it in this video. This function allows you to convert a string value into a TIMESTAMP value. A TIMESTAMP value is a type of DATE, but has a few components: - A date, including day, month, and year - A time, including hours, minutes, seconds, and fractional seconds This is a useful data type because it allows you to store a time down to fractions of a second. The syntax of the TO_TIMESTAMP function is: TO_TIMESTAMP ( input_string [, format_mask] [, nls_param] ) The input_string parameter is the string you want to convert. The format_mask is where you specify the format of the input_string parameter. This is so you can specify the input_string in a variety of formats, and just use this format_mask to indicate which format it is in. The nls_param parameter is another optional parameter, and allows you to specify the returning language of the month and day names. The default format will depend on the region you’re running your database in. In my example (using Oracle Express in Australia), the default format is ‘DD-MM-RRRR HH:MI:SS AM’. For more information on the Oracle TO_TIMESTAMP function, including the SQL used in this video, read the related article here: https://www.databasestar.com/oracle-to_timestamp/
Views: 264 Database Star
Multi Row Subqueries (Introduction to Oracle SQL)
 
03:55
Explains what a multi row subquery is and what it can be used for. This is a subquery that returns multiple rows, and it needs to be treated differently. The full Introduction to Oracle SQL course is available here: https://www.databasestar.com/introduction-to-oracle-sql-course/
Views: 240 Database Star
Oracle MOD Function
 
03:17
https://www.databasestar.com/oracle-remainder-mod/ The Oracle MOD function performs a “modulo division” on the numbers you specify. A modulo division is where a division is performed using two numbers, and the remainder is returned by the function. For example, the division of 8/5 is 1.6. Using modulo division, 8/5 will work out there is one 5 contained in the 8, with 3 left over. The MOD function would return 3 in this example. The syntax of the MOD function is: MOD(numerator, denominator) The numerator is the number mentioned first in the division, or the one that is on top of the division sign. In a division such as 15/4, this would be the 15. The denominator is the number mentioned second in the devision, or hte one that is on the bottom of the division sign. In a division such as 15/4, this would be the 4. The parameters can be any numeric data type, and the return type depends on these parameters. This means MOD can return a whole number or a decimal number. The calculation for the Oracle MOD function is: numerator - denominator * FLOOR(numerator / denominator). If the denominator is 0, the function returns the value of the numerator. This is done to prevent “divide by 0” errors. For more information about the MOD function, including how to return every second row, how it’s different to REMAINDER, and to see the SQL code used in these examples, read the related article here: https://www.databasestar.com/oracle-remainder-mod/
Views: 745 Database Star
GROUP BY with Multiple Columns (Introduction to Oracle SQL)
 
04:03
Learn how to group with multiple columns using GROUP BY in SQL. The full Introduction to Oracle SQL course is available here: https://www.databasestar.com/introduction-to-oracle-sql-course/
Views: 279 Database Star
Oracle NVL2 Function
 
03:05
https://www.databasestar.com/oracle-nvl-nvl2-logical-functions/ The Oracle NVL2 function is an extension of the NVL function and can be used to handle NULL values. It allows you to specify a value to check for NULL, a separate value to return if the value is NULL, and another value to return if the first value is not NULL. It’s very similar to NVL but allows for more flexibility. The syntax for NVL2 is: NVL2( value_to_check, value_if_not_null, value_if_null ) What are these parameters: Value_to_check is the value the function checks to see if it is NULL. Value_if_not_null is the value to return if the first value, value_to_check, is not NULL. Value_if_null is the value to return if the first value, value_to_check, is NULL. These parameters can have almost any data type (the second and third parameter can’t be a LONG data type). Oracle will determine the data type from the supplied parameters. There are quite a few of these conditional checking functions in Oracle, so the one to use would depend on your needs. But it’s good to know this function exists. For more information about the Oracle NVL2 function, including all of the SQL shown in this video and the examples, read the related article here: https://www.databasestar.com/oracle-nvl-nvl2-logical-functions/
Views: 219 Database Star
Oracle CONCAT Function
 
02:40
https://www.databasestar.com/oracle-concat/ The Oracle CONCAT function allows you to concatenate, or combine, string values together into a single string value. It’s a standard string manipulation technique in many languages, and SQL is no different. The syntax of this function is: CONCAT( string1, string2 ) The function returns both string values joined together, without a space or any other characters in between. The return value is the same as the first string parameter, which can be any of the string data types. One of the main drawbacks of this function is that it only allows for two strings to be combined, unlike other CONCAT functions in other languages. If you want to combine more than two strings together, you’ll need to have nested CONCAT functions, or use the double pipe character || which also concatenates strings. However, the advantage of CONCAT is that it allows for concatenation when using different character sets that don’t support the double pipe method. CONCAT and the double pipe method have similar performance, so that’s not an issue. For more information about the Oracle CONCAT function, including all of the SQL shown in this video and the examples, read the related article here: https://www.databasestar.com/oracle-concat/
Views: 584 Database Star
How to View Data With the SELECT Statement (Introduction to Oracle SQL)
 
05:39
Getting started with the SELECT statement to view data in a table.
Views: 150 Database Star
Cartesian or Cross Join (Introduction to Oracle SQL)
 
03:28
See what a cartesian join or cross join is, and when you might use one. The full Introduction to Oracle SQL course is available here: https://www.databasestar.com/introduction-to-oracle-sql-course/
Views: 123 Database Star
MINUS Operator (Introduction to Oracle SQL)
 
02:39
Learn what the MINUS operator is and how to use it. The full Introduction to Oracle SQL course is available here: https://www.databasestar.com/introduction-to-oracle-sql-course/
Views: 222 Database Star
Oracle COALESCE Function
 
04:00
https://www.databasestar.com/oracle-coalesce/ The COALESCE function in Oracle allows you to input one or many values and return a value that is not NULL. You provide it with a series of values, and it returns the first of thsoe values which are not NULL. The syntax of the Oracle COALESCE function is: COALESCE(expr1, expr2 [, expr_n]) These parameters are: Expr1: the first expression to check for a NULL value. If it’s NULL, the function checks the next parameter. If not, then this value is returned. Expr2: the second expression to check for a NULL value, if the first expression is NULL. If this is NULL, then the next expression is checked, otherwise this value is returned. Expr_n: More expressions can be added and checked in case both expr1 and expr2 are null. Only the first two expressions are needed. The first non-NULL expression is returned. But, if all expressions are NULL, then NULL is returned. One way I’ve recently used this was to find out what phone number to display. A query looked at the mobile number and returned that, but if it was NULL it looked at the home phone and returned that, but if that was NULL it looked to the business phone number. That query looked like this: COALESCE(mobile_phone, home_phone, business_phone) For more information about the Oracle COALESCE function, including all of the SQL shown in this video and the examples, read the related article here: https://www.databasestar.com/oracle-coalesce/
Views: 434 Database Star
Selecting Individual Columns (Introduction to Oracle SQL)
 
05:34
How to select individual columns in a SELECT statement. The full Introduction to Oracle SQL course is available here: https://www.databasestar.com/introduction-to-oracle-sql-course/
Views: 79 Database Star
Filtering on Date Values using the SQL WHERE Clause (Introduction to Oracle SQL)
 
03:36
How to filter on date values in SQL using the SQL WHERE clause. The full Introduction to Oracle SQL course is available here: https://www.databasestar.com/introduction-to-oracle-sql-course/
Views: 115 Database Star
Set Operators and UNION (Introduction to Oracle SQL)
 
06:07
Explains what set operators are and how to use UNION. The full Introduction to Oracle SQL course is available here: https://www.databasestar.com/introduction-to-oracle-sql-course/
Views: 81 Database Star
Oracle DBTIMEZONE Function
 
01:17
https://www.databasestar.com/oracle-timezone-functions/ The Oracle DBTIMEZONE function returns the database timezone offset of the database. It returns it in the format of +/- TZH:TZM, or the time zone region name. It’s useful to know what timezone the database is in when working with dates and different time zones, as it can impact the queries you write. The syntax for this function is quite simple: DBTIMEZONE There are no parameters - just the function name. You can’t actually change the timezone of the database using this function. It uses the timezone of the operating system of the server the database runs on. It’s similar to the SESSIONTIMEZONE function, but that function returns the timezone of your session and not the database server. It’s also similar to the SYSTIMESTAMP function, but that function returns the date, time, and timezone of the database, where DBTIMEZONE just returns the timezone. For more information about the Oracle DBTIMEZONE function, including all of the SQL shown in this video and the examples, read the related article here: https://www.databasestar.com/oracle-timezone-functions/
Views: 61 Database Star
Joining Many Tables (Introduction to Oracle SQL)
 
07:52
Find out how to join many tables together in SQL. The full Introduction to Oracle SQL course is available here: https://www.databasestar.com/introduction-to-oracle-sql-course/
Views: 93 Database Star
Oracle LEAST Function
 
02:46
https://www.databasestar.com/oracle-greatest/ The Oracle LEAST function is a useful function, but I don’t think it’s very well understood. It returns the least or smallest value in a set of values. You can provide the values, and use numbers or text values. The syntax for the Oracle LEAST function is: LEAST(expr1 [, expr_n]) The expr1 is the first expression to use for your comparison. Expr_n is one or more expressions to use in the comparison, separated by commas. This is optional. So how is LEAST calculated? If the parameters are numeric, the LEAST function finds the smallest number. If the parameters are characters, the function finds the earliest value if they were sorted alphabetically (using their character values). What data type is returned? It depends on the parameters you provide. It could be the same as the parameters you provide, or VARCHAR2 if the parameters are all characters. You can also use the LEAST function with dates. It’s the opposite of the GREATEST function. For more information on the LEAST function, including the SQL used in this video and the examples, read the related post here: https://www.databasestar.com/oracle-greatest/
Views: 109 Database Star
INTERSECT Operator (Introduction to Oracle SQL)
 
03:59
Learn what the INTERSECT operator is and how to use it. The full Introduction to Oracle SQL course is available here: https://www.databasestar.com/introduction-to-oracle-sql-course/
Views: 117 Database Star
Alter a Table (Introduction to Oracle SQL)
 
03:31
How to alter several parts of an existing table. The full Introduction to Oracle SQL course is available here: https://www.databasestar.com/introduction-to-oracle-sql-course/
Views: 52 Database Star
Oracle SQL MERGE Statement
 
07:52
https://www.databasestar.com/oracle-merge-sql/ In this video, we’ll learn what the Oracle MERGE statement does and how you can use it. What is the MERGE statement? It’s a statement that lets you either insert or update data in a table - all in a single statement! It’s helpful if you’re using an ETL (Extract Transform Load) process when creating or updating a data warehouse. It’s also helpful when loading data into your own database if you’re not creating a data warehouse. It allows you to prevent duplicate data and ensure you have up-to-date data in your table. The syntax looks like this: MERGE INTO table_name USING table_name ON (condition) WHEN MATCHED THEN update_clause DELETE where_clause WHEN NOT MATCHED THEN insert_clause [LOG ERRORS log_errors_clause reject_limit integer | unlimited ] In this video, I also show an Oracle SQL MERGE statement example, so watch the video to find out more. For more information on the MERGE statement and how you can use it in your queries, read the related article here: https://www.databasestar.com/oracle-merge-sql/
Views: 92 Database Star
Oracle Database XE Forgot Password
 
05:27
In this video, we’ll learn how to reset the password for an account in Oracle XE. Are you running Oracle database XE 11.2 and forgot your password? It can be for any Oracle XE version actually, but this is the latest one at the moment. Don’t worry, there are a few ways to recover this password. It also depends on if you know the password, and if you’re able to log in to the account still, as there is a time limit on these passwords. If you’ve forgotten it, then you won’t be able to log in as that account. But this video will help you reset the password so you can use the account again. For more information on Oracle SQL, check out DatabaseStar: https://www.databasestar.com/
Views: 415 Database Star
Oracle LENGTH Function
 
01:23
https://www.databasestar.com/oracle-length/ The Oracle LENGTH function allows you to find the length of a string, also known as the number of characters in a string. It’s a common feature in different languages, and SQL is no different. The LENGTH function only has one parameter: LENGTH ( string_value ) The parameter is the string_value which is the value to check the length of. The function returns a number that represents the number of characters in the function. Some points to remember about the Oracle LENGTH function: If string_value is NULL, then LENGTH will return NULL. If string_value is an empty string, the LENGTH will return NULL. The string_value can be any of the character data types - CHAR, VARCHAR2, NCHAR, NVARCHAR2, CLOB, NCLOB. If the string_value is a CHAR data type, then the LENGTH will include any trailing spaces in the value. For more information about the Oracle LENGTH function, including all of the SQL shown in this video and the examples, read the related article here: https://www.databasestar.com/oracle-length/
Views: 242 Database Star
Create New User in Oracle SQL
 
04:59
In this video, we'll learn how to create a new user in Oracle SQL. This is created on Oracle Express for the purpose of my Introduction to Oracle SQL course.
Views: 165 Database Star
Oralce CHR Function
 
01:38
https://www.databasestar.com/oracle-chr/ The Oracle CHR function allows users to provide a numeric code and return the ASCII character that matches the code. It’s the opposite of the ASCII function, which allows you to provide a character and return the code for that character. The syntax of the CHR function is: CHR(number_code [, USING NCHAR_CS]) The number code parameter is the code that you want to return the equivalent character for. The USING NCHAR_CS keyword means that the national character set will be used. More information on character sets can be found here: One common use of the CHR function is CHR(10). The number 10 is the line feed character, or “new line”, and is often used to start a new line of text. CHR(13) is also a common use, which is a carriage return. CHR(9) is a tab character. For more information on the Oracle CHR function, including the SQL used in this video, read the related article here: https://www.databasestar.com/oracle-chr/
Views: 73 Database Star