Home
Search results “Merge rownum oracle”
Merge Statement in Oracle SQL with Example (UPDATE/DELETE or INSERT)
 
15:04
This video demonstrates how to write a Merge Statement in oracle sql, how it is useful in doing a conditional update or delete or both of them when the condition between the target table and source table is evaluated to true, and how we can insert the record into the target table when condition is evaluated to false. The video also shows the use of UPDATE, DELETE and INSERT with Merge, and also the various possible ways to use a Merge statement!!!
Views: 9614 Kishan Mashru
Oracle rownum vs row number
 
03:08
oracle rownum vs ROW_NUMBER
Views: 221 Siva Academy
how to use "ROWNUM" in oracle
 
09:05
this video shows how we can display a range of records in ORACLE DATABASE using SQL
Views: 1817 P-Square Technologies
Part 69   Merge in SQL Server
 
07:14
Text version of the video http://csharp-video-tutorials.blogspot.com/2014/09/part-69-merge-in-sql-server.html Slides http://csharp-video-tutorials.blogspot.com/2014/09/part-69-merge-in-sql-server_30.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists What is the use of MERGE statement in SQL Server Merge statement introduced in SQL Server 2008 allows us to perform Inserts, Updates and Deletes in one statement. This means we no longer have to use multiple statements for performing Insert, Update and Delete. With merge statement we require 2 tables 1. Source Table - Contains the changes that needs to be applied to the target table 2. Target Table - The table that require changes (Inserts, Updates and Deletes) The merge statement joins the target table to the source table by using a common column in both the tables. Based on how the rows match up as a result of the join, we can then perform insert, update, and delete on the target table. Merge statement syntax MERGE [TARGET] AS T USING [SOURCE] AS S ON [JOIN_CONDITIONS] WHEN MATCHED THEN [UPDATE STATEMENT] WHEN NOT MATCHED BY TARGET THEN [INSERT STATEMENT] WHEN NOT MATCHED BY SOURCE THEN [DELETE STATEMENT] Example 1 : In the example below, INSERT, UPDATE and DELETE are all performed in one statement 1. When matching rows are found, StudentTarget table is UPDATED (i.e WHEN MATCHED) 2. When the rows are present in StudentSource table but not in StudentTarget table those rows are INSERTED into StudentTarget table (i.e WHEN NOT MATCHED BY TARGET) 3. When the rows are present in StudentTarget table but not in StudentSource table those rows are DELETED from StudentTarget table (i.e WHEN NOT MATCHED BY SOURCE) Create table StudentSource ( ID int primary key, Name nvarchar(20) ) GO Insert into StudentSource values (1, 'Mike') Insert into StudentSource values (2, 'Sara') GO Create table StudentTarget ( ID int primary key, Name nvarchar(20) ) GO Insert into StudentTarget values (1, 'Mike M') Insert into StudentTarget values (3, 'John') GO MERGE INTO StudentTarget AS T USING StudentSource AS S ON T.ID = S.ID WHEN MATCHED THEN UPDATE SET T.NAME = S.NAME WHEN NOT MATCHED BY TARGET THEN INSERT (ID, NAME) VALUES(S.ID, S.NAME) WHEN NOT MATCHED BY SOURCE THEN DELETE; Please Note : Merge statement should end with a semicolon, otherwise you would get an error stating - A MERGE statement must be terminated by a semi-colon (;) In real time we mostly perform INSERTS and UPDATES. The rows that are present in target table but not in source table are usually not deleted from the target table. Example 2 : In the example below, only INSERT and UPDATE is performed. We are not deleting the rows that are present in the target table but not in the source table. Truncate table StudentSource Truncate table StudentTarget GO Insert into StudentSource values (1, 'Mike') Insert into StudentSource values (2, 'Sara') GO Insert into StudentTarget values (1, 'Mike M') Insert into StudentTarget values (3, 'John') GO MERGE INTO StudentTarget AS T USING StudentSource AS S ON T.ID = S.ID WHEN MATCHED THEN UPDATE SET T.NAME = S.NAME WHEN NOT MATCHED BY TARGET THEN INSERT (ID, NAME) VALUES(S.ID, S.NAME);
Views: 104653 kudvenkat
ORA-12560: TNS:Protocol Adapter Error | Oracle | Oracle Sql Developer | Oracle 12c | Oracle 18c
 
02:49
ORA-12560: TNS:Protocol Adapter Error | Oracle | Oracle Sql Developer | Oracle 12c | Oracle 18c ----------------------------------------------------------------------------------------------- protocol adapter error, ora-12560, error ora-12560, error 12560, oracle error, tns protocol error, how to solve tns protocol adapter error of oracle database, database error tns, oracle 10g adapter error, oracle10g, oracle11g, protocol error, adapter error, sql developer, tns protocol adapter error of oracle database, oracle 10g protocol adapter error, oracle oracle arena my oracle support oracle virtualbox oracle stock yes no oracle oracle sql developer oracle definition oracle meaning oracle careers oracle apex oracle jdk oracle 11g oracle vm virtualbox extension pack oracle linux oracle jobs oracle vm oracle reading oracle client oracle download oracle to_date oracle certification lbcc oracle oracle erp oracle ebs oracal 651 oracle decode oracle substr oracle sql developer download oracle 12c oracle university oracle metalink oracle nvl oracle ceo oracle open world oracle of delphi oracle rac create table oracle oracle database download oracle login oracle case alter table add column oracle oracle date format oracle netsuite oracle layoffs oracle instr insert into oracle oracle listagg oracle merge oracle rownum oracle trunc Please Subscribe My Channel
Pseudo columns in Oracle - Rowid vs rownum in Oracle - Sysdate function in SQL
 
