Home
Search results “To number oracle comma”
Formatting your Oracle Query Results Directly to CSV
 
03:02
How to get Oracle SQL Developer to automatically format your query results to CSV, HTML, JSON, Insert statements, and more.
Views: 45921 Jeff Smith
Converting A Single Comma Separated Row Into Multiple Rows
 
07:30
Check out my Blog: http://exceltraining101.blogspot.com This video shows how to convert comma separated row records into multiple rows. There are two examples: (1) A simple solution using paste special transpose and (2) using Power Query to unpivot the comma separated values. The second example would be used in situations where the records could be in the thousands or even millions of records. P.S. Feel free to provide a comment or share it with a friend! #exceltips #exceltipsandtricks #exceltutorial #doughexcel
Views: 20746 Doug H
Oracle regular expression part 2 extracting substring regexp substr
 
08:11
Oracle SQL PLSQL and Unix Shell Scripting
Views: 5123 Sridhar Raghavan
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: 2983 Database Star
MySQL 31 - DECIMAL Data Type
 
02:20
The DECIMAL data type is similar to the INT data type in that when you use the number for math, it maintains precision. The difference though is obvious in the name. The DECIMAL data type allows for numbers after a decimal point (and before the decimal point). The DECIMAL data type allows us to store what is known as a fixed-point number. A fixed point number is a number that has a specific number of digits available to store numbers in. That means we can't do things like use a DECIMAL data type to store as many digits of PI as possible, because we can't store unlimited digits. We are limited to a certain number. There are two keywords you need to understand when you are working with the DECIMAL data type, precision and scale. Precision is the number of digits and scale is the number of those digits that will come after the radix. You are going to want to provide these numbers when you declare a column of this data type. For example, DECIMAL(5, 2) has a precision of 5 digits and a scale of 2 digits. That means we can store a maximum of two digits after the decimal and four digits total. This gives us a possible range from -999.99 to 999.99 The highest number of digits is 65, and the highest number of digits after the decimal is 30. This data type is also known as DEC, NUMERIC, and FIXED. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Support me! http://www.patreon.com/calebcurry Subscribe to my newsletter: http://bit.ly/JoinCCNewsletter Donate!: http://bit.ly/DonateCTVM2. ~~~~~~~~~~~~~~~Additional Links~~~~~~~~~~~~~~~ More content: http://CalebCurry.com Facebook: http://www.facebook.com/CalebTheVideoMaker Google+: https://plus.google.com/+CalebTheVideoMaker2 Twitter: http://twitter.com/calebCurry Amazing Web Hosting - http://bit.ly/ccbluehost (The best web hosting for a cheap price!)
Views: 8288 Caleb Curry
Round and Truncate in SQL | Round and Truncate function in MYSQL | Round and Truncate in DBMS |
 
11:03
This video contains how the Round () and Truncate( ) works. Both are the functions . Both has some similarity and some dissimilarity.Both works same if we use negative number after the comma where as both works differently if we use positive number after the comma. Sometimes its really difficult to understand the concept of round and truncate. In this video both are explained with the help of diagram. This video will help to understand how both of them works exactly. Please leave your comments
Views: 4731 GABS CLASSES
CONCAT & PIPE "||" Operators in Oracle | Oracle Tutorials for Beginners
 
07:13
CONCAT & PIPE "||" Operators in Oracle | Oracle Tutorials for Beginners Oracle Tutorials for Beginners CONCAT Operators in Oracle SQL CONCAT Operators in Oracle Database CONCAT Operators in Oracle SQL Database || Operator in Oracle concatenate in oracle sql developer oracle concatenate columns with space oracle concatenate rows into string oracle concatenate string and number oracle concatenate all columns into string oracle concatenate columns with comma using concat function in oracle concatenate function in oracle 11g concatenate in oracle sql developer oracle sql concatenate column values concatenation operator in oracle concatenation operator in sql server oracle concatenate columns with space oracle concatenate string and number oracle concatenate rows into string concatenate in oracle sql query concatenate sql query concat sql server 2008 sql concatenate columns concatenate sql oracle sql concatenate rows mysql concatenate string sql concatenate string and int sql concatenate column values
Views: 890 Oracle PL/SQL World
Find the Number of Occurrences of a Character In the given String SQL | ORACLE | PL SQL
 
03:34
Find the Number of Occurrences of a Character In the given String SQL | ORACLE | PL SQL
Views: 1036 Online Pl Sql
How to export CSV data from Oracle database using Python.
 
12:26
How to export data in CSV format from Oracle database using Python. Export CSV data from Oracle 12c release 1 using Python 3.4 in Windows platform. Source Code link : https://drive.google.com/file/d/0BznrW3lgX0ozSENyZ3JOWlBqbnM/view?usp=sharing Link to Oracle 12c client library : https://pypi.python.org/pypi/cx_Oracle/5.1.3. Just chose your version matching your installed python
Views: 4470 Subhroneel Ganguly
Oracle SQL Tutorial 11 - CREATE TABLE
 
