Home
Search results “Oracle set value from select”
HOW TO RETURN MULTIPLE VALUES FROM A PROCEDURE IN ORACLE PL/SQL? (USING OUT PARAMETERS)
 
04:46
This video tutorial explains how an oracle procedure can return multiple values with a proper example. The video tutorial shows how this problem can be tacked using simple and easy to understand out parameters!!!
Views: 11354 Kishan Mashru
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: 113231 Manish Sharma
08 of  13 - Oracle APEX 5 - List of values (LOV) for a field in a form; display a hidden column
 
13:22
A new series using APEX 18.1 is now available. https://youtu.be/65LExgaQMHI This is one in a series of videos about creating an application using Oracle APEX 5. In this video we create two lists of values (LOVs) in the Shared Components section of our application. We use each LOV in place of a field in a form. We see how APEX will help us write the SQL for a LOV. The difference between a "display value"and a "return value"is discussed. Finally, we display the primary key field in a form, which APEX hides by default. See the primary key field in a form can be helpful during application development. SQL scripts for this series are available to download at: http://web.nmsu.edu/~jkreie/oracle/DatabaseTopics.html or by request at http://db.kreie.net
Views: 34594 Jennifer Kreie
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: 15430 radhikaravikumar
Formatting your Oracle Query Results Directly to CSV
 
03:02
How to get Oracle SQL Developer to automatically format your query results to CSV, HTML, JSON, Insert statements, and more.
Views: 39042 Jeff Smith
Php : How To Get Select Option Value From MySQL Database Using Php [ with source code ]
 
03:41
How To To Populate Html Select Drop Down List With Values From MySQL Database Using Php Source Code: http://1bestcsharp.blogspot.com/2015/10/php-populate-html-select-option-values-from-mysql-database-code.html PHP Programming Tutorials ➜ http://bit.ly/2Lh7zPM PHP And MySQL Tutorials ➜ http://bit.ly/2kdXWot PHP Course For Beginners ➜ http://bit.ly/2GxRodb Web Development Course ➜ http://bit.ly/2ITRQrj visit our blog https://1bestcsharp.blogspot.com/ facebook: https://www.facebook.com/1BestCsharp twitter: https://www.twitter.com/1BestCsharp_ subscribe: http://goo.gl/nRjPKk Share This Video: https://www.youtube.com/watch?v=V8sIWh_sdvs In this Php Tutorial we will Learn Two Method On How To Populate Html Select Box With Data From MySQL Database Table In Php . I Use In This Tutorial: - NetBeans IDE . - XAMPP . - PhpMyAdmin . Others Tutorials: How To Populate Html Table From MySQL Database Using Php https://www.youtube.com/watch?v=6goqMwURH9Q How To Use Mysqli Num Rows In Php https://www.youtube.com/watch?v=12L6Sckk8cc How To Use Pdo Row Count In Php https://www.youtube.com/watch?v=F3tqnbDTP3k Insert Update Delete Search Data In MySQL Database Using Php Part1 https://www.youtube.com/watch?v=f85jvD_Y8Ck Search And Filter Data In Html Table Using Php And MySQL Database https://www.youtube.com/watch?v=2XuxFi85GTw Web Development - The Complete Web Developer Course 2.0 - Build 25 Websites and Real Mobile Apps https://www.youtube.com/watch?v=F2FXUF2jnkI
Views: 151765 1BestCsharp blog
Select statement in sql server - Part 10
 
21:54
In this video we will learn 1. Select specific or all columns 2. Distinct rows 3. Filtering with where clause. 4. Wild Cards in SQL Server 5. Joining multiple conditions using AND and OR operators 6. Sorting rows using order by 7. Selecting top n or top n percentage of rows Text version of the video http://csharp-video-tutorials.blogspot.com/2012/08/select-statement-part-10.html Slides http://csharp-video-tutorials.blogspot.com/2013/08/part-10-all-about-select.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: 324479 kudvenkat
8-Oracle Database - SQL - select distinct computed fields Expressions Operators Precedence etc
 
28:12
8-Oracle Database - SQL - select distinct computed fields Expressions Operators Precedence Nested Order by Alias Null Value with Arithmetic null concatenation operator
Views: 1431 Adel Sabour
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: 833745 kudvenkat
C# Tutorial 11:Database values in textbox if select Combobox
 
12:15
------------------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: 191532 ProgrammingKnowledge
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: 213340 ProgrammingKnowledge
ADF Training | Select One Choice with Managed Bean
 
08:36
ADF Training https://www.fireboxtraining.com/oracle-adf-training | Learn how to add a Select One Choice component to a JSF page. See how to create radio buttons in Oracle ADF. The choices are populated by a managed bean, and the selected choice is stored in the same managed bean. You could, of course, store it in a business component if you wanted!
Views: 32881 Firebox Training
7- Oracle Database insert - update - delete - intro select - -char functions.avi
 
41:09
7-Oracle Database - SQL - insert - update - delete - intro select - working with dates and default value - to_date and to_char functions.avi
Views: 2711 Adel Sabour
106/125 Oracle PLSQL: PLSQL Compiler / dbms_warning
 
11:07
select name,value from v$parameter where name='plsql_warnings' --1-- --Modify the current session's warning settings /* dbms_warning.add_warning_setting_cat( warning_category IN VARCHAR2, warning_value IN VARCHAR2, scope IN VARCHAR2) */ --now we can modify the setting begin dbms_warning.add_warning_setting_cat('SEVERE', 'ENABLE', 'SESSION'); end; --we can check the new value by select name,value from v$parameter where name='plsql_warnings' --or SELECT dbms_warning.get_warning_setting_string FROM dual; -------------------- --2 /* dbms_warning.add_warning_setting_num( warning_number IN PLS_INTEGER, warning_value IN VARCHAR2, scope IN VARCHAR2); */ EXEC dbms_warning.add_warning_setting_num(6002, 'DISABLE', 'SESSION'); SELECT dbms_warning.get_warning_setting_num(6002) FROM dual; EXEC dbms_warning.add_warning_setting_num(6002, 'ENABLE', 'SESSION'); SELECT dbms_warning.get_warning_setting_num(6002) FROM dual; ----------------------------- --3 /* dbms_warning.set_warning_setting_string( value IN VARCHAR2, scope IN VARCHAR2); */ exec dbms_warning.set_warning_setting_string('ENABLE:ALL', 'SESSION'); SELECT dbms_warning.get_warning_setting_string FROM dual; -------------------- --4 /* dbms_warning.get_category(warning_number IN PLS_INTEGER) RETURN VARCHAR2 */ -- severe SELECT dbms_warning.get_category(5000) FROM dual; -- informational SELECT dbms_warning.get_category(6002) FROM dual; -- performance SELECT dbms_warning.get_category(7203) FROM dual; ------------------------------------------ --5 /* dbms_warning.get_warning_setting_cat(warning_category IN VARCHAR2) RETURN VARCHAR2 */ SELECT dbms_warning.get_warning_setting_cat('SEVERE') FROM dual; SELECT dbms_warning.get_warning_setting_cat('INFORMATIONAL') FROM dual; SELECT dbms_warning.get_warning_setting_cat('PERFORMANCE') FROM dual; ------------ --6 --dbms_warning.get_warning_setting_num(warning_number IN PLS_INTEGER) --RETURN VARCHAR2 SELECT dbms_warning.get_warning_setting_num(5000) FROM dual; SELECT dbms_warning.get_warning_setting_num(6002) FROM dual; SELECT dbms_warning.get_warning_setting_num(7203) FROM dual;
Views: 284 khaled alkhudari
ASP.NET MVC DropdownList Use Bind with Database table  and Normal Select list
 