27:08
Pseudo columns in oracle play an important role in providing some information from the system like rowid, rownum, sysdate and user account. The difference between rowid vs rownum has been explained with examples in this video. Sysdate function returns the current system date as on the serve while user pseudo column returns the name of the current user. #LearnSQL #OracleSQL #Crazy4DB #MunshiSir #PseudoColumns #BasicSQL Types of Subqueries : https://youtu.be/a69CaAru1aU Relational Algebra : https://youtu.be/wNaX1a5Kc48 A complete course on SQL : https://www.youtube.com/playlist?list=PLdNnjIwbbBta7tveno_un-C7VVFY-F24Z My web site : http://www.oracletrainingnagpur.com My blog : https://crazy4db.blogspot.in My facebook page : https://www.facebook.com/crazy4db/
Views: 59 Crazy4 DB
SQL QUERY 5 ||Combining two table data into a single table using Rownumber|| Explained by KJ VINOD||
 
03:30
CREATE TABLE A (ID INT) INSERT INTO A Values(1),(2),(3),(4) CREATE TABLE B (ID1 INT) INSERT INTO B Values(5),(6),(7),(8) SELECT * FROM A SELECT * from B
Views: 669 KJVinod SQL Queries
How to transpose column to row in sql
 
12:43
Hi friends today we will learn how to transpose column data into row of table. #transposecolumntorow Oracle database Unbeatable,Unbreakable Platform..
Views: 16910 Oracle World
oracle date and time functions
 
21:33
Video from our Oracle SQL course. Check out the full course at.. http://learn.hackpress.co/courses/oracle-sql-learning-by-example
Views: 46349 etldeveloper
SQL - Rownum in mysql || Add counter or row number column
 
01:27
SELECT @add_row:[email protected]_row+1 AS row_number, first_name FROM customers, (SELECT @add_row:=100)A
Views: 321 Data Disc
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: 199558 kudvenkat
Using Unpivot clause in Oracle PLSQL.
 
09:42
Unpivot is the opposite of pivot clause helping you to transpose columns into rows. Suppose if you 5 rows A,B,C,D and E. Now you can transpose this five rows into a column say fld with value A,B,C,D and E with the value of it's respective column into another columns say fld_val.
Views: 1017 Subhroneel Ganguly
Oracle SQL Tutorial : With Clause In Oracle
 
12:51
Oracle SQL Tutorial This oracle video will show you how to use With Clause In Oracle PL SQL. with in pl sql oracle tutorial for beginners With clause is used to simplify the complex sql queries. By using the with clause you can get faster query performance. You can simplify the complex subquery logic. WITH clause is called subquery factoring. For more tutorial please visit #techquerypond https://techquerypond.com https://techquerypond.wordpress.com https://twitter.com/techquerypond with query in oracle with query in oracle
Views: 8940 Tech Query Pond
Tutorial#33 How to Join  two Columns using concatenation function in Oracle SQL Database
 
06:51
How to concatenate/join/combine two or more columns, string, Number using Concatenation Function or How to Concatenate String and Integer Values in SQL Server or Concatenate String and column by using Concatenation function in Oracle SQL Or How to use Concatenation Function in Oracle database Assignment link: https://drive.google.com/open?id=1u-2Mj-27KxM5FZwRTVXNv7dwXQsAtzkn In this series we cover the following topics: SQL basics, create table oracle, SQL functions, SQL queries, SQL server, SQL developer installation, Oracle database installation, SQL Statement, OCA, Data Types, Types of data types, SQL Logical Operator, SQL Function,Join- Inner Join, Outer join, right outer join, left outer join, full outer join, self-join, cross join, View, SubQuery, Set Operator. follow me on: Facebook Page: https://www.facebook.com/LrnWthr-319371861902642/?ref=bookmarks Contacts Email: [email protected] Instagram: https://www.instagram.com/equalconnect/ Twitter: https://twitter.com/LrnWthR
Views: 87 EqualConnect Coach
Oracle Interview question : what is dual table in oracle
 
05:14
Oracle Interview question : what is dual table in oracle Oracle dual table is automatically created as part of installation in SYS schema. Dual table has one column called DUMMY of VARCHAR2(1) datatype. This table is useful for computing a constant expression with select statement List of all the SQL and PLSQL interview questions https://easy-learning-tech.blogspot.com/p/oracle-sql-plsql-interview-questions.html
Views: 951 Siva Academy
Merge Statements in T-SQL
 