05:04
The way you create a table is to use the CREATE TABLE command. CREATE TABLE users() So in this situation, the name comes right after the TABLE keyword. The next thing we do is put all of the columns on a line that we want to put in our table. CREATE TABLE users( user_id, username, first_name, last_name ) Notice the naming conventions here. For this series we are going to make columns with what is known as snake casing. This is where each individual word is separated by an underscore. if you have more than one column, all of them have to have commas except the last one. The comma is a way to say that another column is coming, so you don't need to do it on the last one. Now you would think we were done, but we also have to say what data type each column is. Later we will extensively discuss data types so we can focus on them exclusively. For now, here are the data types we are going to use: CREATE TABLE users( user_id NUMBER, username VARCHAR2(50), first_name VARCHAR2(50), last_name VARCHAR2(50) ) Now, inside of the parenthesis for varchar2, we pass in a number... This is the max length of the string. But the question is, what is it measured in? The default is actually in bytes, not characters. For example if we have the string hello, it is 5 characters, but it might take up a total of 10 bytes of storage. So I would recommend adding the keyword char right after the number so it defaults to 50 characters, not bytes. CREATE TABLE users( user_id NUMBER, username VARCHAR(50 CHAR), first_name VARCHAR2(50 CHAR), last_name VARCHAR2(50 CHAR) ) This will work to create a table, but it's really missing a lot of information… which column is the primary key? Are we adding any indexes? Is there any thing else we need to say about these columns? So as you can tell, we are making progress, but there is still so much to learn. The biggest gotcha to remember from this video is that the data type VARCHAR ends in a 2, stupid, right? who would end the name of something with a 2? Once again, this is Caleb from CalebTheVideoMaker2, and we will catch you in the next one! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HELP ME! http://www.patreon.com/calebcurry Subscribe to my newsletter: http://bit.ly/JoinCCNewsletter Donate!: http://bit.ly/DonateCTVM2. ~~~~~~~~~~~~~~~Additional Links~~~~~~~~~~~~~~~ More content: http://CalebCurry.com Facebook: http://www.facebook.com/CalebTheVideoMaker Google+: https://plus.google.com/+CalebTheVideoMaker2 Twitter: http://twitter.com/calebCurry Amazing Web Hosting - http://bit.ly/ccbluehost (The best web hosting for a cheap price!)
Views: 36680 Caleb Curry
Oracle APEX Money-Mask
 
01:02
Add comma separator to item automatically.
Views: 688 Saeed Hassanpour
Regular Expressions in oracle part 3/ Arabic
 
10:39
-- we use Regexp to search/ match / replace string --1 Regexp_like --2 Regexp_replace --3 Regexp_instr --4 Regexp_substr --5 Regexp_count --note we can user Regexp with CHAR/Varchar2/clob but not LONG https://docs.oracle.com/cd/B12037_01/server.101/b10759/functions116.htm#SQLRF06303 http://psoug.org/reference/regexp.html
Views: 499 khaled alkhudari
new STRING_SPLIT() function in SQL Server 2016
 
06:10
New STRING_SPLIT() function in SQL Server 2016 to split a string into multiple values & rows. Check the whole "SQL Server 2016" series here: https://www.youtube.com/playlist?list=PLU9JMEzjCv16mB9n4av00uZB5TJsdK3CG Check the details and code on my SQL blog at: https://sqlwithmanoj.com/2016/03/10/new-in-built-table-valued-function-string_split-in-sql-server-2016-to-split-strings/ Check my SQL FB Page at: https://www.facebook.com/sqlwithmanoj
Views: 9044 SQL with Manoj
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: 2243 Database Star
Oracle GREATEST Function
 
02:43
https://www.databasestar.com/oracle-greatest/ The Oracle GREATEST function is a useful function, but I don’t think it’s very well understood. It returns the greatest or largest value in a set of values. You can provide the values, and use numbers or text values. The syntax for the Oracle GREATEST function is: GREATEST(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 GREATEST calculated? If the parameters are numeric, the GREATEST function finds the largest number. If the parameters are characters, the function finds the latest 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 GREATEST function with dates. It’s also the opposite of the LEAST function. For more information on the GREATEST function, including the SQL used in this video and the examples, read the related post here: https://www.databasestar.com/oracle-greatest/
Views: 292 Database Star
SQL Split Function : Split Comma Separated Values
 
03:50
Use Below Inline Table Valued Function And Split Comma Separated Values In Select Query Or Use In Store Procedure. Use This Function Directly In Select Query, As Join Or Use As IN Query. Link : https://codingopedia.blogspot.com/2018/12/create-split-function-in-sql-to-split.html
Views: 118 Naitik Gamit
Python Tutorial: CSV Module - How to Read, Parse, and Write CSV Files
 
16:12
In this Python Programming Tutorial, we will be learning how to work with csv files using the csv module. We will learn how to read, parse, and write to csv files. CSV stands for "Comma-Separated Values". It is a common format for storing information. Knowing how to read, parse, and write this information to files will open the door to working with a lot of data throughout the world. Let's get started. The code from this video can be found at: https://github.com/CoreyMSchafer/code_snippets/tree/master/Python-CSV If you enjoy these videos and would like to support my channel, I would greatly appreciate any assistance through my Patreon account: https://www.patreon.com/coreyms Or a one-time contribution through PayPal: https://goo.gl/649HFY If you would like to see additional ways in which you can support the channel, you can check out my support page: http://coreyms.com/support/ Equipment I use and books I recommend: https://www.amazon.com/shop/coreyschafer You can find me on: My website - http://coreyms.com/ Facebook - https://www.facebook.com/CoreyMSchafer Twitter - https://twitter.com/CoreyMSchafer Google Plus - https://plus.google.com/+CoreySchafer44/posts Instagram - https://www.instagram.com/coreymschafer/ #Python
Views: 226552 Corey Schafer
Oracle DECOMPOSE Function
 
01:41
The Oracle DECOMPOSE function is used to transform a string into a Unicode string. It will split a character that has an accent, for example, into two characters. It’s the opposite of the COMPOSE function. The syntax of the DECOMPOSE function is: DECOMPOSE ( input_string [CANONICAL|COMPATIBILITY] ) The parameters of this function are: - input_string is the string that will be decomposed into separate character values in a string. It can be any character data type. - CANONICAL|COMPATIBILITY is an optional parameter and allows you to specify the mode of decomposition. CANONICAL is the default. CANONICAL means it can be re-composed with the COMPOSE function. COMPATIBILITY means that it can’t be re-composed, but it can be useful for katakana characters. For more information about Oracle SQL functions, visit Database Star: https://www.databasestar.com/sql-functions/
Views: 107 Database Star
Write a program to print prime numbers between 1 to 100
 