11:40
In this ASP.NET Tutorial, I will teach you, How to add string of item in Dropdownlist in MVC. Also, How to add item from database table in ASP.NET MVC.
Views: 60534 ASP.NET MVC
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: 235244 The Bad Tutorials
Oracle SQL Tutorial 19 - ON DELETE (SET NULL and CASCADE)
 
05:59
Welcome everyone! Something you need to consider when you are creating foreign keys is what happens if you delete the parent? As a reminder, the parent is the row that has the value you are referencing in the row that has a foreign key. Why is this something important to consider? It's important because foreign keys need to protect us from two primary things, unacceptable INSERT statements, and unacceptable DELETE statements. Let's see what happens when we try to insert incorrect data into the table with the foreign key: INSERT INTO projects VALUES (1, 'Update website homepage', 'CalebCurry') The response tells us plainly that there is no such user in the users table. So this works correctly. Deleting data on the other hand works a bit differently because the database does not know what you want to do with the child row when you delete the parent from the parent table. By default, we will get an error message that prevents the parent from being deleted, but there are some other options. How do we configure this? This is where the ON DELETE statement comes in. We add the keywords ON DELETE right after the foreign key and then we can give it the option of CASCADE or SET NULL. CASCADE means that if we delete the parent, we are also going to delete the child. In our situation what that means is that if somebody creates a project in our project table and then that persons account gets deleted, all of the projects he owns will also be deleted. CASCADE: CREATE TABLE projects( project_id NUMBER, Project_name VARCHAR2(50 CHAR) UNIQUE, creator VARCHAR2(50 CHAR) NOT NULL, CONSTRAINT projects_pk PRIMARY KEY (project_id), CONSTRAINT projects_users_fk FOREIGN KEY (creator) REFERENCES users (username) ON DELETE CASCADE ) SET NULL will take the value in the child table and get rid of it. What you are left with is NULL. This means that we have an orphaned child. The first thought you might have is that it is a bad thing to have an orphaned child, but in databases that is not always so. In our application if we had it set to SET NULL, when a user account gets deleted the projects would remain in existence they would just lack a creator. This might be a good thing if you are concerned about the long term survival of a project, this might be the route you want to go. It ultimately depends on the application purpose. If you don't like CASCADE or SET NULL, you can leave the entire ON DELETE statement and just have Oracle throw an error when a parent is deleted. As for us, we are going to use ON DELETE CASCADE. We need to use this with extreme caution. If you are not careful, someday you will run a delete a row and that will cascade through you database deleting a bunch of stuff you didn't want to delete. Stuff happens, so make sure you back up your database every once in eternity. Now, in the last video we started with a database design that had three tables. We've only created two in this video. In the next video we are going to create the next one, which is a little special. Then we'll finish things up by adding some indexes. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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: 13223 Caleb Curry
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: 32144 kudvenkat
SQL Aggregation queries using Group By, Sum, Count and Having
 
10:01
From SQL Queries Joes 2 Pros (Vol2) ch4.1. Learn up to write aggregated queries.
Views: 162521 Joes2Pros SQL Trainings
JAVA - How To Search Values From MySQL Database And Set It Into JTextfield In Java NetBeans | + Code
 
07:14
JAVA - How To Search And Set Values From MySQL Database Into Textfield In Java NetBeans Source Code:http://1bestcsharp.blogspot.com/2015/02/java-how-to-search-and-set-values-from.html ------------------ Check out my Java Projects! -------------------- ▶ Inventory Management System - http://bit.ly/Java_Inventory ▶ Students Information System - http://bit.ly/JavaStudent_System ▶ Contacts Management System - http://bit.ly/Java_Contacts ▶ All My Programming Projects Here - http://bit.ly/2HrU8hK ▶ My Source Code Store Here - http://bit.ly/2OsC0TU -------------------------- JAVA COURSE ----------------------------- ▶ master Java core development step-by-step - http://bit.ly/2HXSuAn -------------------------------------------------------------------- java - How to display data from database into JTextfield visit our blog https://1bestcsharp.blogspot.com/ facebook: https://www.facebook.com/1BestCsharp twitter: https://www.twitter.com/1BestCsharp_ subscribe: http://goo.gl/nRjPKk *************************************************************************** *************************************************************************** C# And Java Programming Projects Source Code: http://1bestcsharp.blogspot.com/p/programming-projects.html *************************************************************************** *************************************************************************** in this java tutorial we will see how to get data into jtextfield in netbeans from mysql database we are gonna use: java programming language MySQL Database NetBeans Ide now to retrieve data from mysql database into jtextfield in netbeans we have firs to connect java to MySQL and to do this watch this video: https://www.youtube.com/watch?v=zM7oe2_S-jY and follow this java video thanks for watching this java tutorial where we Fetch data from database into Jtextfield in Netbeans for more java tutorials subscribe Java - How To Create Login Form With MySQL Database [with source code] Part 1 : https://www.youtube.com/watch?v=7sNYhlBz9xo Part 2 : https://www.youtube.com/watch?v=meGhTnlS9k4
Views: 82371 1BestCsharp blog
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: 168919 Manish Sharma
How to Parse XML in Oracle
 
13:54
This Video Shows 1. How to Read and parse XML in Oracle using EXTRACTVALUE and XMLTABLE. 2. When to use extractvalue and XMLTable. 3. Brief Introduction to XMLPATH
Views: 9325 yrrhelp
C# Tutorial 23: How to use DateTimePicker and save date in Database
 
14:04
Visual C# .NET Controls The Date Time Picker - Date Picker C# - How do I set my datetimepicker date? visual C# - DateTimePicker date to string C# How to compare the time of a DateTimePicker control and the How do I get value from Date time picker and Month calendar C# How to pass values to a dateTimePicker control‎ C# How to change DateTimePicker control to 24h time format ? Getting started with the DateTimePicker Visual Studio 2012 RC - Age calculation from Converting date time picker value into t_time type date time picker‎ - 7 posts DateTimePicker - Visual C# assign SYSTEMTIME to DateTimePicker Control‎ C#
Views: 298003 ProgrammingKnowledge
Java - JTable show Selected Row Data In Another JFrame [ with source code ]
 