09:51
Merge statements provide a flexible approach to manipulate data in a "target" table based on a join to a "source" table. The enable users to perform a large # of updates and/or inserts in a target table using a single T-SQL statement. The code to follow along with this tutorial can be found at www.analyticsinaction.com/merge/ I also have a comprehensive 60 minute T-SQL course available at Udemy : https://www.udemy.com/t-sql-for-data-analysts/?couponCode=ANALYTICS50%25OFF
Views: 11401 Steve Fox
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: 4144 Blake B
How To Transpose Columns To Rows In Oracle
 
05:09
Columns To Rows In Oracle
Views: 357 Adam Tech
Difference in Merge/Join/Lookup Stages - DataStage
 
09:10
Hello Folks, This question is often asked, even during the interviews; what is the difference between Lookup, Join and Merge Stages in a DataStage Job? In order to understand the key differences between these stages and the scenarios where these stages can be used in a DataStage job, we will start with exploring the functionality of a Merge Stage, then trying to simulate the Merge behavior using Join stage and LookUp Stages separately. By this way, we can understand the various limitations and uses of each stage. Hope you liked this video. If you have question or comments, please post them in the comments section. Have a great day!!
Views: 120 Datastage Tutorial
How to Delete Duplicate records(rows) in SQL Server
 
10:21
This video shows to find duplicate records and how to delete Duplicate records in a table.This video explains , best 5 methods to delete duplicate records in table.In this way we can maintain Accuracy and consistence of data data in Database .
Views: 39113 Tech Jago
What is Autonomous transaction in Oracle
 
05:05
What is Autonomous transaction in Oracle. This is very frequently asking question in Interview. Hello Friend, in this Video You can learn how we can give the answer of Autonomous Transactions. An autonomous transaction is available from Oracle 8i. It is a very cool, useful, unique and powerful feature in oracle. An autonomous transaction is an independent transaction that is initiated by another transaction. It must contain at least one Structured Query Language (SQL) statement. When an autonomous transaction is called, the original transaction (calling transaction) is temporarily suspended. The autonomous transaction must commit or roll back before it returns control to the calling transaction. Once changes have been made by an autonomous transaction, those changes are visible to other transactions in the database. Autonomous transactions can be nested. For use Autonomous Transactions feature in program we have to use PRAGMA AUTONOMOUS_TRANSACTION Key word in Program When to use Autonomous Transactions? • Logging mechanism you need to log an error to your database log table. On the other hand, you need to roll back your core transaction because of the error. And you don't want to roll back over other log entries. • Commits and rollbacks in your database triggers If you define a trigger as an autonomous transaction, then you can commit and/or roll back in that code. • Software usage meter You want to keep track of how often a program is called during an application session. This information is not dependent on, and cannot affect, the transaction being processed in the application. Mutation Error Using autonomous transaction we can avoid mutation error. IF you want to share with your friend this video you can copy below block of text with link and past your friend group. ----------------------------------------------------------------------------- What is autonomous transaction in Oracle This is a very frequently ask Question in Interview Please Share this video with your friends and Oracle groups and communities. https://www.youtube.com/watch?v=gyvFajpfoWE ----------------------------------------------------------------------------- For More video's you can use blow link. https://www.youtube.com/user/rameshwargupta1/videos Join With us our Facebook Group for PLSQL Interview Q/A https://www.facebook.com/groups/146487615764170/ Join our Blogs http://oracletemple.blogspot.in/ Watch More... What is Parameterized Cursor in Oracle https://www.youtube.com/watch?v=JMKwHlVi6-A What is autonomous transaction in Oracle. https://www.youtube.com/watch?v=gyvFajpfoWE What are Constraints available in Oracle. https://www.youtube.com/watch?v=WivhdLXQklQ What is Mutation Error and How to avoid mutation. https://www.youtube.com/watch?v=CbWNCyW18Bs 5 Effective way to delete Duplicate rows https://www.youtube.com/watch?v=1wtTtnc87Oc What is Difference between Delete and Truncate https://www.youtube.com/watch?v=7b6wQ3Qumgg
Views: 14616 Ram Gupta
SQL * Loader Tutorial 3: SQL Loader  Conventional and Direct Paths
 
04:43
SQL * Loader Tutorial 3: SQL Loader Conventional and Direct Paths Difference Between Conventional and Direct path loading in SQL * Loader SQL Tutorial SQL Tutorial for beginners PLSQL Tutorial PLSQL Tutorial for beginners PL/SQL Tutorial PL SQL Tutorial PL SQL Tutorial for beginners PL/SQL Tutorial for beginners Oracle SQL Tutorial
Views: 1789 TechLake
5 of 6  SQL Advanced with Oracle - A query with nested aggregate functions
 
03:16
This video gives an example of nested aggregate functions. A subquery with aggregate functions is placed in the WHERE clause of the outer query, which also contains aggregate functions. (5 of 6) There is also an "SQL Fundamentals" series. (Search for "databasemec" for tutorials using SQL Server.)
Views: 9249 Jennifer Kreie
Oracle Tutorial || Oracle|Sql Identifiers by basha
 