09:09
There is a minute mistake in this program, Outer for-loop is running for 1 to n and due to this 1 is also coming in output which is not a prime number. Rest of logic is fine. You just need to run outer for-loop from 2 to n in order to correct the program. I already tried to fix it but did't find the way Please just how can I inform about this mistake for new visitors.
Views: 217063 Get Placed
Part 6   Transform rows into columns in sql server
 
08:53
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2014/06/part-6-transform-rows-into-columns-in.html This is another common sql server interview question. We will be using Countries table in this example. SQL to create the table Create Table Countries ( Country nvarchar(50), City nvarchar(50) ) GO Insert into Countries values ('USA','New York') Insert into Countries values ('USA','Houston') Insert into Countries values ('USA','Dallas') Insert into Countries values ('India','Hyderabad') Insert into Countries values ('India','Bangalore') Insert into Countries values ('India','New Delhi') Insert into Countries values ('UK','London') Insert into Countries values ('UK','Birmingham') Insert into Countries values ('UK','Manchester') Here is the interview question. Write a sql query to transpose rows to columns. Using PIVOT operator we can very easily transform rows to columns. Select Country, City1, City2, City3 From ( Select Country, City, 'City'+ cast(row_number() over(partition by Country order by Country) as varchar(10)) ColumnSequence from Countries ) Temp pivot ( max(City) for ColumnSequence in (City1, City2, City3) ) Piv
Views: 199310 kudvenkat
Commas
 
01:06
Views: 14 Essay Oracle
Oracle SQL Tutorial 13 - How to Add Column Constraints (Attributes)
 
05:55
So far, we have this table declaration: CREATE TABLE users( user_id NUMBER, username VARCHAR(50 CHAR) first_name VARCHAR2(50 CHAR), last_name VARCHAR2(50 CHAR) ) We can run this command see that it works. As we are learning though, we are going to want to be able to recreate our table with different settings and such, but if you try to run this command, it will complain that the table already exists. So we first need to delete this table before we start editing settings. When we get more experienced, we will learn about ways to edit the structure of a table that already exists. To fix this, we can get rid of the table using the DROP TABLE command: DROP TABLE users You can run this every time if you need to practice by adding a semicolon after it. This is how you can tell Oracle that you are putting in another command after it. This is known as a delimiter. When you run the script, it is going to run both commands. Now we can go through and reconsider our table structure. This is fine for starting out because we don't have any important data in our database, but once your database is in production you are not going to want to just drop tables. In the last video we discussed different constraints that you can apply to columns in a database table, but how do you actually apply these when you are creating a table? The first way you define constraints is to put them right after the column in your CREATE TABLE statement. CREATE TABLE users( username VARCHAR2(50 CHAR) NOT NULL ) When we define constraints this way, we usually say we are adding column attributes. If you have two constraints you want to add, you just put one after the other with spaces in between. There is no particular order that is required. CREATE TABLE users( username VARCHAR2(50 CHAR) NOT NULL UNIQUE ) In this situation we have already given the column the NOT NULL and UNIQUE attributes, so we should consider making this a primary key: CREATE TABLE users( username VARCHAR2(50 CHAR) PRIMARY KEY ) As you can see, adding column attributes is super easy. We can add a default like this: CREATE TABLE users( username VARCHAR2(50 CHAR) PRIMARY KEY, account_balance NUMBER DEFAULT 0 ) Note that now we need the comma after the first row. There are a few constraints we did not talk go through an example, specifically foreign keys and check constraints. We will be adding these constraints to our database in future videos. In the mean time, I have a thought for you… Many people prefer to name their column constraints. That way, we can refer to certain constraints by name. For example, we might have a primary key constraint that could be named users_pk. The way we are creating these constraints does not allow for this feature, so in the next video we are going to be discussing different ways to create constraints. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Support me on Patreon! http://www.patreon.com/calebcurry Subscribe to my newsletter: http://bit.ly/JoinCCNewsletter Donate!: http://bit.ly/DonateCTVM2. ~~~~~~~~~~~~~~~Additional Links~~~~~~~~~~~~~~~ More content: http://CalebCurry.com Facebook: http://www.facebook.com/CalebTheVideoMaker Google+: https://plus.google.com/+CalebTheVideoMaker2 Twitter: http://twitter.com/calebCurry Amazing Web Hosting - http://bit.ly/ccbluehost (The best web hosting for a cheap price!)
Views: 22506 Caleb Curry
TSQL: Group Items With Comma Separation
 
06:20
Grouping items separated by a column.
Views: 4110 SQLInSix Minutes
Oracle PL/SQL Tutorial - Strings
 
05:24
Want all of our free Oracle videos? Download our free iPad app at http://itunes.apple.com/us/app/video-training-courses-from/id418130423?mt=8 http://www.infiniteskills.com/training/learning-oracle-pl-sql-programming.html Instructor Lewis Cunningham explains strings in this InfiniteSkills tutorial on Oracle PLSQL. YouTube: https://www.youtube.com/user/OreillyMedia Facebook: https://www.facebook.com/OReilly/?fref=ts Twitter: https://twitter.com/OReillyMedia Website: http://www.oreilly.com/
Oracle DENSE_RANK Function
 