06:32
Display JTable Selected Row Records In JTextFields In Another JFrame Source Code: http://1bestcsharp.blogspot.com/2016/01/java-display-jtable-row-data-jtextfields.html ------------------ Check out my Java Projects! -------------------- ▶ Inventory Management System - http://bit.ly/Java_Inventory ▶ Students Information System - http://bit.ly/JavaStudent_System ▶ Contacts Management System - http://bit.ly/Java_Contacts ▶ All My Programming Projects Here - http://bit.ly/2HrU8hK ▶ My Source Code Store Here - http://bit.ly/2OsC0TU -------------------------- JAVA COURSE ----------------------------- ▶ master Java core development step-by-step - http://bit.ly/2HXSuAn -------------------------------------------------------------------- C# And Java Programming Projects With Source Code: http://1bestcsharp.blogspot.com/p/programming-projects.html visit our blog https://1bestcsharp.blogspot.com/ facebook: https://www.facebook.com/1BestCsharp twitter: https://www.twitter.com/1BestCsharp_ subscribe: http://goo.gl/nRjPKk In this java Tutorial we will see How To Display The Selected JTable Row Data In Another JFrame JTextFields When JTable Mouse Clicked Using NetBeans . we are gonna use: java programming language NetBeans IDE Swing : JFrame, JTable, JTextFields, JLabel JAVA Tutorials: Insert Update Delete Data In MySQL Database Using Java https://www.youtube.com/watch?v=uKEgKETRCzE Add And Update A Row To JTable From JTextField + Delete Row In Java https://www.youtube.com/watch?v=22MBsRYuM4Q JAVA MySQL Database Rocords Navigation Buttons https://www.youtube.com/watch?v=WkPWPuGHTTI Search Values From MySQL Database And Set It Into JTextfield In Java https://www.youtube.com/watch?v=uuhEb0k3vVE bind jtable from mysql database in netbeans https://www.youtube.com/watch?v=G4JeKZ6nDUI Bind a JCombobox With Database Values In Java NetBeans https://www.youtube.com/watch?v=23-90p2xceg insert Image in MySQL Database using Java https://www.youtube.com/watch?v=UusZGBkV6HI Drag And Drop Image In Netbeans https://www.youtube.com/watch?v=bD3X_-QeLKc Java Graphics Tutorial Draw Chess Board https://www.youtube.com/watch?v=no4m-TIX-rc Java Login Form With MySQL Database Part 1 : https://www.youtube.com/watch?v=7sNYhlBz9xo Part 2 : https://www.youtube.com/watch?v=meGhTnlS9k4 Image Slideshow In netbeans https://www.youtube.com/watch?v=pN1uoJD_uSE Retrieve And Display Image From Mysql In Java https://www.youtube.com/watch?v=7QEgJnnEmnE Export JTable Data To Text File In NetBeans https://www.youtube.com/watch?v=tg7M9YvYDqo How To Bind JTable From MySQL Using ArrayList In NetBeans https://www.youtube.com/watch?v=2d4i6BXQPFA How To Browse Image To Jlabel Using JFilechooser In NetBeans https://www.youtube.com/watch?v=VHd29F_Tk04 How To display Image From Database To JTable In Java https://www.youtube.com/watch?v=-ekqLViEvHg How To Get JTable Column Sum, Avarage, Max, Min Value In Java https://www.youtube.com/watch?v=ZCfk6S2BksA How To Set A Timer In NetBeans https://www.youtube.com/watch?v=Vu31hcNuSXo Drag And Drop Text In Netbeans https://www.youtube.com/watch?v=CQpiplV3fXg Populate JTable Depending On a JCombobox Value Using NetBeans https://www.youtube.com/watch?v=9NO0AHxvgio How To Connect Java To MySQL Database And Display Data Using NetBeans https://www.youtube.com/watch?v=zM7oe2_S-jY Display Image From JTable To JLabel In Java https://www.youtube.com/watch?v=nHCCubgd74s How To Filter Data From MySQL And Show It In JTable https://www.youtube.com/watch?v=TfuC_bxwr3w https://www.youtube.com/watch?v=i9_Kx_79RWo Populate a HashMap From MySQL DataBase https://www.youtube.com/watch?v=WAIcC3pl94o Import A Text From Tex File To A JTextPane https://www.youtube.com/watch?v=QWKkE1wbiAQ How To Use Stored Procedure In Java And MySQL https://www.youtube.com/watch?v=pux1p52ZaQw Populate JCombobox From MySQL With Key And Value https://www.youtube.com/watch?v=gheAMX-MGN8 Populate JCombobox Depending On Another JCombobox https://www.youtube.com/watch?v=O_aSNfGSD20 How To Sort JTable Data https://www.youtube.com/watch?v=trWVSIq-6Mo Add And clear All JTexfields Using Table https://www.youtube.com/watch?v=-zTvjp84sk4 jtable click https://www.youtube.com/watch?v=91Rp2MA0i94 jtable click and show image https://www.youtube.com/watch?v=Dg6aHH-35SU show jtable row data in another jframe https://www.youtube.com/watch?v=9Ot-cWh0Rhw images navigation from a folder https://www.youtube.com/watch?v=OTTIsOSzSts JTable display selected rows to another jtabel https://www.youtube.com/watch?v=R_ybbxZLS3c Populate A Jtable With A List Of Files Names From Resource Folder https://www.youtube.com/watch?v=ODZAhWZitlk image and data navigation from mysql https://www.youtube.com/watch?v=2NIHOMvlTRY https://www.youtube.com/watch?v=JEcO4p_1_7c insert update delete and display data in jtable https://www.youtube.com/watch?v=QKsfHqu4Pps https://www.youtube.com/watch?v=WIMojkwMTa0
Views: 50177 1BestCsharp blog
Insert Update Delete View and search data from database in C#.net
 
13:47
Need Help Or Need code? Feel Free To Contact Us Here http://www.noblecomputer.co.in/support.php using this tutorial you can easily understand that how you can do Insert Update Delete and View data from database in C#.net | insert update delete in c#.net | Insert Update Delete View and search data from database in C#.net,Legen Ansicht aktualisieren und Suchdaten aus der Datenbank in C # .net Löschen,Insérez Update Supprimer Afficher et recherche les données de base de données en C # .net
Views: 342425 Amit Andipara
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: 179694 kudvenkat
SQL Server Programming Part 6 - WHILE Loops
 
14:48
If you'd like to help fund Wise Owl's conversion of tea and biscuits into quality training videos you can click this link https://www.wiseowl.co.uk/donate?t=1 to make a donation. Thanks for watching! By Andrew Gould https://www.wiseowl.co.uk - In SQL Server there is only one type of loop: a WHILE loop. This video teaches you how to use them, from the basic syntax of the WHILE statement, through how to use a SELECT statement within a loop. We'll also cover how to use the BREAK command to exit from a loop, what to do when you inevitably find yourself in an endless loop and, finally, a quick introduction to using loops with cursors. You can download the script to create the Movies database used in this video at the following link: https://www.wiseowl.co.uk/files/execise-question-files/qf-898.zip You can see the range of resources and courses we offer in SQL Server here: https://www.wiseowl.co.uk/sql/ Visit www.wiseowl.co.uk for more online training resources in Microsoft Excel, Microsoft Access, Microsoft PowerPoint, Microsoft Word, Microsoft Project, Microsoft Publisher, Microsoft Visio, SQL Server, Reporting Services, Analysis Services, Visual Studio, ASP.NET, VB.NET, C# and more!
Views: 69146 WiseOwlTutorials
Learn Oracle | How to Update a Table using SQL
 