14:28
DURGASOFT is INDIA's No.1 Software Training Center offers online training on various technologies like JAVA, .NET , ANDROID,HADOOP,TESTING TOOLS ,ADF,INFORMATICA,TABLEAU,IPHONE,OBIEE,ANJULAR JS, SAP... courses from Hyderabad & Bangalore -India with Real Time Experts. Mail us your requirements to [email protected] so that our Supporting Team will arrange Demo Sessions. Ph:Call +91-8885252627,+91-7207212428,+91-7207212427,+91-8096969696. http://durgasoft.com http://durgasoftonlinetraining.com https://www.facebook.com/durgasoftware http://durgajobs.com https://www.facebook.com/durgajobsinfo......
[en] SQL Developer- How to decrypt stored connections passwords in Oracle SQL Developer?
 
06:18
Introducing the fastest way to decrypt SQL Developer stored connections passwords. Don't need any Java, Python or execute any scripts ! Vietnamese version: https://youtu.be/yrzsQ-Zf_ho
Views: 132 1Click2beDBA
Oracle - Sub-Queries
 
07:03
Oracle - Sub-Queries
Views: 10489 Chris Ostrowski
Difference between Rank , Dense Rank and Row number
 
03:34
Please comment I you have doubts or questions related to this topic.
Views: 556 Oracle PL/SQL
SQL Server Interview question  :- How to combine table row in to a single column / variable ?
 
03:56
See 500 videos from http://www.questpond.com SQL Server Interview question :- How to combine table row in to a single column / variable ? Do not forget to see our SQL Server interview question book from http://www.flipkart.com/sql-server-8183331033/p/itmdyuqz2a6tzhjw
Views: 9921 Shivprasad Koirala
Performing top n queries in Oracle 12c
 
08:05
A short tutorial by Eran Koren on using the new FETCH and OFFSET options in Oracle 12c to perform top-n queries and pagination through query results in Oracle
Views: 534 Eran Koren
SQL: FBI(Functional Based Indexes)
 
04:11
In this tutorial, you'll learn how to create FBI...
Views: 13313 radhikaravikumar
Row Number Function in SQL Server by Satya Ramesh
 
14:16
In this video, you will learn about row number function in SQL Server. Video resources including presentation, demo files, code snippets and more learning material is available on http://www.dataplatformgeeks.com/ (Join for free and access all the resources) Connect With The Speaker (Satya Ramesh) -Follow on Twitter: https://twitter.com/satyaramesh230 -Follow on FaceBook at https://www.facebook.com/satyaramesh230 -Follow on LinkedIN: https://www.linkedin.com/in/ramesh-satya-a87a5385/ Connect with SQLMaestros: http://sqlmaestros.com/ -http://www.twitter.com/SQLMaestros -https://www.facebook.com/SQLMaestros -Email us: [email protected] SQLMaestros Master Classes Wish to Attend Full-Day, Deep-Dive Training? SQLMaestros Master Classes are announced. Classes on SQL Server, SSRS, Power BI, SSIS, DevOps, Machine Learning, R, Python & Artificial Intelligence. http://www.sqlmaestros.com/ SQLMaestros Video Courses Amit Bansal’s popular SQL Performance Tuning course is now going live in video format. http://sqlmaestros.com/sql-server-videos-courses/ SQLMaestros Hands-On-Labs Want to practice SQL, Azure & BI concepts, step-by-step with exercises, screenshots, instructions & explanations? Get access to 100+ labs covering the entire Microsoft Data Platform stack. Try SQLMaestros Hands-On-Labs – the new way of practical, self-paced learning. Anytime. Anywhere. http://hols.SQLMaestros.com Email [email protected] SQLMaestros Learning Kits The kit comprises of PowerPoint presentations, lab manuals, workbook & instructor demos & notes. The kit is based on Amit Bansal’s Performance Tuning Master Class. https://sqlmaestros.com/sql-server-courseware/ SQL Server Health Check If your SQL Server deployments are not performing good or if you have seen early signs of performance degradation, SQLMaestros can help you with a thorough health check. https://sqlmaestros.com/sql-server-health-check/ Have technical questions? Join the largest SQL group on FB www.facebook.com/groups/theSQLGeeks Our LinkedIn group https://www.linkedin.com/groups/6753546 DataPlatformGeeks (DPG) Community Join the fastest growing community of data & analytics professionals Why Join DPG? http://www.dataplatformgeeks.com/ -Attend all events hosted by DPG, including SQLMaestros Special Events -Get access to free videos, labs, magazines and host of learning resources -Download all events & conference material -Learn new skills. Sharpen existing skills -Be part of Asia’s Largest Data/Analytics Community -Opportunity to be a regional mentor & speaker at our events -Immense technical & professional development Data Platform Summit 2019 Pre-Registration is now Open DPS 2019 will be officially launched in January 2019. However, you can pre-register yourself right now. This will indicate that you are interested in DPS 2019 and it will entitle you to the pre-launch discount code which will give you the lowest pricing for DPS 2019. The pre-launch code will only be shared with pre-registered individuals. Pre-registration does not cost you anything. Learn more here. http://dps10.com Check out Data Platform Summit 2018 success. https://www.dataplatformgeeks.com/dps2018/
Views: 233 SQLMaestros
SQL Correlated Subqueries
 
