Home
Search results “First row only oracle”
SQL query to find first record and last record in single query
 
08:55
SQL query to find first record and last record in single query
Views: 6961 SQL Guru
Aula 06   FETCH FIRST oracle
 
05:43
Para se inscrever no nosso curso acesse --http://aprendaplsql.com/1z0-047-curso-oracle-sql-expert/ Esta aula faz parte do Curso Oracle SQL Expert e foi liberada para o público afim de distribuir conhecimentos do Oracle 12c. Queries utilizadas no vídeo: SELECT * FROM employees WHERE rownum = 5 ORDER BY salary desc; SELECT emp.* FROM (SELECT * FROM employees ORDER BY salary DESC) emp WHERE rownum = 5; SELECT * FROM employees ORDER BY salary DESC FETCH FIRST 5 ROWS ONLY; -- Clausula WITH TIES retorna as linhas repetidas na última posição SELECT * FROM employees ORDER BY salary DESC FETCH FIRST 5 ROWS WITH TIES; UPDATE employees SET salary = 13500 WHERE employee_id = 103; -- Comando OFFSET você pula linhas SELECT * FROM employees ORDER BY salary DESC OFFSET 3 ROWS; -- Você também pode retornar as próximas x linhas depois de uma certa quantidade -- de linhas SELECT * FROM employees ORDER BY salary DESC OFFSET 3 ROWS FETCH NEXT 2 ROWS ONLY; -- Você também consegue definir por porcentagem o retorno das linhas SELECT * FROM employees ORDER BY salary DESC FETCH FIRST 25 PERCENT ROWS ONLY;
Views: 1257 Aprenda PL/SQL
LAST VALUE function in SQL Server
 