02:10
Pebbles present, Learn Oracle 10g with Step By Step Video Tutorials. Learn Oracle 10g Tutorial series contains the following videos : Learn Oracle - History of Oracle Learn Oracle - What is Oracle - Why do we need Oracle Learn Oracle - What is a Database Learn Oracle - What is Grid Computing Learn Oracle - What is Normalization Learn Oracle - What is ORDBMS Learn Oracle - What is RDBMS Learn Oracle - Alias Names, Concatenation, Distinct Keyword Learn Oracle - Controlling and Managing User Access (Data Control Language) Learn Oracle - Introduction to SQL Learn Oracle - Oracle 10g New Data Types Learn Oracle - How to Alter a Table using SQL Learn Oracle - How to Create a Package in PL SQL Learn Oracle - How to Create a Report in SQL Plus Learn Oracle - How to Create a Table using SQL - Not Null, Unique Key, Primary Key Learn Oracle - How to Create a Table using SQL Learn Oracle - How to Create a Trigger in PL SQL Learn Oracle - How to Delete Data from a Table using SQL Learn Oracle - How to Drop and Truncate a Table using SQL Learn Oracle - How to Insert Data in a Table using SQL Learn Oracle - How to open ISQL Plus for the first time Learn Oracle - How to Open SQL Plus for the First Time Learn Oracle - How to Update a Table using SQL Learn Oracle - How to use Aggregate Functions in SQL Learn Oracle - How to use Functions in PL SQL Learn Oracle - How to use Group By, Having Clause in SQL Learn Oracle - How to Use Joins, Cross Join, Cartesian Product in SQL Learn Oracle - How to use Outer Joins (Left, Right, Full) in SQL Learn Oracle - How to use the Character Functions, Date Functions in SQL Learn Oracle - How to use the Merge Statement in SQL Learn Oracle - How to use the ORDER BY Clause with the Select Statement Learn Oracle - How to use the SELECT Statement Learn Oracle - How to use the Transactional Control Statements in SQL Learn Oracle - How to use PL SQL Learn Oracle - Data Types in PL SQL Learn Oracle - Exception Handling in PL SQL Learn Oracle - PL SQL Conditional Logics Learn Oracle - PL SQL Cursor Types - Explicit Cursor, Implicit Cursor Learn Oracle - PL SQL Loops Learn Oracle - Procedure Creation in PL SQL Learn Oracle - Select Statement with WHERE Cause Learn Oracle - SQL Operators and their Precedence Learn Oracle - Using Case Function, Decode Function in SQL Learn Oracle - Using Logical Operators in the WHERE Clause of the Select Statement Learn Oracle - Using Rollup Function, Cube Function Learn Oracle - Using Set Operators in SQL Learn Oracle - What are the Different SQL Data Types Learn Oracle - What are the different types of Databases Visit Pebbles Official Website - http://www.pebbles.in Subscribe to our Channel – https://www.youtube.com/channel/UCNNjWVsQqaMYccY044vtHJw?sub_confirmation=1 Engage with us on Facebook at https://www.facebook.com/PebblesChennai Please Like, Share, Comment & Subscribe
Views: 169 Pebbles Tutorials
PL/SQL tutorial 6: Bind Variable in PL/SQL By Manish Sharma RebellionRider.com
 
07:56
Watch and learn what are bind variables in PL/SQL how to declare or create them using Variable command, Initialize them using Execute (exec)command and different ways of displaying current values of a bind variable for example using AutoPrint parameter. ------------------------------------------------------------------------ ►►►LINKS◄◄◄ Blog : http://bit.ly/bind-variable Previous Tutorial ► Constants in PL/SQL https://youtu.be/r1ypg7WH4GY ►User Variables :https://youtu.be/2MNmodawvnE ------------------------------------------------------------------------- ►►►Let's Get Free Uber Cab◄◄◄ Use Referral Code UberRebellionRider and get $20 free for your first ride. ------------------------------------------------------------------------- ►►►Help Me In Getting A Job◄◄◄ ►Help Me In Getting A Good Job By Connecting With Me on My LinkedIn and Endorsing My Skills. All My Contact Info is Down Below. You Can Also Refer Me To Your Company Thanks ------------------------------------------------------------------------- ►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: 85044 Manish Sharma
Over clause in SQL Server
 
09:13
over partition by in sql server 2008 sql server over clause partition partition by clause in sql server 2008 over partition by clause in sql In this video we will discuss the power and use of Over clause in SQL Server. The OVER clause combined with PARTITION BY is used to break up data into partitions. Syntax : function (...) OVER (PARTITION BY col1, Col2, ...) The specified function operates for each partition. For example : COUNT(Gender) OVER (PARTITION BY Gender) will partition the data by GENDER i.e there will 2 partitions (Male and Female) and then the COUNT() function is applied over each partition. Any of the following functions can be used. Please note this is not the complete list. COUNT(), AVG(), SUM(), MIN(), MAX(), ROW_NUMBER(), RANK(), DENSE_RANK() etc. Example : SQl Script to create Employees table Create Table Employees ( Id int primary key, Name nvarchar(50), Gender nvarchar(10), Salary int ) Go Insert Into Employees Values (1, 'Mark', 'Male', 5000) Insert Into Employees Values (2, 'John', 'Male', 4500) Insert Into Employees Values (3, 'Pam', 'Female', 5500) Insert Into Employees Values (4, 'Sara', 'Female', 4000) Insert Into Employees Values (5, 'Todd', 'Male', 3500) Insert Into Employees Values (6, 'Mary', 'Female', 5000) Insert Into Employees Values (7, 'Ben', 'Male', 6500) Insert Into Employees Values (8, 'Jodi', 'Female', 7000) Insert Into Employees Values (9, 'Tom', 'Male', 5500) Insert Into Employees Values (10, 'Ron', 'Male', 5000) Go Write a query to retrieve total count of employees by Gender. Also in the result we want Average, Minimum and Maximum salary by Gender. This can be very easily achieved using a simple GROUP BY query as show below. SELECT Gender, COUNT(*) AS GenderTotal, AVG(Salary) AS AvgSal, MIN(Salary) AS MinSal, MAX(Salary) AS MaxSal FROM Employees GROUP BY Gender What if we want non-aggregated values (like employee Name and Salary) in result set along with aggregated values You cannot include non-aggregated columns in the GROUP BY query. SELECT Name, Salary, Gender, COUNT(*) AS GenderTotal, AVG(Salary) AS AvgSal, MIN(Salary) AS MinSal, MAX(Salary) AS MaxSal FROM Employees GROUP BY Gender The above query will result in the following error : Column 'Employees.Name' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause One way to achieve this is by including the aggregations in a subquery and then JOINING it with the main query as shown in the example below. Look at the amount of T-SQL code we have to write. SELECT Name, Salary, Employees.Gender, Genders.GenderTotals, Genders.AvgSal, Genders.MinSal, Genders.MaxSal FROM Employees INNER JOIN (SELECT Gender, COUNT(*) AS GenderTotals, AVG(Salary) AS AvgSal, MIN(Salary) AS MinSal, MAX(Salary) AS MaxSal FROM Employees GROUP BY Gender) AS Genders ON Genders.Gender = Employees.Gender Better way of doing this is by using the OVER clause combined with PARTITION BY SELECT Name, Salary, Gender, COUNT(Gender) OVER(PARTITION BY Gender) AS GenderTotals, AVG(Salary) OVER(PARTITION BY Gender) AS AvgSal, MIN(Salary) OVER(PARTITION BY Gender) AS MinSal, MAX(Salary) OVER(PARTITION BY Gender) AS MaxSal FROM Employees Text version of the video http://csharp-video-tutorials.blogspot.com/2015/09/over-clause-in-sql-server.html Slides http://csharp-video-tutorials.blogspot.com/2015/09/over-clause-in-sql-server_29.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: 79970 kudvenkat
PART 5-Oracle 10g Form Builder using  LIST ITEM
 
07:59
This video content is available in OERCOMMONS.ORG https://www.oercommons.org/authoring/21895-database-application-using-oracle-form-builder/view list-element, list item value, difference between list item and radio button
Views: 33060 Dr. Girija Narasimhan
Java Eclipse GUI Tutorial 9 # Populate JTable data from database in java Eclipse and Sqlite
 