07:14
Demonstrates SQL correlated subqueries.
Views: 29892 Jamie King
Efficient Function Calls From SQL (Part 1) : Scalar Subquery Caching
 
02:33
The first part of a mini-series of videos showing how you can improve the performance of function calls from SQL. In this episode, we take a look at Scalar Subquery Caching. For more information see: https://oracle-base.com/articles/misc/efficient-function-calls-from-sql#scalar-subquery-caching Website: https://oracle-base.com Blog: https://oracle-base.com/blog Twitter: https://twitter.com/oraclebase Cameo by Bruno Borges : Blog: https://blogs.oracle.com/brunoborges/ Website: http://brunoborges.com/ Twitter: https://twitter.com/brunoborges Cameo appearances are for fun, not an endorsement of the content of this video.
Views: 2488 ORACLE-BASE.com
Materialized View In Oracle - Part 3
 
13:50
This video explains the different modes using which you can refresh your materialize views and the different scenarios in which you should opt for these strategies.
Views: 3587 Tech Coach
Transaction Isolation Levels
 
05:12
Connect on LinkedIn: https://www.linkedin.com/in/thippireddybharath/ Subscribe to my YouTube Channel: https://www.youtube.com/user/thippireddybharath Follow my adventures and course updates on Instagram: https://www.instagram.com/bharaththippireddy/ Like and connect on my facebook page: https://www.facebook.com/Bharath-Thippireddy-Net-114548718634098/ Maximum Discounts on my Other TOP Courses: Spring Boot Fundamentals: https://www.udemy.com/springbootfundamentals/?couponCode=YOUARETHECREATOR Angular 6 Crash Course(HOT and NEW): https://www.udemy.com/angular-6-crash-course/?couponCode=YOUARETHECREATOR TypeScript for Beginners https://www.udemy.com/typescript-for-beginners/?couponCode=YOUARETHECREATOR End To End Java Project Development Using Spring Boot: https://www.udemy.com/end-to-end-java-project-development-using-spring-boot/?couponCode=YOUARETHECREATOR Java Design Patterns: https://www.udemy.com/java-design-patterns/?couponCode=YOUARETHECREATOR Java Web Services: https://www.udemy.com/java-web-services/?couponCode=YOUARETHECREATOR Java Web Services Part 2: https://www.udemy.com/javawebservicespart2/?couponCode=YOUARETHECREATOR Spring Data REST: https://www.udemy.com/microservices-rest-apis-using-spring-data-rest/?couponCode=YOUARETHECREATOR Spring Framework in easy steps: https://www.udemy.com/springframeworkineasysteps/?couponCode=YOUARETHECREATOR Spring Data JPA Using Hibernate: https://www.udemy.com/spring-data-jpa-using-hibernate/?couponCode=YOUARETHECREATOR JDBC Servlets and JSP: https://www.udemy.com/jdbcservletsandjsp/?couponCode=YOUARETHECREATOR Junit and Mockito Crash Course: https://www.udemy.com/junitandmockitocrashcourse/?couponCode=YOUARETHECREATOR Core Java Made Easy: https://www.udemy.com/corejavamadeeasy/?couponCode=YOUARETHECREATOR XML and XML Schema Definition: https://www.udemy.com/xml-and-xml-schema-definition-in-easy-steps/?couponCode=YOUARETHECREATOR XSLT XPATH and XQUERY: https://www.udemy.com/xslt-xpath-and-xquery-fundamentals/?couponCode=YOUARETHECREATOR Maven Crash Course: https://www.udemy.com/mavencrashcourse/?couponCode=YOUARETHECREATOR Java Script Fundamentals: (FREE) https://www.udemy.com/javascriptfundamentals Advanced and Object Oriented JavaScript and ES6 (FREE) https://www.udemy.com/advanced-and-object-oriented-javascript Python Core and Advanced: (FREE) https://www.udemy.com/python-core-and-advanced/
FTS vs Index Scan   Part 1
 
02:19
what is "full table scan in oracle" and "oracle index scan" Small Excerpt from "Oracle performance Tuning Session". http://www.dbvidya.com/oracle-performance-tuning-videos/ [email protected] +91 991 2323 000 Oracle Performance Tuning Online Training : http://www.dbvidya.com/course/performance-tuning-for-dba/ Oracle SQL Performance Tuning Training Online : http://www.dbvidya.com/course/sql-tuning-advanced/ Oracle Performance Tuning Videos Tutorial for DBA and Developers : http://www.dbvidya.com/oracle-performance-tuning-videos/ Oracle AWR Tutorial: http://www.dbvidya.com/course/oracle-awr/ Erwin Tool Online Training : http://www.dbvidya.com/course/erwin-tool/ ER Data Modeling Course : http://www.dbvidya.com/course/er-modeling/ Dimensional Modeling Training Online : http://www.dbvidya.com/course/dimensional-modeling/ Oracle Database Blogs : http://www.dbvidya.com/blog/
Views: 267 DbVidya
PL/SQL Tutorial 2 (Oracle): Concatenate Command
 