04:09
https://www.databasestar.com/oracle-dense_rank/ The Oracle DENSE_RANK function allows you to calculate a rank of a row in a group of rows. It returns this rank as a NUMBER value. This function can be used as either an analytic or an aggregate function, and the syntax depends on how you use it. As an aggregate function it looks like this: DENSE_RANK ( expr, [expr(n)] ) WITHIN GROUP ( ORDER BY (order_expr [ASC|DESC] [NULLS FIRST|LAST] ) These parameters are: - expr: this is the value to search for in a particular table. You can specify multiple search values, and just separate them by a comma. - order_expr: this is used to order the expr values by, because you get a different results depending on what order you rank the values in. - NULLS FIRST or LAST: this is where you can specify if you want to have NULL values appear at the top of your ranking order or at the bottom. As an analytic function, it looks like this: DENSE_RANK() OVER ( [query_partition_clause] order_by_clause) The parameters are: - query_partition_clause: this is the expression that the ranking is “grouped” by, as analytic functions allow you to group data within rows. - order_by_clause: this is the expression to order your results by to determine a rank. For this function, if two records have the same sort or rank position, they will have the same RANK value. It won’t cause a gap in the rankings, unlike the RANK function which does cause a gap. For more information about the Oracle DENSE_RANK function, including all of the SQL shown in this video and the examples, read the related article here: https://www.databasestar.com/oracle-dense_rank/
Views: 439 Database Star
Concat Strings with or without Function in Oracle Database
 
11:50
oracle concat multiple strings, oracle concatenate string, concatenate in oracle sql developer, oracle concatenate columns with space, oracle concatenate string and number, oracle concatenate columns with comma, oracle concatenate rows into string, oracle concatenate all columns into string
Views: 16 Adam Tech
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: 165 Database Star
How to Import CSV, Excel, TXT  into Oracle Database With Oracle SQL Developer
 
04:41
This question comes up about as frequently as the ‘how do I import data to Oracle Database’ question. It’s pretty simple once you’ve ran through the process a few times. But you may be here because you’ve never ran through the process before.
Views: 21047 Tayyib Oladoja
Oracle SQL Developer Tutorial For Beginners  96   Exception for Inner Single Quotes
 
01:37
Oracle SQL Developer Tutorial For Beginners Series. This course introduces Oracle SQL Development for its subscribers. Currently this is based on Oracle 12c. The test environment is in Windows 10.
Views: 711 Sam Dhanasekaran
Convert dot to comma Excel
 
06:58
Updated Video showing an easier way check out: https://youtu.be/QzNxFah1jjM Download Free Excel Cheatsheet at: https://www.computertutoring.co.uk/free-cheatsheets.asp European currency formats have the decimals in place of the commas and commas in place of the decimals: European: EUR 3.847.88 UK: £3,847.88 This video shows how to use the substitute function to covert. More tutorials can be found at https://www.computertutoring.co.uk/
Views: 19455 Computer Tutoring
Oracle SQL Tutorial 20 - How to Create Composite Primary Keys
 
07:02
This video is going to be a tutorial on how to create composite and compound keys. The difference between a composite and compound key is that a composite key can consist of any columns while a compound key has to consist of columns that are all keys themselves. We will be working with a compound key because we are going to be using the an intermediary table that has two foreign keys. The combination of both of the keys have to be unique. First, if we have any other CREATE TABLE commands, we are going to comment those out. We will space out the CREATE TABLE to have each column on a line, then we will add constraints as needed. CREATE TABLE project_users( project_id, user_id ) Now, let's add the data types: CREATE TABLE project_users( project_id NUMBER, user_id NUMBER } Now, what about some column attributes? I'm going to make both of the columns NOT NULL because we always want the rows to have a user and a project: CREATE TABLE project_users( project_id NUMBER NOT NULL, user_id NUMBER NOT NULL } Now, let's add the foreign key constraints. Now, what do we name these? We are going to add a primary key that covers both of these columns, so I'm going to be a sinner and not give these constraints names: CREATE TABLE project_users( project_id NUMBER NOT NULL REFERENCES projects (project_id), user_id NUMBER NOT NULL REFFERENCES users (user_id) ) Now, the way we have it now is that if we delete a project in the project table, and there are any rows in the project_users table, it will throw an error and prevent deletion. I would prefer for it to also delete any project members. That would make sense because if you delete a project we want it to delete the associate between that project and certain users. The same goes for if we delete a user, we want their association with a certain project to be deleted. To do this, we need to add the ON DELETE command: CREATE TABLE project_users( project_id NUMBER NOT NULL REFERENCES projects (project_id) ON DELETE CASCADE, user_id NUMBER NOT NULL REFERENCES users (user_id) ON DELETE CASCADE, ) Finally, let's learn how to create a compound or composite key. literally, the only difference is that you put a comma and add the second table inside of the parenthesis. CREATE TABLE project_users( project_id NUMBER NOT NULL REFERENCES projects (project_id) ON DELETE CASCADE, user_id NUMBER NOT NULL REFERENCES users (user_id) ON DELETE CASCADE, CONSTRAINT project_users_pk PRIMARY KEY (project_id, user_id) ) Now, the combination of project_id and user_id cannot be null, is always unique, and has an index. The only thing we should do now is add a few indexes. We aren't done yet...In the next video we are going to figure out what columns would benefit from indexes and we'll add them to it. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HELP ME! http://www.patreon.com/calebcurry Subscribe to my newsletter: http://bit.ly/JoinCCNewsletter Donate!: http://bit.ly/DonateCTVM2. ~~~~~~~~~~~~~~~Additional Links~~~~~~~~~~~~~~~ More content: http://CalebCurry.com Facebook: http://www.facebook.com/CalebTheVideoMaker Google+: https://plus.google.com/+CalebTheVideoMaker2 Twitter: http://twitter.com/calebCurry Amazing Web Hosting - http://bit.ly/ccbluehost (The best web hosting for a cheap price!)
Views: 11851 Caleb Curry
How to Concatenate String Values with Integer values in SQL Server - TSQL Tutorial
 