17:30
Donate to ProgrammingKnowledge -- (https://www.paypal.com/de/cgi-bin/webscr?cmd=_flow&SESSION=AW9N5aRI7sCqjlIusdmku9rz2uvuULZ6K580uDxTK7ElJs2LHDiLq-TQv0a&dispatch=5885d80a13c0db1f8e263663d3faee8def8934b92a630e40b7fef61ab7e9fe63) You have to download the rs2xml.jar file in order to populate the Jtable. I am providing you the link to download rs2xml.jar file below http://sourceforge.net/projects/finalangelsanddemons/ Jave Eclipse and Sqlite (mysql) populate or use jtable java netbeans and mysql populate jtable java - How to fill data in a JTable with database How to retrieve data from a jTable in Java Jtable Database Populate data from database into JTable in Netbeans populate JTable from database java - What is the best way to populate a JTable using MYSQL How To Fill Jtable Using Sql Select Statement? java - how to display all the data from the database to jtable? NetBeans Forums - jtable and report from mysql database How to set data from database to jtable? JTable how to fill with data How to Make a JTable in NetBeans how to fill data in jtable from database on button click in java Retrieving data in a JTable How to get data in MySQL table into Java JTable? How can I make a JTable cell do different things on single-click Values to be displayed in JTextfield when Clicked on JTable Cells. Click on JTable Model Updates JTextfield how can i get value from JTable and set it to textfield. Show data from JTable in Jtextfield Sharing document between JTable Cells and JTextFields get jtextfield from jtable iit Learn java netbeans java tutorial netbeans
Views: 177724 ProgrammingKnowledge
VB.NET And SQL - Datagridview Search Data Using Visual  Basic .Net [ with source code ]
 
10:33
Search Data In SQL And Display On DataGridView In VB Net Source Code: http://1bestcsharp.blogspot.com/2016/09/vb.net-sql-search-data-and-display-datagridview.html ------------------ Check out my VB.Net Projects! -------------------- ▶ Inventory Management System - http://bit.ly/Vbnet_Inventory_System ▶ Students Information System - http://bit.ly/VbnetStudent_System ▶ Contacts Management System - http://bit.ly/Vbnet_Contacts ▶ All My Programming Projects Here - http://bit.ly/2HrU8hK ▶ My Source Code Store Here - http://bit.ly/2OsC0TU -------------------------- VB.NET COURSE ----------------------------- ▶ Learning Visual Basic .NET - http://bit.ly/2wnNiVt -------------------------------------------------------------------- Programming Projects: http://1bestcsharp.blogspot.com/p/programming-projects.html visit our blog https://1bestcsharp.blogspot.com/ facebook: https://www.facebook.com/1BestCsharp twitter: https://www.twitter.com/1BestCsharp_ subscribe: http://goo.gl/nRjPKk C# And Java Programming Books http://1bestcsharp.blogspot.com/2015/04/c-and-java-programming-books.html In This VB.NET Tutorial We Will See How To Search Records From SqlServer Database On Button Click Event And Text Changed Event With Microsoft SQL DataBase Using Visual Basic .NET Programming Language. subscribe for more tutorials VB.NET And SQL Server Database Tutorials: Connect SqlServer Database With Vb.net https://www.youtube.com/watch?v=098akejVsG8 Select And Display Data From SQL Server Database Using Vbnet https://www.youtube.com/watch?v=z3NpONNl2Qk Insert Data Into SQLServer Database Using VB NET https://www.youtube.com/watch?v=MWP8geR76kI Update Data In Database Using Vbnet https://www.youtube.com/watch?v=VC2XRfxmNBM Delete Data From SQL Server Database Using Visual Basic .NET https://www.youtube.com/watch?v=NSRDbI4Jra0 Search Values From SQL Server Database And Set It Into TextBox In Visual Basic .NET https://www.youtube.com/watch?v=CarCQoqDCGM Populate ComboBox From SQL Values In VbNet https://www.youtube.com/watch?v=3LIOcTLPh80 SQL Server Records Navigation Using Visual Basic.Net https://www.youtube.com/watch?v=DnAYjApOEtI Datagridview Search Data Using VB.Net https://www.youtube.com/watch?v=zn4zgBeUwnA Insert Update Delete https://www.youtube.com/watch?v=u9DqI0oAzmk Login Form With SQL Database https://www.youtube.com/watch?v=a9wloibYVNI VB NET Using SQL Stored Procedures https://www.youtube.com/watch?v=O_olT5FnqOg Insert Image Into SQL DataBase Part 1: https://www.youtube.com/watch?v=3ZjsimNLdLY Part 2: https://www.youtube.com/watch?v=u1vpYKkPquI Retrieve Image From SQL DataBase In Visual Basic.net https://www.youtube.com/watch?v=GUNZ1hfCsHc Retrieve Images From SQL DataBase Into DataGridView In VB.net https://www.youtube.com/watch?v=F72XSYlOwxk
Views: 98914 1BestCsharp blog
SQL 011 SELECT NULL or What if the column value is unknown?
 
03:05
Explains NULL or What if the column value is unknown? From http://computerbasedtraininginc.com SQL Course. Learn by doing SQL commands for ANSI Standard SQL, Access, DB2, MySQL, Oracle, PostgreSQL, and SQL Server.
Views: 1572 cbtinc
How to create a crystal report based on a custom SQL statement
 
13:54
creating an advanced crystal report with calling a stored procedure in SQL server database [source code] http://www.mediafire.com/?37lyendsy7gw7gw
Views: 121930 Mhmoud Alkahlout
How To Insert Data Into Database and Show in DataGridView In C# VS 2015
 
20:21
This video shows how to Insert Update Delete data in Database from DataGridView in C#. The C# Basics beginner course is a free C# Tutorial Series that helps beginning programmers learn the basics of the C# Programming Language. This is the best way to Learn C# for beginners How to use Winforms Modern UI Metro Framework in C# C# Windows Form Application - Metro UI Library Metro or Modern UI Style Windows Application in C# C# Modern UI Metro Framework Windows 8 UI UI Design: WinForms Modern UI Metro Framework in C# How To Use Metro Framework Metro Style Manager C# How to use Winforms Modern UI C# - Insert ,Update ,Delete C# Insert Update Delete and View data from database in .net Insert update delete select in c# Insert,Update,Delete into DataGridView C# C# - Insert, Update, Delete In SQL Database Insert,Delete and Update data in database from DataGridView in c# Insert, Update, Delete, View (C# and SQL 2014 - Data Entity Framework) C# MS SQL Server - Insert, Select, Update, Delete C# Entity Framework 6 | Database First | Basic CRUD Entity Framework - Select, Insert, Update, Delete in C# Insert, Update and Delete using Entity Framework Inserting, Updating and Deleting Entities in Entity Framework insert update delete in datagridview using c# insert update delete datagridview c# insert update delete datagridview c#.net insert update delete with datagridview control in c# windows application insert update delete with datagridview control in c# insert update and delete table from datagridview in c#.net insert update delete inside datagridview in c# windows application how to insert update delete in datagridview in c# c# code for insert update delete in datagridview how to insert update and delete in datagridview using c# how to perform insert update delete in datagridview in c# C# - How to get user entered data from datagridview to windows Insert, Update and Delete from DataGridView to sql server,MySql Sql database Microsoft Visual C#/CLI Windows Controls The Data Grid View C# Tutorial - Binding a DataGridView to a Database c# - How to save datagridview records on database table how can i use data grid view to update data in database using C Delete in Datagridview and SQL database‎ Save From datagridview to access database‎ Update database from DataGridView‎ transferring multiple row data from listview to datagridview c sharp‎ retrieving seleted value from combobox in datagridview‎ Updating database table from DataGridView‎ update DataSet from DataGridView, and update database from How to Create a Simple Windows Forms C# Database Application Searches related to c# datagridview database c# datagridview without database c# datagrid view How to insert data from DatagridView to MS Access Database This tutorials teach how to insert data's in sqlserver using windows forms. This tutorial helps to insert , delete & update data's through grid-view to database in step by step with very basic and easy steps. Email: [email protected] c# - How to View Data from MS Access in Data Grid View Adding Access database to C# dataGridView datagrid view to ms access in c# How To access Data DataGridView Very Easy Access C# C# Tutorial - Binding a DataGridView to a Database C# DataGridView Database Operations C# DataGridView Binding Binding MS Access DB to a datagrid view in C# windows C# Access DataGridView, C# - How to get user entered data from datagridview to windows Insert, Update and Delete from DataGridView to sql server,MySql Sql database Microsoft Visual C#/CLI Windows Controls The Data Grid View C# Tutorial - Binding a DataGridView to a Database c# - How to save datagridview records on database table how can i use data grid view to update data in database using C Delete in Datagridview and SQL database‎ Save From datagridview to access database‎ Update database from DataGridView‎ transferring multiple row data from listview to datagridview c sharp‎ retrieving seleted value from combobox in datagridview‎ Updating database table from DataGridView‎ update DataSet from DataGridView, and update database from How to Create a Simple Windows Forms C# Database Application Searches related to c# datagridview database c# datagridview without database c# datagrid view How to insert data from DatagridView to MS Access Database This video shows How to Insert, Update, Delete DataGridView In C#. This is the best way to learn c# for beginners C# - Insert ,Update ,Delete Insert Update Delete View and search data from database in C#.net Insert update delete select in c# Fully C# Save, Insert, Update, Delete, View, Search, Clear in Visual studio C# Insert Update Delete and View data from database in .net C# SQL Database(SELECT,INSERT,DELETE,UPDATE) Insert,Update,Delete into DataGridView C# Insert, Update, Delete, Search, View (C# and SQL Server- Data Entity Framework) Insert,Delete and Update data in database from datagridview in c sharp
Views: 134804 Masood Institute Online
Dynamic SQL in Stored Procedure
 
09:32
In this video we will discuss, using dynamic sql in a stored procedure and it's implications from sql injection perspective. We will discuss performance implications of using dynamic sql in a stored procedure in a later video. Text version of the video http://csharp-video-tutorials.blogspot.com/2017/04/dynamic-sql-in-stored-procedure.html Slides http://csharp-video-tutorials.blogspot.com/2017/04/dynamic-sql-in-stored-procedure_11.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 SQL Server Tutorial Videos https://www.youtube.com/playlist?list=PL08903FB7ACA1C2FB 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 Consider the following stored procedure "spSearchEmployees". We implemented this procedure in Part 139 of SQL Server tutorial. This stored procedure does not have any dynamic sql in it. It is all static sql and is immune to sql injection. Create Procedure spSearchEmployees @FirstName nvarchar(100) = NULL, @LastName nvarchar(100) = NULL, @Gender nvarchar(50) = NULL, @Salary int = NULL As Begin Select * from Employees where (FirstName = @FirstName OR @FirstName IS NULL) AND (LastName = @LastName OR @LastName IS NULL) AND (Gender = @Gender OR @Gender IS NULL) AND (Salary = @Salary OR @Salary IS NULL) End Go Whether you are creating your dynamic sql queries in a client application like ASP.NET web application or in a stored procedure, you should never ever concatenate user input values. Instead you should be using parameters. Notice in the following example, we are creating dynamic sql queries by concatenating parameter values, instead of using parameterized queries. This stored procedure is prone to SQL injection. Let's prove this by creating a "Search Page" that calls this procedure. Create Procedure spSearchEmployeesBadDynamicSQL @FirstName nvarchar(100) = NULL, @LastName nvarchar(100) = NULL, @Gender nvarchar(50) = NULL, @Salary int = NULL As Begin Declare @sql nvarchar(max) Set @sql = 'Select * from Employees where 1 = 1' if(@FirstName is not null) Set @sql = @sql + ' and FirstName=''' + @FirstName + '''' if(@LastName is not null) Set @sql = @sql + ' and LastName=''' + @LastName + '''' if(@Gender is not null) Set @sql = @sql + ' and Gender=''' + @Gender + '''' if(@Salary is not null) Set @sql = @sql + ' and Salary=''' + @Salary + '''' Execute sp_executesql @sql End Go Add a Web Page to the project that we have been working with in our previous video. Name it "DynamicSQLInStoredProcedure.aspx". Copy and paste the HTML and code available on my blog at the following link http://csharp-video-tutorials.blogspot.com/2017/04/dynamic-sql-in-stored-procedure.html At this point, run the application and type the following text in the "Firsname" text and click "Search" button. Notice "SalesDB" database is dropped. Our application is prone to SQL injection as we have implemented dynamic sql in our stored procedure by concatenating strings instead of using parameters. ' Drop database SalesDB -- In the following stored procedure we have implemented dynamic sql by using parameters, so this is not prone to sql injecttion. This is an example for good dynamic sql implementation. Create Procedure spSearchEmployeesGoodDynamicSQL @FirstName nvarchar(100) = NULL, @LastName nvarchar(100) = NULL, @Gender nvarchar(50) = NULL, @Salary int = NULL As Begin Declare @sql nvarchar(max) Declare @sqlParams nvarchar(max) Set @sql = 'Select * from Employees where 1 = 1' if(@FirstName is not null) Set @sql = @sql + ' and [email protected]' if(@LastName is not null) Set @sql = @sql + ' and [email protected]' if(@Gender is not null) Set @sql = @sql + ' and [email protected]' if(@Salary is not null) Set @sql = @sql + ' and [email protected]' Execute sp_executesql @sql, N'@FN nvarchar(50), @LN nvarchar(50), @Gen nvarchar(50), @sal int', @[email protected], @[email protected], @[email protected], @[email protected] End Go On the code-behind page, use stored procedure spSearchEmployeesGoodDynamicSQL instead of spSearchEmployeesBadDynamicSQL. We do not have to change any other code. At this point run the application one more time and type the following text in the "Firstname" textbox and click the "Search" button. ' Drop database SalesDB -- Notice "SalesDB" database is not dropped, So in this case our application is not succeptible to SQL injection attack. Summary : Whether you are creating dynamic sql in a client application (like a web application) or in a stored procedure always use parameters instead of concatnating strings. Using parameters to create dynamic sql statements prevents sql injection.
Views: 28026 kudvenkat
Java- MySQL Connection (Create Table, Insert, Select)
 
09:55
This is a fast tutorial, intended for people who understand java, and the basics of SQL/MySQL who just want to see how to use my-sql-connector. How to create a MySQL Connection in java, then create a table, insert, and select, video 1 of 4. CODE: import java.sql.Connection; import java.sql.DriverManager; public static Connection getConnection() throws Exception{ try{ String driver = "com.mysql.jdbc.Driver"; String url = "jdbc:mysql://24.196.52.166:3306/testdb"; String username = "username"; String password = "password"; Class.forName(driver); Connection conn = DriverManager.getConnection(url,username,password); System.out.println("Connected"); return conn; } catch(Exception e){System.out.println(e);} return null; } Download JDBC https://dev.mysql.com/downloads/connector/j/ --06/07/2107
Views: 256652 Steven Byrne
Alter database table columns without dropping table   Part 67
 
04:06
In this video, we will discuss, altering a database table column without having the need to drop the table. Let's understand this with an example. Text version of the video http://csharp-video-tutorials.blogspot.com/2013/08/part-67-alter-database-table-columns.html Slides http://csharp-video-tutorials.blogspot.com/2013/09/part-67-alter-database-table-columns.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 We will be using table tblEmployee for this demo. Use the sql script below, to create and populate this table with some sample data. Create table tblEmployee ( ID int primary key identity, Name nvarchar(50), Gender nvarchar(50), Salary nvarchar(50) ) Insert into tblEmployee values('Sara Nani','Female','4500') Insert into tblEmployee values('James Histo','Male','5300') Insert into tblEmployee values('Mary Jane','Female','6200') Insert into tblEmployee values('Paul Sensit','Male','4200') Insert into tblEmployee values('Mike Jen','Male','5500') The requirement is to group the salaries by gender. To achieve this we would write a sql query using GROUP BY as shown below. Select Gender, Sum(Salary) as Total from tblEmployee Group by Gender When you execute this query, we will get an error - Operand data type nvarchar is invalid for sum operator. This is because, when we created tblEmployee table, the "Salary" column was created using nvarchar datatype. SQL server Sum() aggregate function can only be applied on numeric columns. So, let's try to modify "Salary" column to use int datatype. Let's do it using the designer. 1. Right click on "tblEmployee" table in "Object Explorer" window, and select "Design" 2. Change the datatype from nvarchar(50) to int 3. Save the table At this point, you will get an error message - Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can't be re-created or enabled the option Prevent saving changes that require the table to be re-created. So, the obvious next question is, how to alter the database table definition without the need to drop, re-create and again populate the table with data? There are 2 options Option 1: Use a sql query to alter the column as shown below. Alter table tblEmployee Alter column Salary int Option 2: Disable "Prevent saving changes that require table re-creation" option in sql server 2008 1. Open Microsoft SQL Server Management Studio 2008 2. Click Tools, select Options 3. Expand Designers, and select "Table and Database Designers" 4. On the right hand side window, uncheck, Prevent saving changes that require table re-creation 5. Click OK
Views: 86638 kudvenkat
Learn Oracle | How to Alter a Table using SQL
 
04:53
Pebbles present, Learn Oracle 10g with Step By Step Video Tutorials. Learn Oracle 10g Tutorial series contains the following videos : Learn Oracle - History of Oracle Learn Oracle - What is Oracle - Why do we need Oracle Learn Oracle - What is a Database Learn Oracle - What is Grid Computing Learn Oracle - What is Normalization Learn Oracle - What is ORDBMS Learn Oracle - What is RDBMS Learn Oracle - Alias Names, Concatenation, Distinct Keyword Learn Oracle - Controlling and Managing User Access (Data Control Language) Learn Oracle - Introduction to SQL Learn Oracle - Oracle 10g New Data Types Learn Oracle - How to Alter a Table using SQL Learn Oracle - How to Create a Package in PL SQL Learn Oracle - How to Create a Report in SQL Plus Learn Oracle - How to Create a Table using SQL - Not Null, Unique Key, Primary Key Learn Oracle - How to Create a Table using SQL Learn Oracle - How to Create a Trigger in PL SQL Learn Oracle - How to Delete Data from a Table using SQL Learn Oracle - How to Drop and Truncate a Table using SQL Learn Oracle - How to Insert Data in a Table using SQL Learn Oracle - How to open ISQL Plus for the first time Learn Oracle - How to Open SQL Plus for the First Time Learn Oracle - How to Update a Table using SQL Learn Oracle - How to use Aggregate Functions in SQL Learn Oracle - How to use Functions in PL SQL Learn Oracle - How to use Group By, Having Clause in SQL Learn Oracle - How to Use Joins, Cross Join, Cartesian Product in SQL Learn Oracle - How to use Outer Joins (Left, Right, Full) in SQL Learn Oracle - How to use the Character Functions, Date Functions in SQL Learn Oracle - How to use the Merge Statement in SQL Learn Oracle - How to use the ORDER BY Clause with the Select Statement Learn Oracle - How to use the SELECT Statement Learn Oracle - How to use the Transactional Control Statements in SQL Learn Oracle - How to use PL SQL Learn Oracle - Data Types in PL SQL Learn Oracle - Exception Handling in PL SQL Learn Oracle - PL SQL Conditional Logics Learn Oracle - PL SQL Cursor Types - Explicit Cursor, Implicit Cursor Learn Oracle - PL SQL Loops Learn Oracle - Procedure Creation in PL SQL Learn Oracle - Select Statement with WHERE Cause Learn Oracle - SQL Operators and their Precedence Learn Oracle - Using Case Function, Decode Function in SQL Learn Oracle - Using Logical Operators in the WHERE Clause of the Select Statement Learn Oracle - Using Rollup Function, Cube Function Learn Oracle - Using Set Operators in SQL Learn Oracle - What are the Different SQL Data Types Learn Oracle - What are the different types of Databases Visit Pebbles Official Website - http://www.pebbles.in Subscribe to our Channel – https://www.youtube.com/channel/UCNNjWVsQqaMYccY044vtHJw?sub_confirmation=1 Engage with us on Facebook at https://www.facebook.com/PebblesChennai Please Like, Share, Comment & Subscribe
Views: 160 Pebbles Tutorials
MSSQL - How to send a Query result as an Email Attachment
 
09:45
How to create a query and email the results as an attachment
Views: 33461 CodeCowboyOrg
Dynamic Power BI reports using Parameters
 
12:21
In this video, Patrick shows you how you can use a parameter, within a Power BI report, to dynamically change the data in a report. This uses M Functions within Power Query and a second source that has the key values to pull. Then using a gateway to enable refresh. LET'S CONNECT! Guy in a Cube -- https://guyinacube.com -- http://twitter.com/guyinacube -- http://www.facebook.com/guyinacube -- Snapchat - guyinacube -- https://www.instagram.com/guyinacube/ ***Gear*** Check out my Tools page - https://guyinacube.com/tools/
Views: 73733 Guy in a Cube
Dropdown value edit and update in Mysql Database PHP Tutorial-104(Hindi/Urdu)
 
06:17
in this video tutorial you can learn about how to edit and update dropdown list value from mysql database using update query php hindi video tutorial.
Views: 14775 Jignesh Patel
Add,Update,Delete and Clear records -Visual Basic ADODC and MS Access-Step by Step Tutorial
 
25:51
How to add,Update ,Delete and Clear records using Ms Access Database and Visual Basic 6.0 ADODC control -(Step by step full tutorial with explanation of each step)-An Advanced Visual Basic Database Application. This tutorial is focused on following points. * How to create a simple database with MS Access. *How to add ADODC Control on the Visual Basic Toolbox. *How to use the ADODC control and set the properties and establish database connection using Ms Access . *How to set the properties of each fields according to database application. *How to hide ADODC control. *How to add Record navigation buttons i.e First,Previous,Next,Last. *How to perform Database Operation i.e ADD Record,Delete Record,Update Record and Clear the records. * How to search records by Name or Roll No.https://youtu.be/1yNScTVAqZ4 In this tutorial,every step is explained with supportive text within the video.so everyone can follow the steps to build such applications quite easily. link:- http://selfcomputerlearning.blogspot.in/2015/09/how-to-addupdatedelete-and-clear.html New: Add,Delete Update Search Using VB6 dataGrid Adodc and Ms Access-Complete Tutorial:https://youtu.be/K8jq2H3aamk if you have any queries,suggestions or problems,please leave a comments. for more Visual Basic tutorials,please visit Youtube Channel:https://www.youtube.com/user/sandydehrian Computer Gyan Blog:http://selfcomputerlearning.blogspot.in/ Do share and Subscribe to my channel :-) _____________________________________________________________ Here is my updated List of Tutorials. _____________________________________________________________ Create and store data in Microsoft Excel Sheet using visual basic https://youtu.be/qcUqaxFD2Dw Search records in listview control https://youtu.be/IvdwG_iIcgQ Create and Display Popup menu in Visual Studio https://youtu.be/Ue8s_EJggaw Search Records between Two dates using DataGrid https://youtu.be/hngeOF1hqcs How to Connect Listview with Database and Load data into Listview https://youtu.be/w2MXRpaXbNU Add Delete Search and Sort Listitems in Listview control https://youtu.be/5JNfrTYm7sI How to Reset Forgotten Password by User Verification in Visual Basic 6.0 https://youtu.be/mMuM99gPyoo How to Connect Datagrid control with Access database without VB6 ADODC https://youtu.be/QNqDcESIzCg How to Make installer for Visual Basic Database https://youtu.be/zd9MkOf1CI0 ImageCombo and ImageList-Display Image with Combo items in Combobox https://youtu.be/pctajfImKd4 Create Save Update Delete and Search Student Profile Using Visual Basic/Ms Access-Step by Step https://youtu.be/bL03PrGt8WY Advance Login System (Splash Screen with Progress Bar,User Registration,Login system,Welcome ) https://youtu.be/s-BU03egpWA Add Delete Update Search Records https://youtu.be/K8jq2H3aamk How to Print Data Report in VB6 https://youtu.be/vjQDtKMUCKk How to Use Data Manager in VB6 https://youtu.be/27IrMsEXlBc Create Tool Bar,Status Bar and Menu Bar https://youtu.be/3l6bciTAC7Q Common dialog control- Font and Color Dialog https://youtu.be/4DBy2ghmu7U Search Records in Database (By Name or ID) https://youtu.be/1yNScTVAqZ4 Login Form using Visual Basic 6.0 https://youtu.be/XXKjfta5kkg Add Delete Update and Clear records https://youtu.be/tYS7uncH8Ds Simple Visual Basic Database Application https://youtu.be/PldGe0-FnI8 Design Font Dialog Box in VB 6 https://youtu.be/C0CMtoXIFY4 Road Traffic lights Animated system https://youtu.be/74Zvl0bXeAY ListBox Control( Advanced) https://youtu.be/Q6NYtmH7z9Q ListBox Control -Add,Delete and Clear items https://youtu.be/YlmKSyk0l2k Custom Progress Bar with percentage completed on Splash Screen https://youtu.be/jGSxrhYZAbE Frame Control,Check Box and Option Buttons https://youtu.be/9x9dmM0V4CU Picture Viewer+Browser in Visual Basic https://youtu.be/POd1Kmpvc0M Splash Screen with Progress Bar- https://youtu.be/95hw5z7lq4A Create Menus,Drop Down Menus ,Nested menus in Menu Bar https://youtu.be/fNtJaQgnuEs #visualbasic #visualbasictutorial #vb6
Views: 221098 Sandeep Kaundal
Part-3 (Oracle Procedures) Oracle PL SQL Training - Fast Track Series
 
18:26
Oracle Procedures Is a group of PL SQL statement that can call by name. Syntax CREATE [OR REPLACE] PROCEDURE procedure_name [ (parameter [,parameter]) ] IS | AS [declaration_section] BEGIN executable_section [EXCEPTION exception_section] END [procedure_name]; Example:1 of procedure having Only parameter procedure. create or replace procedure insert_employee ( p_emp_name varchar2, p_deptno IN number ) is begin Insert into emp (id,name,deptno) values (emp_id_seq.nextval, p_emp_name, p_deptno); commit; end insert_employee; / Prerequisite for the Example:1 1. Need create emp table create table emp( id number, name varchar2(200), deptno number ); 2. Create sequence object. create sequence emp_id_seq start with 1 Increment by 1 nomaxvalue nocycle; How to call procedure created in Example:1 exec insert_employee('sanket',10); Or begin insert_employee('sanket',10); end; set pagesize 100 set linesize 100 column id format 999 column name format a6 column deptno format 999 select * from emp; ID NAME DEPTNO ---- ------ ------ 1 sanket 10 Example:2 of procedure having In/Out parameter procedure create or replace procedure insert_employee ( p_emp_name varchar2, p_deptno IN number, p_message OUT varchar2 ) is begin Insert into emp (id,name,deptno) values (emp_id_seq.nextval, p_emp_name, p_deptno); commit; p_message:= 'one row inserted...'; end insert_employee; / How to call procedure created in Example:2 set serveroutput on; declare v_message varchar2(100); begin insert_employee(‘',20,v_message); dbms_output.put_line(v_message); end; select * from emp; ID NAME DEPTNO ---- ------ ------ 1 sanket 10
Views: 1555 Sanket Patel
PIVOT Tutorial - generating dynamic column with PIVOT Interview Question SQL
 
14:14
In this lecture you will learn about PIVOT operator and using it to generate dynamic columns.PIVOT is very use full operator to convert values into columns. PIVOT: •Convert your output from (values)vertical order to horizontal(making columns) one Topic to cover: •PIVOT example •PIVOT syntax •Interview Question •PIVOT on northwind •Dynamic PIVOT query http://www.techsapphire.in/index/pivot_sql_lesson_with_generating_dynamic_columns_with_pivot/0-158
Views: 27242 techsapphire
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: 85211 kudvenkat
Window functions in SQL Server
 
11:00
sql server window function example window function sql server example sql server rows range clause sql server rows between 1 preceding and 1 following In this video we will discuss window functions in SQL Server In SQL Server we have different categories of window functions Aggregate functions - AVG, SUM, COUNT, MIN, MAX etc.. Ranking functions - RANK, DENSE_RANK, ROW_NUMBER etc.. Analytic functions - LEAD, LAG, FIRST_VALUE, LAST_VALUE etc... OVER Clause defines the partitioning and ordering of a rows (i.e a window) for the above functions to operate on. Hence these functions are called window functions. The OVER clause accepts the following three arguments to define a window for these functions to operate on. ORDER BY : Defines the logical order of the rows PARTITION BY : Divides the query result set into partitions. The window function is applied to each partition separately. ROWSor RANGE clause : Further limits the rows within the partition by specifying start and end points within the partition. The default for ROWS or RANGE clause is RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW Let us understand the use of ROWS or RANGE clause with an example. Compute average salary and display it against every employee We might think the following query would do the job. SELECT Name, Gender, Salary, AVG(Salary) OVER(ORDER BY Salary) AS Average FROM Employees As you can see from the result, the above query does not produce the overall salary average. It produces the average of the current row and the rows preceeding the current row. This is because, the default value of ROWS or RANGE clause (RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) is applied. To fix this, provide an explicit value for ROWS or RANGE clause as shown below. ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING tells the window function to operate on the set of rows starting from the first row in the partition to the last row in the partition. SELECT Name, Gender, Salary, AVG(Salary) OVER(ORDER BY Salary ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS Average FROM Employees The same result can also be achieved by using RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING Well, what is the difference between ROWS and RANGE We will discuss this in a later video The following query can be used if you want to compute the average salary of 1. The current row 2. One row PRECEDING the current row and 3. One row FOLLOWING the current row SELECT Name, Gender, Salary, AVG(Salary) OVER(ORDER BY Salary ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING) AS Average FROM Employees Text version of the video http://csharp-video-tutorials.blogspot.com/2015/10/window-functions-in-sql-server.html Slides http://csharp-video-tutorials.blogspot.com/2015/10/window-functions-in-sql-server_7.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: 54606 kudvenkat
Tutorial: Dynamic Action in Oracle APEX 5 - Part 1
 
07:08
Simple demonstration on Dynamic action.
Views: 4989 Oracle Testlab

Profile writing service
Cover letter example for admin officer
Annotated bibliography example mla format 2010 dodge
Writing service testimonials
Sending cover letter by email