01:48
PL/SQL Tutorial 2 (Oracle): Concatenate Command In this tutorial I show you how to use the concatenate command in PL/SQL. Source Code: https://github.com/mitchtabian/SQL-tutorials Subscribe to my Blog and YouTube channel to get notifications when new FREE coding tutorials are posted! Blog: http://www.codingwithmitch.com/
Views: 364 CodingWithMitch
Oracle Core,  Лекция 3-2
 
01:34:13
Ссылка на файл с презентацией: https://docs.google.com/presentation/d/1PzGVjjsR2lSlr5EXFzmbIpVN4RMGBkjwU_De6FQyxVI/edit?usp=sharing (презентация может быть с анимацией) Ссылка на краткий конспект лекции: https://docs.google.com/document/d/1x7-BCc_2Z83vSGjcFZiWGGdtVoRm1AJLRnxp-lXtchU/edit?usp=sharing 1. Таблица DUAL 2. Конструкция WITH. Рекурсивные запросы с конструкцией WITH 3. Иерархические запросы (self joins): START WITH, CONNECT BY, PRIOR, NOCYCLE, ORDER SIBLINGS BY, LEVEL, CONNECT_BY_ISCYCLE, CONNECT_BY_ISLEAF, SYS_CONNECT_BY_PATH, CONNECT_BY_ROOT 4. Псевдостолбцы (pseudocomlumns). 4.1 ORA_ROWSCN (SCN_TO_TIMESTAMP, TIMESTAMP_TO_SCN) 4.2 ROWID (DBMS_ROWID) 4.3 ROWNUM 5. Конструкция SAMPLE 6. Конструкция PIVOT 7. Конструкция UNPIVOT 8. Оператор INSERT INTO SINGLE TABLE 9. Оператор INSERT INTO MULTITABLE: INSERT ALL, INSERT FIRST 10. Оператор UPDATE 11. Оператор DELETE 12. Оператор MERGE 13. Обновляемая VIEW (KEY-PRESERVED TABLE) 14. SQL FUNCTIONS: SYSDATE, EXTRACT, ADD_MONTH, MONTH_BETWEEN, UPPER/LOWER, LENGTH, SUBSTR, INSTR, REPLACE, LTRIM/RTRIM/TRIM, LPAD/RPAD, TO_CHAR, TO_NUMBER, TO_DATE, POWER, ABS, ROUND, CEIL/FLOOR, USER, TRUNC, GREATEST/LEAST Oracle Database, БД Oracle, вебинар Oracle, презентация Oracle, урок Oracle, лекция Oracle, обучение Oracle
Oracle sql and pl/sql Interview question : Difference between %type and %rowtype in oracle pl/sql
 
11:37
This video tutorial explains the usage of %type variable declaration and %rowtype variable declaration. It also states the advantages of using %type and %rowtype variable declaration. At the end the viewes can easily identify the difference between %type and %rowtype variable declaration If you want more such videos of exciting and amazing 'difference between' concepts, check out the links below : char and varchar2 : https://youtu.be/039qzwjWf4k replace and translate : https://youtu.be/HKYF77BGzOE procedure and function : https://youtu.be/q3LmOenL120 in and exists : https://youtu.be/REX4IjRYlFw rank and dense_rank : https://youtu.be/WGSX998hZ9M delete and truncate : https://youtu.be/u76wMm2byXo
Views: 586 Kishan Mashru
Row chaining and Row Migration Management
 
14:00
Hi guys today i will give you introduction about row chaining and row migration managing block space. #Rowchaining #RowMigration Oracle database Unbeatable,Unbreakable Platform..
Views: 2243 Oracle World
Part 12   Can we join two tables without primary foreign key relation
 
10:38
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/09/part-12-can-we-join-two-tables-without.html Can we join two tables without primary foreign key relation Yes, we can join two tables without primary foreign key relation as long as the column values involved in the join can be converted to one type. ID column in Departments table is not the primary Key and DepartmentId column in Employees table is not the foreign key. But we can still join these tables using ID column from Departments table and DepartmentId column from Employees table, as both the columns involved in the join have same data type i.e int. Select Employees.Name as EmployeeName, Departments.Name as DepartmentName from Employees join Departments on Departments.ID = Employees.DepartmentId The obious next question is, if primary foreign key relation is not mandatory for 2 tables to be joined then what is the use of these keys? Primary key enforces uniqueness of values over one or more columns. Since ID is not a primary key in Departments table, 2 or more departments may end up having same ID value, which makes it impossible to distinguish between them based on the ID column value. Foreign key enforces referential integrity. Without foreign key constraint on DepartmentId column in Employees table, it is possible to insert a row into Employees table with a value for DepartmentId column that does not exist in Departments table. The following insert statement, successfully inserts a new Employee into Employees table whose DepartmentId is 100. But we don't have a department with ID = 100 in Departments table. This means this employee row is an orphan row, and the referential integrity is lost as result Insert into Employees values (8, 'Mary', 'Female', 80000, 100) If we have had a foreign key constraint on DepartmentId column in Employees table, the following insert statement would have failed with the following error. Msg 547, Level 16, State 0, Line 1 The INSERT statement conflicted with the FOREIGN KEY constraint. The conflict occurred in database "Sample", table "dbo.Departments", column 'ID'.
Views: 120269 kudvenkat
Oracle 12c new feature Identity column
 