05:35
last_value function in sql server 2008 sql server last_value function returns incorrect data sql server last_value function example sql server last_value function with partition example LAST_VALUE function in SQL Server In this video we will discuss LAST_VALUE function in SQL Server. LAST_VALUE function Introduced in SQL Server 2012 Retrieves the last value from the specified column ORDER BY clause is required PARTITION BY clause is optional ROWS or RANGE clause is optional, but for it to work correctly you may have to explicitly specify a value Syntax : LAST_VALUE(Column_Name) OVER (ORDER BY Col1, Col2, ...) LAST_VALUE function not working as expected : In the following example, LAST_VALUE function does not return the name of the highest paid employee. This is because we have not specified an explicit value for ROWS or RANGE clause. As a result it is using it's default value RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW. SELECT Name, Gender, Salary, LAST_VALUE(Name) OVER (ORDER BY Salary) AS LastValue FROM Employees LAST_VALUE function working as expected : In the following example, LAST_VALUE function returns the name of the highest paid employee as expected. Notice we have set an explicit value for ROWS or RANGE clause to ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING This tells the LAST_VALUE function that it's window starts at the first row and ends at the last row in the result set. SELECT Name, Gender, Salary, LAST_VALUE(Name) OVER (ORDER BY Salary ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS LastValue FROM Employees LAST_VALUE function example with partitions : In the following example, LAST_VALUE function returns the name of the highest paid employee from the respective partition. SELECT Name, Gender, Salary, LAST_VALUE(Name) OVER (PARTITION BY Gender ORDER BY Salary ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS LastValue FROM Employees Text version of the video http://csharp-video-tutorials.blogspot.com/2015/10/lastvalue-function-in-sql-server.html Slides http://csharp-video-tutorials.blogspot.com/2015/10/lastvalue-function-in-sql-server_9.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 Full SQL Server Course https://www.youtube.com/playlist?list=PL4cyC4G0M1RQ_Rm52cQ4CcOJ_T_HXeMB4 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: 30591 kudvenkat
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: 165090 Manish Sharma
R tutorial: connecting to a database
 
03:38
Learn more about connecting to databases with R: https://www.datacamp.com/courses/importing-data-in-r-part-2 Welcome to part two of importing data in R! The previous course dealt with accessing data stored in flat files or excel files. In a professional setting, you'll also encounter data stored in relational databases. In this video, I'll briefly talk about what a relational database is and then I'll explain how you can connect to it. In the next video, I'll explain how you can import data from it! So, what's a relational database? There's no better way to show this than with an example. Take this database, called company. It contains three tables, employees, products and sales. Like a flat file, information is displayed in a table format. The employees table has 5 records and three fields, namely id, name and started_at. The id here serves as a unique key for each row or record. Next, the products table contains the details on four products. We're dealing with data from a telecom company that's selling both with and without a contract. Also here, each product has an identifier. Finally, there's the sales table. It lists what products were sold by who, when and for what price. Notice here that the ids in employee_id and product_id correspond to the ids that you can find in the employees and products table respectively. The third sale for example, was done by the employee with id 6, so Julie. She sold the product with id 9, so the Biz Unlimited contract. These relations make this database very powerful. You only store all necessary information once in nicely separated tables, but can connect the dots between different records to model what's happening. How the data in a relational database is stored and shuffled around when you make adaptations, depends on the so-called database management system, or DBMS you're using. Open-source implementations such as MySQL, postgreSQL and SQLite are very popular, but there are also proprietary implementations such as Oracle Database and Microsoft SQL server. Practically all of these implementations use SQL, or sequel, as the language for querying and maintaining the database. SQL stands for Structured Query Language. Depending on the type of database you want to connect to, you'll have to use different packages. Suppose the company database I introduced before is a MySQL database. This means you'll need the RMySQL package. For postgreSQL you'll need RpostgreSQL, for Oracle, you'll use ROracle and so on. How you interact with the database, so which R functions you use to access and manipulate the database, is specified in another R package called DBI. In more technical terms, DBI is an interface, and RMySQL is the implementation. Let's install the RMySQL package, which automatically installs the DBI package as well. Loading only the DBI package will be enough to get started. The first step is creating a connection to the remote MySQL database. You do this with dbConnect(), as follows. The first argument specifies the driver that you will use to connect to the MySQL database. It sure looks a bit strange, but the MySQL() function from the RMySQL package simply constructs a driver for us that dbConnect can use. Next, you have to specify the database name, where the database is hosted, through which port you want to connect, and finally the credentials to authenticate yourself. This is an actual database that we're hosting, so you can try these commands yourself! The result of the dbConnect call, con, is a DBI connection object. You'll need to pass this object to whatever function you're using to interact with the database. Before we do that, let's get familiar with this connection object in the exercises!
Views: 32615 DataCamp
ADF - Selecting a Row in a Table to Edit
 
03:50
Selecting a Row in a Table to Edit - using setCurrentRowWithKey
Views: 20958 ShayJDev
ORACLE: How to get FIRST and LAST DAY of  Month ?
 
00:56
SQL Language, available for any version of Oracle Database.
Views: 5335 Database Tutorials
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: 175074 kudvenkat
SQL for first row in each GROUP BY group
 
00:49
SQL To retrieve first row in each GROUP BY group
Views: 357 Tutorials_888
Oracle 12c Standard Edition Installation on Standalone Server (Software Only)
 
02:19
This video is showing the steps for installing Oracle 12c Database Standard Edition on a Standalone Oracle Linux 6.4 server. For more details see http://blog.dbvisit.com The pre-requisite steps were performed before starting the installer, example: - Ensure required Operating System (OS) software is installed - Configure kernel and user limits - Create the "oracle" Unix account (software owner) - Create the required Unix groups: oinstall, dba, oper
Views: 2702 Dbvisit Software
Part 1   How to find nth highest salary in sql
 
11:45
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/05/part-1-how-to-find-nth-highest-salary_17.html This is a very common SQL Server Interview Question. There are several ways of finding the nth highest salary. By the end of this video, we will be able to answer all the following questions as well. How to find nth highest salary in SQL Server using a Sub-Query How to find nth highest salary in SQL Server using a CTE How to find the 2nd, 3rd or 15th highest salary Let's use the following Employees table for this demo Use the following script to create Employees table Create table Employees ( ID int primary key identity, FirstName nvarchar(50), LastName nvarchar(50), Gender nvarchar(50), Salary int ) GO Insert into Employees values ('Ben', 'Hoskins', 'Male', 70000) Insert into Employees values ('Mark', 'Hastings', 'Male', 60000) Insert into Employees values ('Steve', 'Pound', 'Male', 45000) Insert into Employees values ('Ben', 'Hoskins', 'Male', 70000) Insert into Employees values ('Philip', 'Hastings', 'Male', 45000) Insert into Employees values ('Mary', 'Lambeth', 'Female', 30000) Insert into Employees values ('Valarie', 'Vikings', 'Female', 35000) Insert into Employees values ('John', 'Stanmore', 'Male', 80000) GO To find the highest salary it is straight forward. We can simply use the Max() function as shown below. Select Max(Salary) from Employees To get the second highest salary use a sub query along with Max() function as shown below. Select Max(Salary) from Employees where Salary [ (Select Max(Salary) from Employees) To find nth highest salary using Sub-Query SELECT TOP 1 SALARY FROM ( SELECT DISTINCT TOP N SALARY FROM EMPLOYEES ORDER BY SALARY DESC ) RESULT ORDER BY SALARY To find nth highest salary using CTE WITH RESULT AS ( SELECT SALARY, DENSE_RANK() OVER (ORDER BY SALARY DESC) AS DENSERANK FROM EMPLOYEES ) SELECT TOP 1 SALARY FROM RESULT WHERE DENSERANK = N To find 2nd highest salary we can use any of the above queries. Simple replace N with 2. Similarly, to find 3rd highest salary, simple replace N with 3. Please Note: On many of the websites, you may have seen that, the following query can be used to get the nth highest salary. The below query will only work if there are no duplicates. WITH RESULT AS ( SELECT SALARY, ROW_NUMBER() OVER (ORDER BY SALARY DESC) AS ROWNUMBER FROM EMPLOYEES ) SELECT SALARY FROM RESULT WHERE ROWNUMBER = 3
Views: 806204 kudvenkat
Rappelz Oracle Cube Solo
 
09:12
2/3/0 Oracle This is my first attempt at soloing cube on my new oracle alt. It proved to be pretty tough. When the evo2 cubes decide to crit 2-3 times in a row its over due to only having 30k hp, but I thought it went relatively well. Also, the first boss wouldn't cooperate this time so I just left him out for this video. Maybe he'll be in the next one. I'm running full feral equips. 6x crit and 6x vit teardrops in gear. +21 staff, +20 armor, and the rest is around +10ish. Rakashi belt set. I have magus, war kahuna, marksman, void mage, and beast master buffs, plus my oracle toggles and buffs. Hope you enjoy!
Views: 1320 MrBnet18
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: 16300 Caleb Curry
Part 4   Delete duplicate rows in sql
 
03:26
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/05/part-4-delete-duplicate-rows-in-sql.html In this video, we will discuss deleting all duplicate rows except one from a sql server table. SQL Script to create Employees table Create table Employees ( ID int, FirstName nvarchar(50), LastName nvarchar(50), Gender nvarchar(50), Salary int ) GO Insert into Employees values (1, 'Mark', 'Hastings', 'Male', 60000) Insert into Employees values (1, 'Mark', 'Hastings', 'Male', 60000) Insert into Employees values (1, 'Mark', 'Hastings', 'Male', 60000) Insert into Employees values (2, 'Mary', 'Lambeth', 'Female', 30000) Insert into Employees values (2, 'Mary', 'Lambeth', 'Female', 30000) Insert into Employees values (3, 'Ben', 'Hoskins', 'Male', 70000) Insert into Employees values (3, 'Ben', 'Hoskins', 'Male', 70000) Insert into Employees values (3, 'Ben', 'Hoskins', 'Male', 70000) The delete query should delete all duplicate rows except one. Here is the SQL query that does the job. PARTITION BY divides the query result set into partitions. WITH EmployeesCTE AS ( SELECT *, ROW_NUMBER()OVER(PARTITION BY ID ORDER BY ID) AS RowNumber FROM Employees ) DELETE FROM EmployeesCTE WHERE RowNumber ] 1
Views: 304803 kudvenkat
11 MySQL Tutorial for Beginners: The LIMIT Clause
 
06:36
The LIMIT clause limits the number of rows in the result set. In its simplest form, you code the LIMIT clause with a single numeric argument. If you code a single argument, it specifies the maximum row count, beginning with the first row. If you code two arguments in a LIMIT clause, the first one represents the starting point for the result set, also called the "offset". This "offset" starts to count from a value of zero. This means that zero refers to the first row in the result set, one to the second, two to the third and so on. SELECT, FROM, WHERE, ORDER BY, and LIMIT are the five main clauses of the SELECT statement but only the SELECT clause is required. When you code the SELECT clause, you should include only the columns you really need (for example, you shouldn't code an asterisk to retrieve all the columns unless you need all the columns). That's because the amount of data that's retrieved can affect system performance. That goes for retrieving rows too. The fewer rows you retrieve, the more efficient the statement will be. Because of that, you typically include a WHERE clause on your SELECT statements with a search condition that filters the rows in the base table so only the rows you need are retrieved EXERCISES for your SELF-TRAINING: http://golearnfast.com/Quizzes.php?_SelectSmallerGroup_288=0&Lessons_ID=288 SCRIPT FOR THE EXAMPLES: http://www.golearnfast.com/files/lessons_material/lesson_277_1440544998.sql SUBSCRIBE! https://www.youtube.com/channel/UCMEaGDoHU7c9tWyafZ9vC6Q?sub_confirmation=1 FACEBOOK https://www.facebook.com/golearnfast GOOGLE+ https://plus.google.com/u/0/b/101326338689489366802/
Views: 3243 golearnfast
PL/SQL tutorial 16: Table Auditing using DML Triggers in Oracle PL/SQL
 
09:55
Learn Table Auditing using DML Triggers in Oracle Database and Increase the level of security by keep an eye on user tempering your table data. ------------------------------------------------------------------------ ►►►LINKS◄◄◄ Blog : http://bit.ly/table-auditing Previous Tutorial ► DML Triggers with Examples https://youtu.be/-OR7zLzCh_I ► Select-Into Statement: https://youtu.be/F5eMJhwmCQs ►Sysdate Blog : http://bit.ly/sysdate-in-oracle-by-rebellionrider ------------------------------------------------------------------------- ►►►Let's Get Free Uber Cab◄◄◄ Use Referral Code UberRebellionRider and get $20 free for your first ride. ------------------------------------------------------------------------- ►Make sure you SUBSCRIBE and be the 1st one to see my videos! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ►►►Find me on Social Media◄◄◄ Follow What I am up to as it happens on https://twitter.com/rebellionrider https://www.facebook.com/imthebhardwaj http://instagram.com/rebellionrider https://plus.google.com/+Rebellionrider http://in.linkedin.com/in/mannbhardwaj/ http://rebellionrider.tumblr.com/ http://www.pinterest.com/rebellionrider/ You can also Email me at for E-mail address please check About section Please please LIKE and SHARE my videos it makes me happy. Thanks for liking, commenting, sharing and watching more of our videos This is Manish from RebellionRider.com ♥ I LOVE ALL MY VIEWERS AND SUBSCRIBERS
Views: 63538 Manish Sharma
Oracle, Find Failed Queries
 
03:54
It is very difficult to find failed queries executed by Entity Framework. Use following plsql trigger to find quries CREATE TABLE QUERY_LOG ( ID NUMBER, ORA_ERR VARCHAR2(10), EXE_DATE DATE, QRY_LOG NCLOB) / CREATE SEQUENCE QUERY_LOG_ID NOCACHE / CREATE OR REPLACE TRIGGER Failed_To_Extend_Temp AFTER SERVERERROR ON DATABASE DECLARE l_sql_text ora_name_list_t; l_n NUMBER; t1 NCLOB; BEGIN --IF (is_servererror(942) ) THEN l_n := ora_sql_txt(l_sql_text ); FOR I IN 1 .. l_n LOOP t1 := t1||l_sql_text(i); END LOOP; INSERT INTO QUERY_LOG (Id , Ora_Err , EXE_DATE , QRY_LOG) VALUES (QUERY_LOG_ID.Nextval, ora_server_error(1), Sysdate,t1 ); --END IF; END; /
Views: 45 Nivas Shelke
Order By & Top-N: Databases for Developers #12
 
08:14
To guarantee your queries return rows in a particular sequence, you must use an order by! This episode shows you how to do this and limit your results to the first N rows in an ordered set. Want to know more? Take the course: https://devgym.oracle.com/pls/apex/dg/class/databases-for-developers-next-level.html Order by clause documentation: https://docs.oracle.com/en/database/oracle/oracle-database/18/sqlrf/SELECT.html#GUID-CFA006CA-6FF1-4972-821E-6996142A51C6 Need help with SQL? Ask us over on AskTOM: https://asktom.oracle.com Twitter: https://twitter.com/ChrisRSaxon Daily SQL Twitter tips: https://twitter.com/SQLDaily All Things SQL blog: https://blogs.oracle.com/sql/ Videos produced by Philip Lima productions. ============================ The Magic of SQL with Chris Saxon Copyright © 2015 Oracle and/or its affiliates. Oracle is a registered trademark of Oracle and/or its affiliates. All rights reserved. Other names may be registered trademarks of their respective owners. Oracle disclaims any warranties or representations as to the accuracy or completeness of this recording, demonstration, and/or written materials (the “Materials”). The Materials are provided “as is” without any warranty of any kind, either express or implied, including without limitation warranties or merchantability, fitness for a particular purpose, and non-infringement.
Views: 858 The Magic of SQL
Destiny 2: The Whisper Heroic - Oracle Puzzle, Chest Locations & Exotic Catalyst
 
07:25
The Whisper contains another secret within, an homage to the Vault of Glass. Let's find out what it actually is. Teawrex: https://www.twitch.tv/Teawrex Teawrex First Solve: https://www.youtube.com/watch?v=esN_cM7w8x8&feature=youtu.be /u/nerdorado: https://www.reddit.com/r/DestinyTheGame/comments/90lwwx/spoiler_oracles_are_appearing_next_to_a_vex_gate/e2rvgew/?context=3 5% discount on ASTRO gear: http://www.astro.family/Datto (new international links coming soon) Need a good chair? SecretLab has you covered, use my referral link here: http://bit.ly/DattoChair (United States and SE Asia Only) If you enjoyed the video, a positive rating is always appreciated. Subscribe to the channel for more Destiny: http://bit.ly/SubToDatto Datto Does Destiny Social Media: Twitter: http://twitter.com/DattosDestiny Facebook: http://www.facebook.com/DattoDoesDestiny
Views: 131557 Datto
PL/SQL tutorial 15: DML Trigger With Before Insert, Update and Delete DML Examples
 
09:17
PL/SQL Tutorial 15 explaining DML Trigger with examples such as Before Insert, Update and Delete in Detail. ------------------------------------------------------------------------ ►►►LINKS◄◄◄ Blog : http://bit.ly/dml-triggers Previous Tutorial ► Trigger Intro : https://youtu.be/R3fvX_xf5P4 ► SELECT-INTO : https://youtu.be/F5eMJhwmCQs ►IF-THEN-ELSIF: https://youtu.be/aW9XgUHSr0I ------------------------------------------------------------------------- ►►►Let's Get Free Uber Cab◄◄◄ Use Referral Code UberRebellionRider and get $20 free for your first ride. ------------------------------------------------------------------------- ►Make sure you SUBSCRIBE and be the 1st one to see my videos! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ►►►Find me on Social Media◄◄◄ Follow What I am up to as it happens on https://twitter.com/rebellionrider https://www.facebook.com/imthebhardwaj http://instagram.com/rebellionrider https://plus.google.com/+Rebellionrider http://in.linkedin.com/in/mannbhardwaj/ http://rebellionrider.tumblr.com/ http://www.pinterest.com/rebellionrider/ You can also Email me at for E-mail address please check About section Please please LIKE and SHARE my videos it makes me happy. Thanks for liking, commenting, sharing and watching more of our videos This is Manish from RebellionRider.com ♥ I LOVE ALL MY VIEWERS AND SUBSCRIBERS
Views: 91754 Manish Sharma
How to Load First , Last and Middle Records From Flat Files into Target Table | Informatica
 
13:58
Important Interview Question. Working With Flat Files. Load First Record in First Target Table Last Record in second Target Table and Rest Records in Third Target Table Using Informatica Powercenter
Views: 5009 Adam Tech
SQL DISTINCT Within a SELECT - Retrieving Unique Values
 
03:41
Jamie King of Neumont University demonstrating use of DISTINCT within a SQL SELECT command.
Views: 20415 Jamie King
SQL Tutorial - 13: Inserting Data Into a Table From Another Table
 
07:00
In this tutorial we'll learn to use the INSERT Query to copy data from one table into another.
Views: 228679 The Bad Tutorials
How Does the Phyiscal Location of Rows Affect Indexes?: Finding All the Red Sweets Part 2
 
09:25
In part one of the red candy series, Chris compared the efficiency of using a index range scan and full table scan to access data. He found that a full table scan was more efficient when fetching more rows than there are table blocks. This analysis made a big assumption however. It worked on the presumption that there was no correlation between the order of candies in the document and which the bags they were in. In this episode tests this assumption. Chris looks at how the physical order of rows in a table can affect the efficiency of indexes on it. He discusses how Oracle tracks this via the clustering factor. ============================ The Magic of SQL with Chris Saxon Copyright © 2015 Oracle and/or its affiliates. Oracle is a registered trademark of Oracle and/or its affiliates. All rights reserved. Other names may be registered trademarks of their respective owners. Oracle disclaims any warranties or representations as to the accuracy or completeness of this recording, demonstration, and/or written materials (the “Materials”). The Materials are provided “as is” without any warranty of any kind, either express or implied, including without limitation warranties or merchantability, fitness for a particular purpose, and non-infringement.
Views: 2976 The Magic of SQL
PL/SQL tutorial 3: SELECT INTO statement in PL/SQL by Manish Sharma RebellionRider
 
05:22
How to initialize the variable by fetching values from the table of the database or by using SELECT INTO statement in PL/SQL by Manish Sharma RebellionRider ------------------------------------------------------------------------ ►►►LINKS◄◄◄ Blog : http://bit.ly/select-into-statement-pl-sql Previous Tutorial ► Variables: https://youtu.be/2MNmodawvnE ------------------------------------------------------------------------- ►►►Let's Get Free Uber Cab◄◄◄ Use Referral Code UberRebellionRider and get $20 free for your first ride. -------------------------------------------------------------------------- ►Make sure you SUBSCRIBE and be the 1st one to see my videos! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ►►►Find me on Social Media◄◄◄ Follow What I am up to as it happens on https://twitter.com/rebellionrider https://www.facebook.com/imthebhardwaj http://instagram.com/rebellionrider https://plus.google.com/+Rebellionrider http://in.linkedin.com/in/mannbhardwaj/ http://rebellionrider.tumblr.com/ http://www.pinterest.com/rebellionrider/ You can also Email me at for E-mail address please check About section Please please LIKE and SHARE my videos it makes me happy. Thanks for liking, commenting, sharing and watching more of our videos This is Manish from RebellionRider.com ♥ I LOVE ALL MY VIEWERS AND SUBSCRIBERS
Views: 109429 Manish Sharma
SQLPLUS: LineSize & PageSize
 
03:49
In this tutorial, you'll learn how to set linesize and pagesize . PL/SQL (Procedural Language/Structured Query Language) is Oracle Corporation's procedural extension for SQL and the Oracle relational database. PL/SQL is available in Oracle Database (since version 7), TimesTen in-memory database (since version 11.2.1), and IBM DB2 (since version 9.7).[1] Oracle Corporation usually extends PL/SQL functionality with each successive release of the Oracle Database. PL/SQL includes procedural language elements such as conditions and loops. It allows declaration of constants and variables, procedures and functions, types and variables of those types, and triggers. It can handle exceptions (runtime errors). Arrays are supported involving the use of PL/SQL collections. Implementations from version 8 of Oracle Database onwards have included features associated with object-orientation. One can create PL/SQL units such as procedures, functions, packages, types, and triggers, which are stored in the database for reuse by applications that use any of the Oracle Database programmatic interfaces. PL/SQL works analogously to the embedded procedural languages associated with other relational databases. For example, Sybase ASE and Microsoft SQL Server have Transact-SQL, PostgreSQL has PL/pgSQL (which emulates PL/SQL to an extent), and IBM DB2 includes SQL Procedural Language,[2] which conforms to the ISO SQL’s SQL/PSM standard. The designers of PL/SQL modeled its syntax on that of Ada. Both Ada and PL/SQL have Pascal as a common ancestor, and so PL/SQL also resembles Pascal in several aspects. However, the structure of a PL/SQL package does not resemble the basic Object Pascal program structure as implemented by a Borland Delphi or Free Pascal unit. Programmers can define public and private global data-types, constants and static variables in a PL/SQL package.[3] PL/SQL also allows for the definition of classes and instantiating these as objects in PL/SQL code. This resembles usage in object-oriented programming languages like Object Pascal, C++ and Java. PL/SQL refers to a class as an "Abstract Data Type" (ADT) or "User Defined Type" (UDT), and defines it as an Oracle SQL data-type as opposed to a PL/SQL user-defined type, allowing its use in both the Oracle SQL Engine and the Oracle PL/SQL engine. The constructor and methods of an Abstract Data Type are written in PL/SQL. The resulting Abstract Data Type can operate as an object class in PL/SQL. Such objects can also persist as column values in Oracle database tables. PL/SQL is fundamentally distinct from Transact-SQL, despite superficial similarities. Porting code from one to the other usually involves non-trivial work, not only due to the differences in the feature sets of the two languages,[4] but also due to the very significant differences in the way Oracle and SQL Server deal with concurrency and locking. There are software tools available that claim to facilitate porting including Oracle Translation Scratch Editor,[5] CEITON MSSQL/Oracle Compiler [6] and SwisSQL.[7] The StepSqlite product is a PL/SQL compiler for the popular small database SQLite. PL/SQL Program Unit A PL/SQL program unit is one of the following: PL/SQL anonymous block, procedure, function, package specification, package body, trigger, type specification, type body, library. Program units are the PL/SQL source code that is compiled, developed and ultimately executed on the database. The basic unit of a PL/SQL source program is the block, which groups together related declarations and statements. A PL/SQL block is defined by the keywords DECLARE, BEGIN, EXCEPTION, and END. These keywords divide the block into a declarative part, an executable part, and an exception-handling part. The declaration section is optional and may be used to define and initialize constants and variables. If a variable is not initialized then it defaults to NULL value. The optional exception-handling part is used to handle run time errors. Only the executable part is required. A block can have a label. Package Packages are groups of conceptually linked functions, procedures, variables, PL/SQL table and record TYPE statements, constants, cursors etc. The use of packages promotes re-use of code. Packages are composed of the package specification and an optional package body. The specification is the interface to the application; it declares the types, variables, constants, exceptions, cursors, and subprograms available. The body fully defines cursors and subprograms, and so implements the specification. Two advantages of packages are: Modular approach, encapsulation/hiding of business logic, security, performance improvement, re-usability. They support object-oriented programming features like function overloading and encapsulation. Using package variables one can declare session level (scoped) variables, since variables declared in the package specification have a session scope.
Views: 14604 radhikaravikumar
ORACLE SQL 40: View
 
10:16
http://studyandshare.wordpress.com/ http://www.facebook.com/groups/studyandsharevn/
Views: 565 studyandsharevn
ADF Training | How to Create Oracle ADF Trees and Set Record Currency
 
09:52
ADF Training - This Oracle ADF Training from https://www.fireboxtraining.com/oracle demonstrates how to create an ADF tree, as well as create a read-only form that is synchronized with what is clicked within the tree. To accomplish this, we create iterator bindings for each level of the tree, then point the target data source for each level to the iterator binding.
Views: 20854 Firebox Training
Oracle SQL Developer Tutorial For Beginners  81   Lower and Upper Case in SQL Statements
 
02:58
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: 608 Sam Dhanasekaran
Single Row Conversion Functions Querying a table in Oracle SQL
 
13:26
This video shows how to Create Single Row Conversion Functions in Oracle SQL. Try to share these videos for poor students and subscribe this channel for more upcoming other technical videos.
Views: 21 Technology mart
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: 106504 kudvenkat
ADF table containing LOV has bug
 
00:44
The adf table contains two lists. the first one is set auto submit=true and the second is PPR on the first one. the bug is when click on the second row in the table , the values entered in the first record is cleared
Views: 594 Tarek Bakr
Learn How to Add Data Rows in a Table using SQL
 
06:05
Learn about using INSERT INTO SQL statements. The INSERT INTO statement is used to insert or add new data rows in a table. There are two methods to INSERT the data rows in a table. In First method, column names are not specified and the values are given in a bracket separated by a comma. In this method the values for each column must be specified and the values should be provided sequentially by columns. "INSERT INTO tablename VALUES (value1, value2, value3);" In second method, the column names are given in first bracket and the values are given in another bracket. In this method we can INSERT values to only selected column names. This is the convenient way to store the data rows, as we can see which value is going to be stored in which column. "INSERT INTO tablename (column1, column2, column3) VALUES (value1, value2, value3);" While using INSERT INTO statement the string values must be wrapped in single quotes, while wrapping numeric values in quotes is optional or not required. I'll select the "school" database, "USE school;" I'll run a simple SQL statement to display all the data rows in teachers table using SQL statement, "SELECT * FROM teachers;" Add new data row using SQL statement, "INSERT INTO teachers VALUES (NULL, 'Peter Brown', 1234509876);" In this INSERT INTO SQL statement, column names are not specified. Since, the teacherid column is auto increment that is it will automatically add the next number for the data row, we provided the 'NULL' value means no value for that column. Press enter to execute the SQL statement. If you see the message, "Query OK, 1 row affected", it means the data row was successfully inserted to the table. Check out the whole playlist of SQL Tutorials or Individual video from the following links, SQL Tutorial for Beginners. Introduction to SQL Basics https://www.youtube.com/playlist?list=PLhwzZMYRiUErXXX0Ryud2R7RjesCEdTqi 1.Learn What is SQL? Introduction to SQL https://www.youtube.com/watch?v=ox6zUOKascs 2.Learn How to Install MySQL Database Server on Windows Operating System https://www.youtube.com/watch?v=vtnoWaydkEU 3.Learn What is Database? How to Create and Show Databases using SQL https://www.youtube.com/watch?v=-yJgWq6K_U8 4.Learn How to Select and Use Existing Database using SQL https://www.youtube.com/watch?v=QMViQ38SPxc 5.Learn How to Delete or Remove Database using SQL https://www.youtube.com/watch?v=wjEOZKvfH4c 6.Learn What is Database Table? How to Create a Database Table using SQL? https://www.youtube.com/watch?v=8SvtNIfzC4o 7.Learn How to Modify or Update Database Table using SQL https://www.youtube.com/watch?v=1he5oZzG33o 8.Learn How to Delete or Remove Database Table using SQL https://www.youtube.com/watch?v=JD87WvBist0 9.Learn How to Add Data Rows in a Table using SQL https://www.youtube.com/watch?v=UB-bQxAQbWg 10.Learn How to Use INSERT INTO SELECT Statement in SQL https://www.youtube.com/watch?v=U4ApxHF4R1g 11.Learn How to Update Data Rows using Update Statement in SQL https://www.youtube.com/watch?v=lE1BmNbFJdo 12.Learn How to Delete Data Rows using Delete Statement in SQL https://www.youtube.com/watch?v=1ViqX1tFgYM Subscribe to my channel: https://www.youtube.com/channel/UCvrq9OowoORTV5Gs_jpADhw
Views: 5621 PhpSword
How to Insert Into Table In SQL
 
02:46
Follow this step by step easy tutorial to learn how to insert data into the tables in SQL Server Database via queries. Don't forget to check out our site http://howtech.tv/ for more free how-to videos! http://youtube.com/ithowtovids - our feed http://www.facebook.com/howtechtv - join us on facebook https://plus.google.com/103440382717658277879 - our group in Google+ The data inside the database is held by the tables. The data can be inserted in these tables either by the queries or even with a straightaway Graphical method. In this tutorial we will see both the methods. Step 1 -- Locating the Appropriate Database First of all, we need to locate and expand the database where that particular table is present. After that, expand the table's directory. Then we will insert the data in the Inventory table. If we move into the column section, it can be seen that there are four fields which have to be added, namely the ID, the Product Name, the Quantity and the Price. Step 2 -- Writing query for inserting record Now to insert in table, SQL query would be: Insert into Inventory (id,Product,quantity,price) values (1,'abc',12,255.32); Make sure that each value is separated by a comma. Once done, simply press F5 to execute the query. At the bottom, in the messages section, a message will appear about table rows that have been affected. Step 3 -- Another Method of Insertion We can also insert data in a table by simply giving the values straight away. For that just write the following query: Insert into Inventory values (1,'ab2',30,300.36); Make sure that the values in query in SQL inserted into table are in the same order as the order of columns in the table. Now let's execute this query and in the messages section, you can see the rows that have been affected. To insert in table, SQL queries are required to be written with much care as error can arise if we just miss to insert ellipsis even. Step 4 -- Viewing Table Data Now let's check the table to see if the data has been inserted correctly. For that let us fetch all records from the inventory table and for that, write: Select * from inventory When we execute the query, you can see all the records in the results section below, and they are exactly the same as we mentioned in the query in earlier steps. Step 5 --Alternate Method of inserting data To insert in table, SQL provides another way through which we don't have to write SQL insert into table queries. For that, just right click on the inventory table and choose the 'Edit top 200 rows' option. Step 6 -- Inserting data in Fields Over here, we can start inserting the data in the table straight away, without using the queries. All we have to do is type the records in the fields and press enter to save the changes made in each field. And that is how data is inserted in tables in SQL using insert keyword.
Oracle Database 12c R2 Installation and Connection PDB
 
05:24
MD.Rahim Uddin Shohag Founder - Oracle Bangla https://www.oraclebangla.com/ fb :: https://www.facebook.com/oracle.shohag email: [email protected] skype : shohagcid2013 Oracle Database 12c R2 Installation
Views: 236 Oracle Bangla
Meet Curtis "Wall Street" Carroll: A Finance Prophet Currently Serving Life
 
48:48
"Financial literacy is one of the biggest issues that plague our society. 90% of crimes committed are money related, yet only 1% of the programs that cater to people in prison and out deal with finance. I am here to be a solution for that, at least from my perspective." Known as the "Oracle of San Quentin", Curtis Caroll was convicted of murder/robbery 20 years ago and was sentenced to 54 years to life behind bars at an age when most of us were busy going on awkward dates as we attempted to navigate high school. Curtis grew up in what can be considered ground zero of the crack epidemic; Oakland, California. Carroll's desire to change his circumstance forced him to educate himself and at the same time awakened a conscious he long ago buried under multiple rap sheets as a youth.  Carroll now sees his life as an opportunity to teach financial literacy the masses, attributing crime, or the motive behind it, directly to the disconnect between financial security and most people. He compares finance to a soap opera in that he attempts to find a narrative to which people are emotionally connected to, and determines his move based on that. Salute to Curtis Carroll and Sway for an important interview. Watch above. Source: Sway Calloway - "The Last Mile Radio"
Views: 1270237 djvlad
Oracle SQL Programming Lesson 4 in Jinghpaw Language - Set Operators
 
28:24
Compiling SQL queries using Union, Union All, Intercept, Minus, Where Exists, Where Not Exists Operators against the oracle database tables. Please watch in HD format for better video quality. --append/stack data (union,union all) --UNION removes duplicate rows. --UNION ALL does not remove duplicate rows. --Each SELECT statement within the UNION must have the same number of fields in the result sets with similar data types. select 'foo' as test_column from dual union select 'foo' as test_column from dual; select distinct test_column from (select 'foo' as test_column from dual union all select 'foo' as test_column from dual); Select region_name from regions Union Select region_name from regions; select first_name,last_name,job_id,manager_id,salary,deptment_id from employees where department_id in (20,60); --Union /union all select job_id,manager_id,'DEPT 20' as dept from employees where department_id=20 union all select job_id,manager_id,'DEPT 60' as dept from employees where department_id=60; --intersect returns only the rows common to the results of two queries select 'foo' as test_column from dual intersect select 'foo' as test_column from dual; Select region_name from regions; Select region_name from regions intersect Select region_name from regions; -- minus=except returns the rows from the first query that do not exist in the second query select 'foo' as test_column from dual minus select 'foo' as test_column from dual; Select region_name from regions minus Select region_name from regions; select first_name,last_name,job_id,manager_id,salary,'DEPT 20' as dept from employees where department_id=20 minus select first_name,last_name,job_id,manager_id,salary,'DEPT 60' as dept from employees where department_id=60; --complex compound queries Select department_id, count(*) from employees Where department_id in (20,30,40) Group by department_id; Select department_id, count(*) from employees Where department_id in (20) Group by department_id Union all Select department_id, count(*) from employees Where department_id in (30) Group by department_id Union all Select department_id, count(*) from employees Where department_id in (40) Group by department_id; Select department_id, count(*) from employees Where department_id in (20) Group by department_id intersect Select department_id, count(*) from employees Where department_id in (30) Group by department_id minus Select department_id, count(*) from employees Where department_id in (40) Group by department_id; Select department_id, count(*) from employees Where department_id in (20) Group by department_id Union Select department_id, count(*) from employees Where department_id in (30) Group by department_id Union all Select department_id, count(*) from employees Where department_id in (40) Group by department_id; --where exists, in / not exists, not in select e.last_name, e.department_id, e.salary from employees e where exists (select * from departments d where e.department_id=d.department_id); select e.last_name, e.department_id, e.salary from employees e where e.department_id in (select department_id from departments); select e.last_name, e.department_id, e.salary from employees e where not exists (select * from departments d where e.department_id=d.department_id); select e.last_name, e.department_id, e.salary from employees e where e.department_id not in (select department_id from departments);
Views: 42 Hkau Doi
Oracle Big Data SQL: 5 - Apply Row-Level Security
 
02:58
This video shows you how to apply row-level security to your big data sources using Oracle Big Data SQL. ================================= To improve the video quality, click the gear icon and set the Quality to 1080p/720p HD. For more information, see http://www.oracle.com/goto/oll and http://docs.oracle.com Copyright © 2018 Oracle and/or its affiliates. Oracle is a registered trademark of Oracle and/or its affiliates. All rights reserved. Other names may be registered trademarks of their respective owners. Oracle disclaims any warranties or representations as to the accuracy or completeness of this recording, demonstration, and/or written materials (the “Materials”). The Materials are provided “as is” without any warranty of any kind, either express or implied, including without limitation warranties or merchantability, fitness for a particular purpose, and non-infringement.
Correlated subquery in sql   Part 60
 
07:59
In this video we will discuss about Corelated Subqueries In Part 59, we discussed about 2 examples that uses subqueries. Please watch Part 59, before proceeding with this video. We will be using the same tables and queries from Part 59. In the example below, sub query is executed first and only once. The sub query resutls are then used by the outer query. In a non-corelated subquery, the subquery can be executed independently of the outer query. Select [Id], [Name], [Description] from tblProducts where Id not in (Select Distinct ProductId from tblProductSales) If the subquery depends on the outer query for its values, then that sub query is called as a correlated subquery. In the where clause of the subquery below, "ProductId" column get it's value from tblProducts table that is present in the outer query. So, here the subquery is dependent on the outer query for it's value, hence this subquery is a correlated subquery. Correlated subqueries get executed, once for every row that is selected by the outer query. corelated subquery, cannot be executed independently of the outer query. Select [Name], (Select SUM(QuantitySold) from tblProductSales where ProductId = tblProducts.Id) as TotalQuantity from tblProducts order by Name Text version of the video http://csharp-video-tutorials.blogspot.com/2013/01/correlated-subquery-in-sql-part-60.html Slides http://csharp-video-tutorials.blogspot.com/2013/09/part-60-co-related-subqueries.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: 119584 kudvenkat
Pivot & Unpivot: Databases for Developers #14
 
07:24
Sometimes you want to convert rows to columns. Or convert columns back into rows. Luckily SQL has two clauses to help you do this: PIVOT & UNPIVOT Using these you can easily transform your rows to columns and back again. Want more? Take the course: https://devgym.oracle.com/pls/apex/dg/class/databases-for-developers-next-level.html Read the blog post: https://blogs.oracle.com/sql/how-to-convert-rows-to-columns-and-back-again-with-sql-aka-pivot-and-unpivot Read the docs: PIVOT: https://docs.oracle.com/en/database/oracle/oracle-database/18/dwhsg/sql-analysis-reporting-data-warehouses.html#GUID-05BB22CD-0F53-4C90-AE84-CE3F88DBD591 UNPIVOT: https://docs.oracle.com/en/database/oracle/oracle-database/18/dwhsg/sql-analysis-reporting-data-warehouses.html#GUID-B0AC9284-DDC1-4EF7-84CD-A27DF7F8DD57 Need help with SQL? Ask us over on AskTOM: https://asktom.oracle.com Twitter: https://twitter.com/ChrisRSaxon Daily SQL Twitter tips: https://twitter.com/SQLDaily All Things SQL blog: https://blogs.oracle.com/sql/ ============================ The Magic of SQL with Chris Saxon Copyright © 2015 Oracle and/or its affiliates. Oracle is a registered trademark of Oracle and/or its affiliates. All rights reserved. Other names may be registered trademarks of their respective owners. Oracle disclaims any warranties or representations as to the accuracy or completeness of this recording, demonstration, and/or written materials (the “Materials”). The Materials are provided “as is” without any warranty of any kind, either express or implied, including without limitation warranties or merchantability, fitness for a particular purpose, and non-infringement.
Views: 841 The Magic of SQL
Can YOU do these 8 IMPOSSIBLE Stephen Curry's shots?
 
05:52
⭐OUR STORE ►https://bit.ly/2zSLt4z We at JimmyBallers20 decided to create a video which showcases 8 impossible Stephen Curry's shots which are rarely to be seen in a normal NBA game. The degree of difficulty of these 8 Stephen Curry's shots is probably 7/8 out of 10. Many of those NBA's All-Time marksmen such as Ray Allen, Rick Barry, Dirk Nowitzki, Reggie Miller, Kiki Vandeweghe, Chuck "The Rifleman" Person, Dana Barros and Steve Nash have said and claimed that Stephen Curry is the greatest shooter of all-time in NBA history. ● Stephen Curry left his initial basketball endorsement Nike, and signed with Under Armour(UA) in 2013 instead. Under Armour(UA) had signed Curry to a contract extension through the year 2024, which is worth close to $4 million per year. Stephen Curry has been one of the hottest names on the endorsement trail as well, locking up partnerships with Under Armour(UA), 2K Sports, Express, State Farm Insurance, Unilever's Degree, JP Morgan Chase, Muscle Milk, JBL Headphones, Nissan's luxury cars brand INFINITI, Vivo smartphones, Sony Pictures, Brita Water, and ZAMST. He was also featured in an Apple commercial to promote the iPhone 6s. Curry also got a major boost after soccer star Lionel Messi posted a picture to Instagram holding up an autographed Curry jersey to his 30 million followers. Curry has played a vital part in Under Armour’s recent success after appearing in two of the brands notable campaigns. He appeared in the “Book of Will” ad alongside Oscar winner Jamie Foxx, who played a Mars Blackmon-esque character as Curry’s hypeman, telling fans how the reigning MVP reached his current perch. He was also featured in the brand’s “Rule Yourself” campaign that preaches the importance of training. Under Armour(UA) first hooked up with a pro basketball player when it signed Brandon Jennings back in 2008. By partnering with the sharpshooting Mr. Curry, Under Armour(UA) is hitching itself to one of the fastest-rising NBA stars. Fast-rising Under Armour(UA), which was founded back in 1996, has a goal of eventually toppling Nike to become the world's top retail sports brand. In 2014, he also launched Three-For-Three Challenge, in which he will donate 3 bed mosquito nets to people in Africa to prevent malaria, for every 3-pointer he makes during the season. Curry made 286 3-pointers in the 2014-2015 NBA season, so he donated 858 nets. In 2017, The limited-edition “Nothing But Nets” sneaker is part of Curry’s fight against malaria. For every pair of the new $120 Under Armour(UA) Curry 4 sneakers sold, the Warriors guard will donate an insecticide-treated bed net aimed at protecting kids, refugees and families from malaria. Later in 2017, Curry made an appearance at a convocation Wednesday at Liberty University, where his brother Seth Curry attended college, to help support the “Kick’n It” foundation’s drive to donate 20,000 pairs of shoes to children in the Republic of Congo, in helping to put shoes on the feet of disadvantaged children around the world. Back on December 18, 2017, there was a claim from both Sean “Diddy” Combs and Stephen Curry in saying they were interested to buy the NFL American football team Carolina Panthers, which is also home to Stephen Curry's family in Charlotte, North Carolina. Back in 2016, the National Basketball Players Association (NBPA) of which Stephen Curry and Kevin Durant are executives contributed over $15 million a year to fund health insurance plans for most retired NBA players.The plan gives all retired players who played at least three years health insurance until they are eligible for Medicare. Players with at least 7 years in the league get lowered costs, while players who played 10 seasons have their families covered by the insurance plans. ● Stephen Curry's Complete UA Merchandise Collection : https://www.underarmour.com/en-us/stephen-curry ● Holding numerous records related to 3-point shooting, Curry has played 8 seasons in the NBA, where he is a 3-time All-Star, 2-time Most Valuable Player, and a 2-time NBA champion. He is also the Warriors franchise leader in Points in the Playoffs. Golden State Warriors had faced the Cleveland Cavaliers for 3 consecutive years starting from 2015-2017 NBA Finals. Stephen Curry won his 1st NBA Championship in 2015 back at the Quicken Loans Arena, followed by the Cavaliers taking back the title in 2016 at the Oracle Arena, and last year's 2017 NBA Champion was claimed by the Warriors at the Oracle Arena. ● FACEBOOK : https://www.facebook.com/jimmyballers20
Views: 2170454 JimmyBallers20
Part 1   How to retrieve data from different databases in asp net
 
11:43
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/05/part-1-how-to-retrieve-data-from.html Several of our youtube channel subscribers faced this question in a dot net written test. We have 2 databases 1. USADB - Contains Employees table that stores only US Employees 2. UKDB - Contains Employees table that stores only UK Employees Implement an asp.net web page that retrieves data from the Employees table both from USADB and UKDB databases. Add a webform to the project. Drag and drop a GridView control on the webform. Copy and paste the following code in the code-behind file. using System; using System.Configuration; using System.Data; using System.Data.SqlClient; namespace Demo { public partial class WebForm1 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { string USADBCS = ConfigurationManager.ConnectionStrings["USADB"].ConnectionString; string UKDBCS = ConfigurationManager.ConnectionStrings["UKDB"].ConnectionString; SqlConnection con = new SqlConnection(USADBCS); SqlDataAdapter da = new SqlDataAdapter("select * from Employees", con); DataSet ds1 = new DataSet(); da.Fill(ds1); con = new SqlConnection(UKDBCS); da.SelectCommand.Connection = con; DataSet ds2 = new DataSet(); da.Fill(ds2); ds1.Merge(ds2); Gridview1.DataSource = ds1; Gridview1.DataBind(); } } }
Views: 83964 kudvenkat
Part 2   SQL query to get organization hierarchy
 
10:14
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/05/part-2-sql-query-to-get-organization.html To get the best out of this video, the following concepts need to be understood first. These are already discussed in SQL Server Tutorial. 1. Self-Join - http://www.youtube.com/watch?v=qnYSN_7qwgg 2. CTE - http://www.youtube.com/watch?v=ZXB5b-7HJHk 3. Recursive CTE - http://www.youtube.com/watch?v=GGoV0wTMCg0 Here is the problem definition: 1. Employees table contains the following columns a) EmployeeId, b) EmployeeName c) ManagerId 2. If an EmployeeId is passed, the query should list down the entire organization hierarchy i.e who is the manager of the EmployeeId passed and who is managers manager and so on till full hierarchy is listed. For example, Scenario 1: If we pass David's EmployeeId to the query, then it should display the organization hierarchy starting from David. Scenario 2: If we pass Lara's EmployeeId to the query, then it should display the organization hierarchy starting from Lara. We will be Employees table for this demo. SQL to create and populate Employees table with test data Create table Employees ( EmployeeID int primary key identity, EmployeeName nvarchar(50), ManagerID int foreign key references Employees(EmployeeID) ) GO Insert into Employees values ('John', NULL) Insert into Employees values ('Mark', NULL) Insert into Employees values ('Steve', NULL) Insert into Employees values ('Tom', NULL) Insert into Employees values ('Lara', NULL) Insert into Employees values ('Simon', NULL) Insert into Employees values ('David', NULL) Insert into Employees values ('Ben', NULL) Insert into Employees values ('Stacy', NULL) Insert into Employees values ('Sam', NULL) GO Update Employees Set ManagerID = 8 Where EmployeeName IN ('Mark', 'Steve', 'Lara') Update Employees Set ManagerID = 2 Where EmployeeName IN ('Stacy', 'Simon') Update Employees Set ManagerID = 3 Where EmployeeName IN ('Tom') Update Employees Set ManagerID = 5 Where EmployeeName IN ('John', 'Sam') Update Employees Set ManagerID = 4 Where EmployeeName IN ('David') GO Here is the SQL that does the job Declare @ID int ; Set @ID = 7; WITH EmployeeCTE AS ( Select EmployeeId, EmployeeName, ManagerID From Employees Where EmployeeId = @ID UNION ALL Select Employees.EmployeeId , Employees.EmployeeName, Employees.ManagerID From Employees JOIN EmployeeCTE ON Employees.EmployeeId = EmployeeCTE.ManagerID ) Select E1.EmployeeName, ISNULL(E2.EmployeeName, 'No Boss') as ManagerName From EmployeeCTE E1 LEFT Join EmployeeCTE E2 ON E1.ManagerID = E2.EmployeeId
Views: 261430 kudvenkat
Web Web - Oracle (Interview)
 
06:54
Artist: Web Web Titel: Oracle Releasedate: 01.09.17 Format: LP / CD / digital buy here: https://compostrecords.lnk.to/WebWebOracle The first album of Web Web is very uncut, raw, live and direct. „Oracle“ is the first output of a German Supergroup. The initial idea was to record a spiritual- jazz type of album, with all its imperfection as far as intonation, sound, influences of tunes... just like from their big jazz-heroes in the 70ies (e.g. Strata East, Black Jazz). Web Web’s idea was to record a jazz jam session while to found and proclaim being a fictive band, a formation, which did not exist, while telling people, it would be a secret jam session recording of the Seventies. The prompt problem they were facing: Oh, we never would be able to play concerts, doing interviews, or placing photos on sleeves or post likeness images online. So they decided to reveal their real identities: Web Web are: Roberto Di Gioia (Piano, Synth, Percussion), Tony Lakatos (Tenor- and Sopranosaxophone), Christian von Kaphengst (Upright Bass) and Peter Gall (Drums). The album „Oracle“ was recorded on one day, only first takes were used!
Views: 305 Compost Records
Informatica Scenario 13/22
 
02:25
First salary as null and first row salary to second row in informatica Informatica scenario list ---------------------------------- 1)How to Separate duplicate values and distinct values from source by using aggregator transformation https://www.youtube.com/watch?v=78WGShnF8F8 2) How To Load Top 5 Records based on SAL without Using RANK transformation in Informatica https://www.youtube.com/watch?v=hzHdYCd-eUY 3) How to load every 4th record into target table in Informatica https://www.youtube.com/watch?v=g5gDZeRnlAk 4)How to load data based on even and odd record numbers in Informatica https://www.youtube.com/watch?v=pqTsGWemd8o 5)Salary incrementing based on department by using router with expression http://youtu.be/1OK1Lgz_s40 6) How to generate sequence number without using sequence generator transformation in informatica http://youtu.be/iI4wOrpwqyE 7)Top 5 highly paid employees without using rank,sequence generator transformation in informatica http://youtu.be/msts1HllSGk 8)removing $ symbol from currency in informatica http://youtu.be/vGqvwZARRzk 9)Creating email from first name,last name,organization name in informatica http://youtu.be/35GRsbv0zmw 10)Creating firstname,lastname,organigation name from email http://youtu.be/NC7om6p21QU 11)How to convert dollar to rupee in informatica http://youtu.be/O2StqShIQnY 12)How to find cumulative salary in informatica http://youtu.be/HHUSzx6O6eI 13) How to load first record into one table second record into one table remaining will into another table http://youtu.be/YFiAhRABycI 14) How to replace one character by another character by using replcachr function http://youtu.be/90QQTvslZCc 15) How to load current salary for next employee http://youtu.be/SxhlAJAsmE4 16) First salary as null and first row salary to second row in informatica http://youtu.be/SxhlAJAsmE4 17) Top 10 salaries without rank http://youtu.be/QoFfYUwLJms 18) How to load numbers into one column alphabets into one column from single column http://youtu.be/IWikZVdBbyg 19) How to generate sequence number for two target tables by using only one sequence generator http://youtu.be/CQZXSsYsPjk 20) Mapping to load all records except last 5 records http://youtu.be/ONP8t8_SgvM
Views: 3022 yugandar chandragiri
C# Tutorial 10:  How to Link Combobox with Database values
 