10:23
How to Concatenate String and Integer Values in SQL Server ( + Sign vs CONCAT ) - TSQL Tutorial Working with Databases is fun. On daily basis we save data into tables in different columns and often we need to write queries which involve concatenation of multiple columns of different datatypes to produce our final output. In below example we have saved some data into #Customer Table which has Street Address column as string and zip as INT. we want to produce Full Address by concatenating these columns. To concatenate we can use + sign but this works only with String values. So if we have any Integer value/s we have to convert them to String first. We can use Cast or Convert function to convert Integer value to string. Also if there is any Null value among which values we are concatenating , our output will be Null by using + sign. To take care of that part we can use either ISNULL() or Coalesce Function to replace NULL with blank value in SQL Server. In SQL Server 2012 and Later versions, CONCAT function was introduced. You can concatenate multiple values by using this function. Fun part of this function is you don't have to worry about Null outcome as it will Ignore Null values and also you don't have to worry about converting INT into strings, It will take care of that automatically. So if you are using new versions such as 2012 or later, start taking advantage of this function. Blog post link for the video with script http://sqlage.blogspot.com/2015/03/how-to-concatenate-string-and-integer.html
Views: 15724 TechBrothersIT
Oracle SQL Developer Trick: Split Your Grids
 
02:38
How to see multiple areas of a table at once, by splitting the display of the data grid.
Views: 3122 Jeff Smith
How to import a CSV file into Excel 2007, 2010, 2013, 2016 tutorial for beginners - comma delimited
 
06:41
How to import a CSV file into Excel 2007, 2010, 2013, 2016 tutorial for beginners CSV - Comma Separated Values This also works for text files, and for Ascii files. how to import a csv file into excel 2016,how to import csv file into excel 2016,csv files to xls on pc,how to import a csv file into excel 2007,how to import a csv file into excel 2013,how to import a csv file into excel 2010,how to import a csv file into excel,opening csv files in excel 2016,import csv file into excel,how to copy a csv Tom Fragale - Expert Computer Consultant & Trainer Custom On-Site Trainings , Webinars, and Consulting available See all playlists - http://www.youtube.com/playlist?list=PLuugq1ExG0a2D3meA_gbuwt7ibh8FIBQN Subscribe - http://www.youtube.com/user/TomFragale?sub_confirmation=1 My 25 Most Popular videos Create Mailing Labels from Your Excel 2010 data using Mail Merge in Word 2010 Christmas holiday HD CC https://www.youtube.com/watch?v=-dh1KutksMY Using An Excel If Function Formula With Multiple Conditions - Excel 2010 Tutorial Examples HD CC https://www.youtube.com/watch?v=-dh1KutksMY How To Compare 2 Sheets Using The Vlookup Function Formula Excel 2007 Excel 2010 Excel 2013 Tutorial HD CC https://www.youtube.com/watch?v=nVxGFPDp53g Excel Pivot Table Tutorial - Create A Monthly,quarterly, Yearly Summary Report - Excel 2013 HD CC https://www.youtube.com/watch?v=9k1KKbOwCEM Access switchboard manager - creating a menu in Access 2010 Tutorial Access 2013 Access 2007 HD CC https://www.youtube.com/watch?v=zVm5W8h7HFk Linking Sheets - Linking Data from Different Excel Sheets and Workbooks - Excel 2010 Tutorial HD CC https://www.youtube.com/watch?v=OIL6V2jzDRI Installing an odbc driver in Windows 8 and Windows 8.1 SQL Server Oracle ODBC Driver HD https://www.youtube.com/watch?v=yJWxwDBl8-Y How to make an Access query using yes no fields - Access 2010 Tutorial Access 2013 Access 2007 HD CC https://www.youtube.com/watch?v=z6r6r91V5FY How to compare 2 tables in Access - Create a Find Unmatched Query in Access HD https://www.youtube.com/watch?v=TkZdfptGxu8 Access Crosstab Query In Access 2007, 2010, 2013 - Summary Reports Access 2010 Tutorial HD CC https://www.youtube.com/watch?v=0TJMFIlZXGQ How to reset autonumber in Access 2013, Microsoft Access 2010, and Access 2007 HD https://www.youtube.com/watch?v=hI3wS5cPUcc Creating a workflow in Sharepoint 2013 - How to create a workflow in Sharepoint HD https://www.youtube.com/watch?v=lPnxHWNtL7w How to Use a sharepoint list in Access 2013, Microsoft Access 2010, and Access 2007 Tutorial HD https://www.youtube.com/watch?v=yD5VF9h25mI How to use the lookup wizard - The Wonderful Wizards of Access - Using the Access Lookup Wizard 2010 HD https://www.youtube.com/watch?v=HamWE7XQhHE Word - Adding a Picture To Mailing Labels - Create Christmas Holiday Labels HD https://www.youtube.com/watch?v=iD9LN_esiEw How to import a text file into Access - Access 2010 tutorial CSV file Access 2007 Access 2013 HD https://www.youtube.com/watch?v=ddbf4lh7fZQ How to lock a field on an Access form HD https://www.youtube.com/watch?v=zVqCtgQoF6s How to add a great lookup field to An Access form using the combo box wizard. HD https://www.youtube.com/watch?v=HzD1T6VLDM0 How to Add data to Excel pivot tables - Excel Pivot Table tutorial HD https://www.youtube.com/watch?v=JISD4UFwHvE Syncing your sound with other animations in PowerPoint 2010 HD https://www.youtube.com/watch?v=dlDj0wRWL3c How to make General Ledger entries in Quickbooks HD https://www.youtube.com/watch?v=svzcMRaF2os How to use the Input Mask Wizard - The Wonderful Wizards of Access - Using the Input Mask Wizard HD https://www.youtube.com/watch?v=fBlT1KrQUsY How to Import Excel to Access - Excel 2010 Tutorial , Access 2010 Tutorial HD https://www.youtube.com/watch?v=ljjuU2dtO5o How to calculate the week number in Excel - Excel 2010 Tutorial HD CC https://www.youtube.com/watch?v=MwgDYeanjAk How to Print Multiple Power Point Slides on One Page HD https://www.youtube.com/watch?v=MbimotE3dhw Please visit my other channel - http://www.youtube.com/channel/UCehkuRLhj8SrILuFPpSotkg Contact/Conect with me at: Tom Fragale (215)280-1073 https://www.youtube.com/user/TomFragale Excel Macros Complete https://www.youtube.com/watch?v=mRCx7x4Tyfg Excel Pivot Tables Complete https://www.youtube.com/watch?v=Yzk0-u0fCCE Excel Charts https://www.youtube.com/watch?v=nDn5thIfZD4 Top 10 Functions in Excel https://www.youtube.com/watch?v=WxxLGJPUHKE Newest Videos : Outlook Tips & Tricks https://www.youtube.com/watch?v=lh0zSjILUVw&index=1&list=PLuugq1ExG0a14z4Z0U726FsCLiS9O7nBc Word Basics https://www.youtube.com/watch?v=prpVvtHB24M&list=PLuugq1ExG0a0ebso8-a59dCaOj9_zJc_D&index=26 Excel Basics https://www.youtube.com/watch?v=QANOgcpNbmY&t=25s&index=176&list=PLuugq1ExG0a02mQ9NExldFwSbBmqZr9jL Access Queries https://www.youtube.com/watch?v=T5jLS5Ofwmo&index=87&list=PLuugq1ExG0a1CYItcr_N4Ij37zg8WQLop&t=8s
How to create Virtual Columns in Oracle Database
 