09:48
Oracle 12c new feature Identity column oracle identity column identity columns in oracle 12c
Views: 235 Siva Academy
Oracle Tutorial || Oracle|Sql -Other DB Objects-Sequence Part - 1 by basha
 
33:32
DURGASOFT is INDIA's No.1 Software Training Center offers online training on various technologies like JAVA, .NET , ANDROID,HADOOP,TESTING TOOLS ,ADF,INFORMATICA,TABLEAU,IPHONE,OBIEE,ANJULAR JS, SAP... courses from Hyderabad & Bangalore -India with Real Time Experts. Mail us your requirements to [email protected] so that our Supporting Team will arrange Demo Sessions. Ph:Call +91-8885252627,+91-7207212428,+91-7207212427,+91-8096969696. http://durgasoft.com http://durgasoftonlinetraining.com https://www.facebook.com/durgasoftware http://durgajobs.com https://www.facebook.com/durgajobsinfo......
Writing SQL with Examples on DB2 10.5 System Views and Table Functions
 
49:47
Presented by Ember Crooks, Xtivia Some DBAs write SQL every day and others not as much. Come and learn the basics of writing SQL along with a few tips on more advanced features of SQL. Examples will use system views and table functions available in DB2 10.5. This video is geared towards DBAs who don't write SQL on a regular basis and anyone who wants to take a basic look at writing SQL 1) Understand the SELECT list 2) Explore the variety of joins, and best practices for clear join syntax 3) Using subselects, both correlated and non-correlated 4) Understanding the GROUP BY clause and aggregate functions 5) A few more advanced concepts, including common table expressions and the MERGE statement Ember Crooks is a DB2 UDB DBA Team Lead at Xtivia (www.xtivia.com). She is responsible for the design, build, and support of a wide range of DB2 databases for multiple clients. Ember has 13 years of experience with DB2 on Linux, Unix, and Windows platforms. She is the founder and principal author of the popular db2commerce.com technical blog where she educates others through example and case study. Ember is an IBM Gold Consultant and IBM Champion in Information Management.
SQL: Copy data from a database table to another database table
 
04:29
Description: This video demonstrates how we can write a SQL query to create a new table with data into a new database using existing database table.
Views: 674 Gautam Mokal
Difference between rows and range
 