08:50
------------------Online Courses to learn---------------------------- Java - https://bit.ly/2H6wqXk C++ - https://bit.ly/2q8VWl1 AngularJS - https://bit.ly/2qebsLu Python - https://bit.ly/2Eq0VSt C- https://bit.ly/2HfZ6L8 Android - https://bit.ly/2qaRSAS Linux - https://bit.ly/2IwOuqz AWS Certified Solutions Architect - https://bit.ly/2JrGoAF Modern React with Redux - https://bit.ly/2H6wDtA MySQL - https://bit.ly/2qcF63Z ----------------------Follow--------------------------------------------- My Website - http://www.codebind.com My Blog - https://goo.gl/Nd2pFn My Facebook Page - https://goo.gl/eLp2cQ Google+ - https://goo.gl/lvC5FX Twitter - https://twitter.com/ProgrammingKnow Pinterest - https://goo.gl/kCInUp Text Case Converter - https://goo.gl/pVpcwL -------------------------Stuff I use to make videos ------------------- Stuff I use to make videos Windows notebook – http://amzn.to/2zcXPyF Apple MacBook Pro – http://amzn.to/2BTJBZ7 Ubuntu notebook - https://amzn.to/2GE4giY Desktop - http://amzn.to/2zct252 Microphone – http://amzn.to/2zcYbW1 notebook mouse – http://amzn.to/2BVs4Q3 ------------------Facebook Links ---------------------------------------- http://fb.me/ProgrammingKnowledgeLearning/ http://fb.me/AndroidTutorialsForBeginners http://fb.me/Programmingknowledge http://fb.me/CppProgrammingLanguage http://fb.me/JavaTutorialsAndCode http://fb.me/SQLiteTutorial http://fb.me/UbuntuLinuxTutorials http://fb.me/EasyOnlineConverter ---------------------------------------------------------------------------- how to bind combobox to textbox in C# ComboBox and TextBox‎ C# How to show combo box selected value in a text box‎ C# selecting an item in combobox and display corresponding Populate combobox from database C# How to get data in combobox from database? Populating a Combobox from a Dictionary How to fill different ComboBoxes in a DataGridView C# code add database column to datagridview combobox C# Populate combobox from database How to get data in combobox from database? Populating a Combobox from a Dictionary How to fill different ComboBoxes in a DataGridView code add database column to datagridview combobox Enter values into combobox from database‎ Enter values into combobox from database‎ C#
Views: 209933 ProgrammingKnowledge
Java & MySQL - Check if a value already exists
 
12:03
Easy tutorial on how to check if a value already exists in the database.
Views: 24622 Mozoran
The Magic of SQL: The Magical Changing Row
 
05:25
To change the value of a database column normally you need to execute an update statement. In this video Chris uses SQL magic to modify the value of a row without issuing any insert, updates or deletes! Watch the video to find out how ============================ The Magic of SQL with Chris Saxon Copyright © 2015 Oracle and/or its affiliates. Oracle is a registered trademark of Oracle and/or its affiliates. All rights reserved. Other names may be registered trademarks of their respective owners. Oracle disclaims any warranties or representations as to the accuracy or completeness of this recording, demonstration, and/or written materials (the “Materials”). The Materials are provided “as is” without any warranty of any kind, either express or implied, including without limitation warranties or merchantability, fitness for a particular purpose, and non-infringement.
Views: 2782 The Magic of SQL