09:02
How to create Virtual Columns in Oracle Database 12c When queried, virtual columns appear to be normal table columns, but their values are derived rather than being stored on disc. The syntax for defining a virtual column is listed below. column_name [datatype] [GENERATED ALWAYS] AS (expression) [VIRTUAL] If the datatype is omitted, it is determined based on the result of the expression. The GENERATED ALWAYS and VIRTUAL keywords are provided for clarity only. The script below creates and populates an employees table with two levels of commission. It includes two virtual columns to display the commission-based salary. The first uses the most abbreviated syntax while the second uses the most verbose form. CREATE TABLE employees ( id NUMBER, first_name VARCHAR2(10), last_name VARCHAR2(10), salary NUMBER(9,2), comm1 NUMBER(3), comm2 NUMBER(3), salary1 AS (ROUND(salary*(1+comm1/100),2)), salary2 NUMBER GENERATED ALWAYS AS (ROUND(salary*(1+comm2/100),2)) VIRTUAL, CONSTRAINT employees_pk PRIMARY KEY (id) ); INSERT INTO employees (id, first_name, last_name, salary, comm1, comm2) VALUES (1, 'JOHN', 'DOE', 100, 5, 10); INSERT INTO employees (id, first_name, last_name, salary, comm1, comm2) VALUES (2, 'JAYNE', 'DOE', 200, 10, 20); COMMIT; Querying the table shows the inserted data plus the derived commission-based salaries. SELECT * FROM employees; ID FIRST_NAME LAST_NAME SALARY COMM1 COMM2 SALARY1 SALARY2 ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 1 JOHN DOE 100 5 10 105 110 2 JAYNE DOE 200 10 20 220 240 2 rows selected. SQL The expression used to generate the virtual column is listed in the DATA_DEFAULT column of the [DBA|ALL|USER]_TAB_COLUMNS views. COLUMN data_default FORMAT A50 SELECT column_name, data_default FROM user_tab_columns WHERE table_name = 'EMPLOYEES'; COLUMN_NAME DATA_DEFAULT ------------------------------ -------------------------------------------------- ID FIRST_NAME LAST_NAME SALARY COMM1 COMM2 SALARY1 ROUND("SALARY"*(1+"COMM1"/100),2) SALARY2 ROUND("SALARY"*(1+"COMM2"/100),2) 8 rows selected. SQL Notes and restrictions on virtual columns include: 1)Indexes defined against virtual columns are equivalent to function-based indexes. 2)Virtual columns can be referenced in the WHERE clause of updates and deletes, but they cannot be manipulated by DML. 3)Tables containing virtual columns can still be eligible for result caching. 4)Functions in expressions must be deterministic at the time of table creation, but can subsequently be recompiled and made non-deterministic without invalidating the virtual column. In such cases the following steps must be taken after the function is recompiled: a)Constraint on the virtual column must be disabled and re-enabled. b)Indexes on the virtual column must be rebuilt. c)Materialized views that access the virtual column must be fully refreshed. d)The result cache must be flushed if cached queries have accessed the virtual column. e)Table statistics must be regathered. 5)Virtual columns are not supported for index-organized, external, object, cluster, or temporary tables. 6)The expression used in the virtual column definition has the following restrictions: a.It cannot refer to another virtual column by name. b.It can only refer to columns defined in the same table. c.If it refers to a deterministic user-defined function, it cannot be used as a partitioning key column. e.The output of the expression must be a scalar value. It cannot return an Oracle supplied datatype, a user-defined type, or LOB or LONG RAW.
Views: 517 OracleDBA
33. Column Format in Oracle
 