05:52
range vs rows in sql server difference between rows clause and range clause in sql server range clause vs rows clause in sql server sql server running total query running total example in sql server In this video we will discuss the difference between rows and range in SQL Server. This is continuation to Part 116. Please watch Part 116 from SQL Server tutorial before proceeding. Let us understand the difference with an example. We will use the following Employees table in this demo. SQL Script to create the Employees table Create Table Employees ( Id int primary key, Name nvarchar(50), Salary int ) Go Insert Into Employees Values (1, 'Mark', 1000) Insert Into Employees Values (2, 'John', 2000) Insert Into Employees Values (3, 'Pam', 3000) Insert Into Employees Values (4, 'Sara', 4000) Insert Into Employees Values (5, 'Todd', 5000) Go Calculate the running total of Salary and display it against every employee row The following query calculates the running total. We have not specified an explicit value for ROWS or RANGE clause. SELECT Name, Salary, SUM(Salary) OVER(ORDER BY Salary) AS RunningTotal FROM Employees So the above query is using the default value which is RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW This means the above query can be re-written using an explicit value for ROWS or RANGE clause as shown below. SELECT Name, Salary, SUM(Salary) OVER(ORDER BY Salary RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS RunningTotal FROM Employees We can also achieve the same result, by replacing RANGE with ROWS SELECT Name, Salary, SUM(Salary) OVER(ORDER BY Salary ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS RunningTotal FROM Employees What is the difference between ROWS and RANGE To understand the difference we need some duplicate values for the Salary column in the Employees table. Execute the following UPDATE script to introduce duplicate values in the Salary column Update Employees set Salary = 1000 where Id = 2 Update Employees set Salary = 3000 where Id = 4 Go Now execute the following query. Notice that we get the running total as expected. SELECT Name, Salary, SUM(Salary) OVER(ORDER BY Salary ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS RunningTotal FROM Employees The following query uses RANGE instead of ROWS SELECT Name, Salary, SUM(Salary) OVER(ORDER BY Salary RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS RunningTotal FROM Employees Notice we don't get the running total as expected. So, the main difference between ROWS and RANGE is in the way duplicate rows are treated. ROWS treat duplicates as distinct values, where as RANGE treats them as a single entity. All together side by side. The following query shows how running total changes 1. When no value is specified for ROWS or RANGE clause 2. When RANGE clause is used explicitly with it's default value 3. When ROWS clause is used instead of RANGE clause SELECT Name, Salary, SUM(Salary) OVER(ORDER BY Salary) AS [Default], SUM(Salary) OVER(ORDER BY Salary RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS [Range], SUM(Salary) OVER(ORDER BY Salary ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS [Rows] FROM Employees Text version of the video http://csharp-video-tutorials.blogspot.com/2015/10/difference-between-rows-and-range.html Slides http://csharp-video-tutorials.blogspot.com/2015/10/difference-between-rows-and-range_8.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 35464 kudvenkat
SQL Server Query Plan Analysis: The 5 Culprits That Cause 95% of Your Performance Headache
 
01:26:27
Ever open a huge query plan to track down a performance issue and instead find yourself overwhelmed by the sheer number of objects on the screen? How do you figure out which part of the plan.
Views: 4631 Fidela Aretha
What to choose for performance   SubQuery or Joins   Part 62
 
12:26
Text version of the video http://csharp-video-tutorials.blogspot.com/2013/01/what-to-choose-for-performance.html Slides http://csharp-video-tutorials.blogspot.com/2013/09/part-62-what-to-choose-for-performance.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists What to choose for performance - SubQuery or Joins According to MSDN, in sql server, in most cases, there is usually no performance difference between queries that uses sub-queries and equivalent queries using joins. For example, on my machine I have 400,000 records in tblProducts table 600,000 records in tblProductSales tables The following query, returns, the list of products that we have sold atleast once. This query is formed using sub-queries. When I execute this query I get 306,199 rows in 6 seconds Select Id, Name, Description from tblProducts where ID IN ( Select ProductId from tblProductSales ) At this stage please clean the query and execution plan cache using the following T-SQL command. CHECKPOINT; GO DBCC DROPCLEANBUFFERS; Go DBCC FREEPROCCACHE; GO Now, run the query that is formed using joins. Notice that I get the exact same 306,199 rows in 6 seconds. Select distinct tblProducts.Id, Name, Description from tblProducts inner join tblProductSales on tblProducts.Id = tblProductSales.ProductId Please Note: I have used automated sql script to insert huge amounts of this random data. Please watch Part 61 of SQL Server tutorial, in which we have discussed about this automated script. According to MSDN, in some cases where existence must be checked, a join produces better performance. Otherwise, the nested query must be processed for each result of the outer query. In such cases, a join approach would yield better results. The following query returns the products that we have not sold atleast once. This query is formed using sub-queries. When I execute this query I get 93,801 rows in 3 seconds Select Id, Name, [Description] from tblProducts where Not Exists(Select * from tblProductSales where ProductId = tblProducts.Id) When I execute the below equivalent query, that uses joins, I get the exact same 93,801 rows in 3 seconds. Select tblProducts.Id, Name, [Description] from tblProducts left join tblProductSales on tblProducts.Id = tblProductSales.ProductId where tblProductSales.ProductId IS NULL In general joins work faster than sub-queries, but in reality it all depends on the execution plan that is generated by SQL Server. It does not matter how we have written the query, SQL Server will always transform it on an execution plan. If sql server generates the same plan from both queries, we will get the same result. I would say, rather than going by theory, turn on client statistics and execution plan to see the performance of each option, and then make a decision. In a later video session we will discuss about client statistics and execution plans in detail.
Views: 90061 kudvenkat
What is the difference between UNION and UNION All ( SQl server )?
 
03:52
For more such videos visit http://www.questpond.com See our other Step by Step video series below :- Learn SQL Server Step by Step in 16 hours:- http://tinyurl.com/ja4zmwu Learn Angular tutorial for beginners https://tinyurl.com/ycd9j895 Learn MVC Core step by step :- http://tinyurl.com/y9jt3wkv Learn MVC 5 Step by Step in 16 hours:- https://goo.gl/dmdakg Learn MSBI Step by Step in 32 hours:- https://goo.gl/TTpFZN Learn Xamarin Mobile Programming Step by Step :- https://goo.gl/WDVFuy Learn Design Pattern Step by Step in 8 hours:- https://goo.gl/eJdn0m Learn C# Step by Step in 100 hours :- https://goo.gl/FNlqn3 Learn Data structures & algorithm in 8 hours :-https://tinyurl.com/ybx29c5s Learn Javascript in 2 hours :- http://tinyurl.com/zkljbdl Learn SharePoint Step by Step in 8 hours:- https://goo.gl/XQKHeP Learn TypeScript in 45 Minutes :- https://goo.gl/oRkawI Learn webpack in 50 minutes:- https://goo.gl/ab7VJi Learn Visual Studio code in 10 steps for beginners:- https://tinyurl.com/lwgv8r8 Learn Tableau step by step :- https://tinyurl.com/kh6ojyo What is the difference between UNION and UNION All ( SQl server )?. This is a important SQL server interview lets try to answer the same. We are also distributing a 100 page Ebook "SQL Server Interview Questions". If you want this ebook please share this video in your facebook/twitter/linkedin account and email us on [email protected] with the shared link and we will email you the PDF.