03:41
In this video you will learn about Column Formatting. I will show you how we can format the numeric column to use comma (,) to separate thousand etc. I will also show you how we can trunc string to show first 3 words etc. For Support =========== Email: [email protected] Contact Form: http://www.learninhindi.com/home/contact Our Social Media ================ Facebook: https://www.facebook.com/LearnInHindi Twitter: https://twitter.com/LearnInHindi For Training & Videos ===================== For more videos and articles visit: http://www.learninhindi.com Free Java Programming In Hindi Course ===================================== https://www.youtube.com/playlist?list=PLOZ3jentlCDAwwhMyoLISrxkXTADGp7PH Free Oracle PL/SQL Programming In Hindi Course ============================================== https://www.youtube.com/playlist?list=PLB5DA82419C2D99B6 Free C Programming In Hindi Course ================================== https://www.youtube.com/playlist?list=PLOZ3jentlCDAxKpBLMWogxSdy6BZcsAJq Trips & Tricks Channel ====================== https://www.youtube.com/channel/UCGmLfkuCo-3lHHJXRJ9HUMw Programming in Hindi Channel ============================ https://www.youtube.com/channel/UCudElIDgwNrybeAvXIy1HZQ
Views: 16496 ITORIAN
REGEXP SUBSTR Test
 
04:57
REGEXP_SUBSTR Example
Views: 2615 Mohan Ramaswamy
ROWNUM vs ROWID in Oracle Explain with Examples
 
04:55
Oracle ROWNUM and ROWID
Views: 75 Adam Tech
SDU Tools   48   Splitting Delimited Strings in T-SQL into Columns
 
02:14
SDU Tools are free tools for SQL Server developers and DBAs. This tool helps to split a delimited string in T-SQL. It can have any delimiter (comma for CSV, tab for TSV, etc.) Instead of one row per value, it returns one column per value and has an option to trim the strings as well. You'll find more info about SDU Tools and download details at http://www.sqldownunder.com/Resources/SDUTools
Views: 537 SQL Down Under
Missing Commas
 
01:30
5/2/17 Missing Comma in a Compound Sentence-- Created using PowToon -- Free sign up at http://www.powtoon.com/youtube/ -- Create animated videos and animated presentations for free. PowToon is a free tool that allows you to develop cool animated clips and animated presentations for your website, office meeting, sales pitch, nonprofit fundraiser, product launch, video resume, or anything else you could use an animated explainer video. PowToon's animation templates help you create animated presentations and animated explainer videos from scratch. Anyone can produce awesome animations quickly with PowToon, without the cost or hassle other professional animation services require.
Views: 95 Devon Jones
Oracle Database11g tutorials 14 : How to CREATE TABLE using sql developer and command prompt
 
08:36
Oracle Database11g tutorials 14 How to Create table using command prompt and Create table using sql developer Blog Link http://bit.ly/1TkY4Oe Time Line 0:25 Introduction of Tables in Database 1:03 What is Create Table (Introduction of create table) 1:30 Syntax of Create Table 2:08 How to create table using Command Prompt 4:55 How to create table using SQL Developer Links for Oracle Database tutorials 4: database connectivity using SQL developer and command prompt http://youtu.be/wSqoXRlXDUU You can have indepth knowledge about SQL create table here http://www.rebellionrider.com/sql-create-table.html Tool used in this tutorial is command prompt. This tutorial series is part of SQL expert exam certification training. if you are preparing for SQL certification you can use my tutorials. This SQL Tutorial is a part of free training. Copy Cloud referral link || Use this link to join copy cloud and get 20GB of free storage https://copy.com?r=j7eYO7 Contacts E-Mail [email protected] Twitter https://twitter.com/rebellionrider Instagram http://instagram.com/rebellionrider Facebook. https://www.facebook.com/imthebhardwaj Linkedin. http://in.linkedin.com/in/mannbhardwaj/ Thanks for linking, commenting, sharing and watching more of our videos This is Manish from RebellionRider.com Today in this oracle database tutorial we will see How to CREATE A TABLE. if we have to define a table in layman language then we can say that Tables are just a collection of Rows and Columns but In RDBMS tables are database objects which help in organizing data into ROWS and COLUMNS. We can also say that SQL tables are kind of data structure which are used by database for efficient storage of data. To create a table in our database we use SQL CREATE TABLE command. SQL CREATE TABLE is a type of DATA DEFINITION LANGUAGE also known as DDL. To Create a table in your schema you will require CREATE TABLE system privilege. In our future videos we will see what are system and object privileges and how to grant them to a user. Today for this video we will be using Sample schema HR which already has all the necessary privileges. Ohk Let's see the syntax. CREATE TABLE table name ( column name1 Data-Type(size), column name2 Data-Type(size), ..... ); CREATE TABLE is an oracle reserved word or say an Oracle key word whereas There are 3 different ways of creating a table in Oracle database. Creating a table using Command Line Interface (CLI) in Oracle database For demonstrating how to create table in oracle database using CLI, I'll be using Command prompt. Thats how we create table using command prompt. you can check your table structure by DESCRIBE command for that just write DESC and your table name. Like this Another way of creating a table is by using Graphic user interface (GUI) in Oracle database To demonstrate how to create table using GUI we will use SQL developer. Lets open our SQL developer I am connected to HR schema if you do not know how to create a connection to database using SQL developer please watch my oracle database tutorial 4 that explains database connectivity using SQL developer and command prompt. Link for this video is in the description below. So lets create a table. Creating a table using SQL developer is very easy we do not have to fire any query here. Let's start First of all right click on your connection in which you want to create a table and choose schema browser. This will open a separate schema browser pane or you can expend your connection by clicking this + sign and then right click on table and choose New Table. However I prefer working with schema browser so let's skip to schema browser pane here from the first drop-down list you can choose connection name and in the second drop down list you can choose what database objects you want to work with we want to create a table thus I'll choose table and then click this arrow here and choose option for new table Ok we have created a table wizard first of all give a unique name to your table and add some column as well. For this, click the green plus button. Now we already have a column so give it some name. Also choose a datatype from the list and specify any size you can check this not null column if in case you want to make this a mandatory column you can also specify default value and constraint If you want to make this column a primary key you can click here In my future video i'll show you what are these constraints and different ways of applying them on a column in a table. for this video we will concentrate on create table only so when you are done with all your columns click ok Thats your table You can double click on your table here and can see its structure. Thats it
Views: 183296 Manish Sharma
Comma Delimited Parameters
 
17:18
Aaron Bertrand discusses one of his favorite topics, comma-delimited parameters. He shows the different ways you can split strings and which ways are the best.
Views: 772 SentryOne
72. LOOP Looping Command in PL/SQL Oracle
 
02:20
In this video you will learn about LOOP Looping Command in PL/SQL Oracle. For Support =========== Email: [email protected] Contact Form: http://www.learninhindi.com/home/contact Our Social Media ================ Facebook: https://www.facebook.com/LearnInHindi Twitter: https://twitter.com/LearnInHindi For Training & Videos ===================== For more videos and articles visit: http://www.learninhindi.com Free Java Programming In Hindi Course ===================================== https://www.youtube.com/playlist?list=PLOZ3jentlCDAwwhMyoLISrxkXTADGp7PH Free Oracle PL/SQL Programming In Hindi Course ============================================== https://www.youtube.com/playlist?list=PLB5DA82419C2D99B6 Free C Programming In Hindi Course ================================== https://www.youtube.com/playlist?list=PLOZ3jentlCDAxKpBLMWogxSdy6BZcsAJq Trips & Tricks Channel ====================== https://www.youtube.com/channel/UCGmLfkuCo-3lHHJXRJ9HUMw Programming in Hindi Channel ============================ https://www.youtube.com/channel/UCudElIDgwNrybeAvXIy1HZQ
Views: 3513 ITORIAN
SQL Concatenate All Rows Into A String
 
06:24
Combine all rows into a single string adventure works example. This method uses coalesce to remove the leading comma. Easier than for xml path in my opinion. For XML path example(next video): https://www.youtube.com/watch?v=QwPjbQosjgw
Views: 4119 Blake B
BASH scripting lesson 10 working with CSV files
 
12:03
More videos like this online at http://www.theurbanpenguin.com We now have some more great fun and see how much we can use the shell for; creating reports easily from the command line against CSV files. The script should be quite easy to read now as we use a while loop to read in the CSV file. We change the file delimiter to be the comma and then we have the line that we read in broken up into the schema elements we need. A report then is easy with colours and search ability. This is very usable
Views: 50255 theurbanpenguin
Oracle SQL Tutorial 14 - Column-Level and Table-Level Constraints
 
04:15
In the previous video we talked about adding constraints at the column-level. We made it nice and simple by only requiring a few keywords, but the problem we were having is that we could not assign a name to the constraint, which many people like to do so we can reference easily if we need to at a later time. To do this, it requires a little bit more typing, but it will give us extra flexibility and many consider it to be the higher quality approach to adding constraints. Let's go though a simple example. Let's say we have a users table with a user_id column that we want to make a primary key. We will create the table like this: CREATE TABLE( user_ id NUMBER PRIMARY KEY ) Instead of adding the PRIMARY KEY keywords after the data type, we add: CONSTRAINT user_pk PRIMARY KEY Now, we have assigned the name user_pk to this constraint. You can do the same with other constraints, such as UNIQUE. The syntax would be CONSTRAINT username_un UNIQUE. The other way to create constraints requires to put all of our constraints at the bottom of our table creation rather than inline with the column. This type of constraint is known as a table-level constraints. To make a column a primary key using table-level constraints, we add it to the CREATE TABLE command as if it is another row and use the CONSTRAINT keyword to tell Oracle that what is coming is a constraint, not a column in our table. CREATE TABLE users( user_id NUMBER, username VARCHAR2(50 CHAR), CONSTRAINT username_un UNIQUE (username), CONSTRAINT users_pk PRIMARY KEY (user_id) ) The primary differences here is that you have to put the column you are talking about in parenthesis after the PRIMARY KEY keyword. That's because it's at the end of the table and you need a way to tell it what column you are talking about. The option of putting it at the end of the table has the added benefit in this situation because if we needed to have a primary key that is the combination of multiple columns, we can do that by just adding the other column in the PRIMARY KEY parenthesis right after a comma. In summary, there are three ways to make constraints. The first is at the column level, unnamed. The second is at the column level, named. The third is at the table level, also named. In the next video we are going to create a named constraint in Oracle SQL Developer, so stay tuned and be sure to subscribe! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Support me! http://www.patreon.com/calebcurry Subscribe to my newsletter: http://bit.ly/JoinCCNewsletter Donate!: http://bit.ly/DonateCTVM2. ~~~~~~~~~~~~~~~Additional Links~~~~~~~~~~~~~~~ More content: http://CalebCurry.com Facebook: http://www.facebook.com/CalebTheVideoMaker Google+: https://plus.google.com/+CalebTheVideoMaker2 Twitter: http://twitter.com/calebCurry Amazing Web Hosting - http://bit.ly/ccbluehost (The best web hosting for a cheap price!)
Views: 16414 Caleb Curry
Split and convert Delimited String to Table in SQL Server
 
02:59
Here i show you how to split comma separated / delimited string to a table by Creating string_split function. this string_split function works on SQL Server 2005, 2008 ,2012, 2014 versions as well. The string containing words or letters separated (delimited) by comma or any special character like !,@,#,$,%,| etc... and will be split into Table values. This will also explain how to use the Split function to split a string in a SQL Query or Stored Procedures in SQL Server 2005, 2008 and 2012 versions. url for SQL Query : https://usefulittechniques.blogspot.com/p/blog-page_18.html
Views: 25 Susantha Perera
Coalesce function in SQL With Example
 
05:29
Coalesce function in SQL With Example
Views: 289 Bangalore Techie