Home
Search results “If else case in oracle”
CASE STATEMENT(IF THEN ELSE) IN ORACLE SQL WITH EXAMPLE
 
06:28
The case statement gives the if-then-else kind of conditional ability to the otherwise static sql select statement, This video demonstrates how to write an case statement in oracle sql, and explains different aspects of the case statement. The video explains the execution flow of the case statement and advises on the best way to write one.
Views: 2556 Kishan Mashru
PL-SQL Condition Statement - IF Then, If Then else, CASE Statement
 
08:25
PL-SQL Condition Statement - IF Then, If Then else, CASE Statement PL-SQL tutorial for Beginners in Hindi and English
CASE Function( IF..THEN..ELSE) in SQL ORACLE Query With Example
 
04:03
ORACLE/PLSQL: CASE STATEMENT The Oracle/PLSQL CASE statement has the functionality of an IF-THEN-ELSE statement. Starting in Oracle 9i, you can use the CASE statement within a SQL statement. The syntax for the Oracle/PLSQL CASE statement is: CASE [ expression ] WHEN condition_1 THEN result_1 WHEN condition_2 THEN result_2 ... WHEN condition_n THEN result_n ELSE result END --------- ARGUMENTS: expression is optional. It is the value that you are comparing to the list of conditions. (ie: condition_1, condition_2, ... condition_n) condition_1 to condition_n must all be the same datatype. Conditions are evaluated in the order listed. Once a condition is found to be true, the CASE statement will return the result and not evaluate the conditions any further. result_1 to result_n must all be the same datatype. This is the value returned once a condition is found to be true. NOTE: If no condition is found to be true, then the CASE statement will return the value in the ELSE clause. If the ELSE clause is omitted and no condition is found to be true, then the CASE statement will return NULL. You can have up to 255 comparisons in a CASE statement. Each WHEN ... THEN clause is considered 2 comparisons. Lets apply this function on emp table. Emp table has 3 dept numbers like 10,20 and 30. So if I want to display the different dept names based on ID, I have to use IF THEN ELSE condition. IF deptno=10 THEN "DEPT1" ELSE deptno=20 THEN "DEPT2" ELSE deptno=30 THEN "DEPT3" This entire IF block can be achived using CASE. CASE deptno WHEN 10 THEN 'DEPT1' WHEN 20 THEN 'DEPT2' WHEN 30 THEN 'DEPT3' ELSE 'NO DEPT' END; Query used in Video: select empno,ename,deptno,CASE deptno WHEN 10 THEN 'DEPT1' WHEN 20 THEN 'DEPT2' WHEN 30 THEN 'DEPT3' ELSE 'No Dept' END from emp;
Views: 16791 WingsOfTechnology
Oracle SQL Tutorial - If condition using Decode and Case Statements
 
08:56
In this tutorial, we will see how to use CASE and DECODE to construct an IF ELSE conditions in SQL. SQL used in this video are given below. Also, note as mentioned in video, the values we substitute for different data should be of same data type. select * from emp_test; Male Female better than just F IF gender = 'M' then print 'MALE', gender = 'F' then print 'Female', ELSE, print 'Unknown' select first_name,gender from emp_test; select first_name,DECODE(GENDER,'M','Male','F','Female','Unknown') Gender from emp_test; SELECT first_name,DECODE(GENDER,'M','Male','F','Female') Gender FROM emp_test; SELECT first_name, CASE GENDER WHEN 'M' THEN 'MALE' WHEN 'F' THEN 'FEMALE' END AS GENDER FROM EMP_TEST; SELECT first_name, CASE GENDER WHEN 'M' THEN 'MALE' WHEN 'F' THEN 'FEMALE' ELSE 'UNKNOWN' END AS GENDER FROM EMP_TEST; SB - Savings Bank CA - CURRENT ACCOUNT FD - Fixed Deposit LA - Loan ACCOUNT
Views: 70 Ganesh Anbarasu
Oracle SQL Video Tutorial 26 - CASE Statements
 
05:59
Oracle SQL Video Tutorials 26 - CASE Statements explained.In This Oracle SQL Tutorial for Beginners, I have explained basics of SQL.These examples work on Oracle 10g and Oracle 11g database. These helps youto understand Oracle Joins and helps beginners. Iam going to add more tutorials on Oracle DBA, Oracle RAC and Oracle PL/SQL.All Oracle sql tutorial with examples are executed on Oracle 11g using Oracle SQL Developer.
Views: 5346 Just Channel
TSQL: How To Use CASE WHEN Statements
 
14:15
How to use CASE WHEN statements in SQL Server.
Views: 30441 SQLInSix Minutes
EXIST Function in SQL
 
08:04
Join Discussion: http://www.techtud.com/video-lecture/exist-function-sql IMPORTANT LINKS: 1) Official Website: http://www.techtud.com/ 2) Virtual GATE: http://virtualgate.in/login/index.php Both of the above mentioned platforms are COMPLETELY FREE, so feel free to Explore, Learn, Practice & Share! Our Social Media Links: Facebook Page: https://www.facebook.com/techtuduniversity Facebook Group: https://www.facebook.com/groups/virtualgate Google+ Page: https://plus.google.com/+techtud/posts Last but not the least, SUBSCRIBE our YouTube channel to stay updated about the regularly uploaded new videos.
Views: 39331 Techtud
PL-SQL tutorial 24 - Selection Control Structure IF-ELSE
 
05:16
Hi guys today i am going to explain about Selection Control Structure IF-ELSE in PL/SQL how to write a code in condition. Oracle database Unbeatable,Unbreakable Platform..
Views: 238 Oracle World
Oracle Sql Step by Step Approach (071 if then else case statement)
 
03:20
Oracle Sql Step by Step Approach (071 if then else case statement) Discover essential SQL skills necessary to transform you into SQL developer which can earn you $70k+ in the IT Industry Learn to become a fee-earning SQL developer in just seven weeks. This fast, easy and effective course will take you from zero sql writing skills to being able to make money as a SQL developer. This one-stop-shot-style SQL course will teach you everything you need to know about SQL, from learning various database concepts to writing SQL to interact with the database. Throughout this SQL course I will be using the below methodology to make you think and help in forming the SQL statement. Like,Comment,Share
Oracle PL/SQL - IF THEN ELSIF Statement
 
09:07
http://plsqlzerotopro.com This tutorial explains IF THEN ELSE IF statement.
Views: 6337 HandsonERP
Conditional statements (if-then-else/case)
 
09:27
This tutorial shows how to use conditional statements in SCAR Divi.
Views: 571 scardivicom
decode and case in oracle
 
02:34
in this tutorial i teach decode and case in oracle
SQL 063 Scalar Functions, CASE WHEN ELSE or IF THEN ELSE?
 
02:50
Explains the CASE WHEN ELSE Statement Scalar Function in place of IF THEN ELSE. From http://ComputerBasedTrainingInc.com SQL Course. Learn by doing SQL commands for ANSI Standard SQL, Access, DB2, MySQL, Oracle, PostgreSQL, and SQL Server.
Views: 3989 cbtinc
Chapter 6 : PL/SQL Control Structure (Conditional Statement - If-Else, Case & Loops)
 
27:29
This chapter shows you how to structure the flow of control through a PL/SQL program. You learn how statements are connected by simple but powerful control structures that have a single entry and exit point. Collectively, these structures can handle any situation. Their proper use leads naturally to a well-structured program. This chapter discusses the following topics: Overview of PL/SQL Control Structures Conditional Control: IF and CASE Statements Iterative Control: LOOP and EXIT Statements Sequential Control: GOTO and NULL Statements
CASE Expressions and CASE Statements
 
01:59
This video gives an overview of CASE expression and CASE statement support in SQL and PL/SQL. For more information see: https://oracle-base.com/articles/9i/case-expressions-and-statements-9i Website: https://oracle-base.com Blog: https://oracle-base.com/blog Twitter: https://twitter.com/oraclebase Cameo by Scott Wesley : Blog: http://www.grassroots-oracle.com/ Twitter : https://twitter.com/swesley_perth Cameo appearances are for fun, not an endorsement of the content of this video. All trademarks, product names and logos are the property of their respective owners.
Views: 3143 ORACLE-BASE.com
SQL tutorial 50  CASE   Searched Case Expression In Oracle
 
05:15
SQL tutorial 50 CASE Searched Case Expression In Oracle, IF-THEN-ELSE in oracle database. There are two type of case in oracle simple case expression and searched case expression http://bit.ly/2iMlyOg
Views: 19 Mehr Nigar
Essbase MDX Case & IIF Statements
 
05:31
interRel presents Look Smarter Than You Are With Oracle Essbase: How to Use MDX Case and IIF Statements. Glenn Schwartzberg
Views: 1008 interRel Consulting
SQL Tutorial - CASE Statements
 
10:04
Another video brought to you by BeardedDev, bringing you tutorials on Business Intelligence, SQL Programming and Data Analysis. If you are not familiar with my previous video on creating a sample set of data please check out the video here: In this video I talk about how to use CASE statements in SQL Server. CASE Statements were introduced to SQL Server in 2008. They are used to evaluate conditions and return a result based on those conditions. CASE Statements can be used in SELECT, UPDATE, DELETE, WHERE, HAVING. In this CASE Tutorial we look at a common use of CASE statements within SELECT and also the benefit and common downfalls when writing CASE queries. CASE Statement Syntax: CASE WHEN [condition] THEN [result] END SQL Queries in this video: SELECT CustomerId , FirstName , MiddleName , LastName , CASE WHEN CustomerId = 5995 THEN 'Unknown' WHEN Gender = 'M' THEN 'Male' WHEN Gender = 'F' THEN 'Female' ELSE 'Unknown' END AS Gender , DOB FROM dbo.CustomersSample Please feel free to post comments.
Views: 1268 BeardedDev
Introduction to Oracle: PL-SQL - IF ... ELSIF ... ELSE Statement
 
04:28
Introduction to Oracle: PL-SQL - IF ... ELSIF ... ELSE Statement
Views: 370 David Hays
Case Statement in Oracle
 
13:05
Topic: Case Statement in Oracle 27th Video of this Series Comments/Suggestions are welcome get in touch with us, by mailing [email protected] for Upcoming trainings. https://www.facebook.com/binary01010101/ This is an Unedited Video from the Live sessions on Sql (RDBMS) I will be posting a complete series of these tutorials on this channel, If you would like to be notified every time i post something ; Please subscribe to this channel and press the bell icon.
Views: 13 CodeSmith 001
Условия в SQL и условные SQL запросы CASE, WHEN, THEN, ELSE , END в базах данных SQLite
 
07:45
Помощь проекту: WMR: R288272666982 WMZ: Z293550531456 Яндекс.Деньги: 410011531129223 Рубрика SQLite на сайте: http://zametkinapolyah.ru/zametki-o-mysql/sqlite/ Паблик блога в ВК: https://vk.com/zametkinapolyah Тематическая группа в ВК: https://vk.com/zametki_bd -- Условные выражения CASE, WHEN, THEN, ELSE, END в SQL /* Условные выражения, состоящие из CASE, WHEN, THEN и ELSE полезны в тех случаях, когда нужно осуществить ряд проверок и получить конечный результат в зависимости от исхода этих проверок. По сути, CASE является SQL оператором, а ключевые слова WHEN и THEN позволяют задавать несколько условия для проверки, теоретически количество этих условий может быть бесконечным. Выражение с оператором CASE имеют две формы записи, но в любом случае условное выражение в SQL завершается ключевым словом END. */ -- 1 вариант CASE WHEN первое условие THEN первое возвращаемое значение WHEN второе условие THEN второе возвращаемое значение … WHEN энное условие THEN энное возвращаемое значение [ELSE возвращаемое значение, если условие не будет выполнено] END -- 2 вариант CASE первое значение, которое хотим проверить WHEN первое значение, с которым сравниваем THEN первое значение, которое возвращаем WHEN второе значение, с которым сравниваем THEN второе значение, которое возвращаем … WHEN энное значение, с которым сравниваем THEN энное значение, которое возвращаем [ELSE возвращаемое значение, если условие не будет выполнено] END -- Для начала рассмотрим два простых примера CREATE TABLE booltable (a,b); INSERT INTO booltable VALUES (1,0); SELECT * FROM booltable; -- 1 вариант выражения CASE в SQL SELECT CASE WHEN a==1 THEN 'true' ELSE 'false' END as typeColA, CASE WHEN b THEN 'true' ELSE 'false' END as typeColB FROM booltable; -- 2 вариант выражения CASE в SQL SELECT CASE a WHEN 1 THEN 'true' ELSE 'false' END AS boolA, CASE b WHEN 1 THEN 'true' ELSE 'false' END AS boolB FROM booltable;
PL/SQL tutorial IF THEN ELSE (IF-ELSE) Statement in PL/SQL
 
04:07
This video is about pl sql basics,pl sql basic programs,basic pl sql programs,oracle pl sql basics,pl sql basics with examples,basic pl sql,basic pl sql queries,basics of pl sql,pl sql basics tutorial,pl sql basic concepts,basic pl
Views: 166 Nayabsoft
Intermediate MySQL: Select Case Statements
 
02:36
This is a video tutorial on how to do case statements inside of a select statement to get better/new results. Twitter ► https://twitter.com/ShieldCrush Instagram ► https://www.instagram.com/BrentFarris
Views: 4399 Brent Farris
Tutorial 32 : ORACLE CASE Expression Explained (Part 1)
 
06:30
Hi Friends! Here we are learning about Simple CASE Expression in ORACLE. Hope the concept would be clear to you. Please let me know for any confusion or doubt in comment box. Thanks. Happy Coding :)
Views: 49 YourSmartCode
PL/SQL Conditional Statements Example - Case Statements in PL SQL - If Then Else in PL SQL
 
28:58
Conditional statements are important in any language and so they are important in Oracle PL/SQL language also. They allow conditional execution of lines of code. #OraclePLSQL #LearnPLSQL #Crazy4DB #MunshiSir #LearnOracle Videos to visit : PL/SQL Basic : https://youtu.be/5fXsfOTRSHc PL/SQL Exception : https://youtu.be/tahOBL8Ogss Code for complex programs of this video : If-then-elsif-then-else-end if; Problem : Calculate salary with formula salary = basic + allowance under following terms - (1) basic can not be less than 1800 and more than 10,000 (2) basic between 1800 and 3000 allownace is 120% of basic (3) basic above 3000 and up to 5000 allowance rate 130% of basic (4) basic above 5000 and up to 7000 allowance rate 140% of basic (5) basic above 7000 allowance rate is 150% Input to the program is basic Output print : basic, calculated allowance, and salary = basic + allowance declare basic number; salary number; allow number; minbas number := 1800; maxbas number := 10000; baslim1 number := 3000; baslim2 number := 5000; baslim3 number := 7000; allow1 number := 120; allow2 number := 130; allow3 number := 140; allow4 number := 150; invalid exception; begin basic := '&basic'; if basic [less than] minbas or basic [greater than] maxbas then raise invalid; elsif basic between minbas and baslim1 then allow := basic * allow1/100; elsif basic [greater than] baslim1 and basic [less than equal] baslim2 then allow := basic * allow2/100; elsif basic [greater than] baslim2 and basic [less than equal] baslim3 then allow := basic * allow3/100; else allow := basic * allow4/100; end if; salary := basic + allow; dbms_output.put_line('Basic : '||basic); dbms_output.put_line('Allowance : '||allow); dbms_output.put_line('salary : '||salary); exception when value_error then dbms_output.put_line('basic has to be number'); when invalid then dbms_output.put_line('basic must be in valid range'); end; CASE control structure ========================================================== Case was introduced in oracle 9i. It is equivalent to if-elsif structure demonstrated above, but simplifies it by taking expression only for once, in normal use but tests the evaluation of expression with value for equality. Problem : consider a school which has alternate day half day and weekly off on Sunday. We want to display the name of the day and if it is half day or full day or holiday. The input is numeric week day, with 1 as Sunday. declare daynum number(1); err exception; begin daynum := '&DayNumber'; if daynum [less than] 1 or daynum [greater than] 7 then raise err; end if; case daynum when 1 then dbms_output.put_line('it is Sunday : weekly off'); when 2 then dbms_output.put_line('it is Monday : Full Day'); when 3 then dbms_output.put_line('it is Tuesday : Half Day'); when 4 then dbms_output.put_line('it is Wednesday : Full Day'); when 5 then dbms_output.put_line('it is Thursday : Half Day'); when 6 then dbms_output.put_line('it is Friday : Full Day'); else dbms_output.put_line('it is Saturday : Half Day'); End case; exception when err then dbms_output.put_line('numeric week day 1 to 7 only accepted'); when value_error then dbms_output.put_line('input must be between 1 to 7 only'); end; CASE in Searched form declare basic number; salary number; allow number; minbas number := 1800; maxbas number := 10000; baslim1 number := 3000; baslim2 number := 5000; baslim3 number := 7000; allow1 number := 120; allow2 number := 130; allow3 number := 140; allow4 number := 150; invalid exception; begin basic := '&basic'; CASE when basic [less than] minbas or basic [greater than] maxbas then raise invalid; when basic between minbas and baslim1 then allow := basic * allow1/100; when basic [greater than] baslim1 and basic [less than equal] baslim2 then allow := basic * allow2/100; when basic [greater than] baslim2 and basic [less than equal] baslim3 then allow := basic * allow3/100; else allow := basic * allow4/100; end case; salary := basic + allow; dbms_output.put_line('Basic : '||basic); dbms_output.put_line('Allowance : '||allow); dbms_output.put_line('salary : '||salary); exception when value_error then dbms_output.put_line('basic has to be number'); when invalid then dbms_output.put_line('basic must be in valid range'); end;
Views: 45 Crazy4 DB
MySQL - Blocos Condicionais IF - THEN - ELSE e CASE - 38
 
10:51
MySQL - Blocos Condicionais IF / THEN / ELSE e CASE - 38 Contribua com a Bóson Treinamentos!: Como contribuir: http://www.bosontreinamentos.com.br/contribuir/ Por Fábio dos Reis Bóson Treinamentos: http://www.bosontreinamentos.com.br Facebook: https://www.facebook.com/bosontreinamentos/ Pinterest: https://br.pinterest.com/bosontreina/ Twitter: https://twitter.com/bosontreina Instagram: https://www.instagram.com/bosontreinamentos/ LInkedin: https://www.linkedin.com/in/f%C3%A1bio-dos-reis-06ba192a/ Outros projetos do autor: Diário do Naturalista: http://www.diariodonaturalista.com.br
Views: 11482 Bóson Treinamentos
SQL Döngüler(IF-ELSE-CASE-WHEN-CONTINUE-BREAK)
 
09:14
SQL'de Döngülerin kulanımları, if else, case when, continue break örnekleri http://ibrahimbavli.com/2017/12/18/sql-dongulerif-else-case-when-continue-break/
Views: 83 Ibrahim Bavli
SQL Snippets: Case When Statements
 
03:50
Stephanie and Lex introduce 'CASE WHEN' statements, SQL's method of managing IF/THEN logic based on conditional statements. For any row, if the conditional statements are met, the output is given by the 'THEN' command. The 'UNION' operator is included in the query to integrate all rows in the result sets of two queries in this example. Can't get enough PDQ? Commence stalking in 3... 2... 1... - Twitter - General info: @admarsenal - All things PDQ Deploy: @pdqdeploy - All things PDQ Inventory: @pdqinventory - Package Library updates: @packagelibrary - Alerts and Technical [email protected] Facebook: https://www.facebook.com/PDQlive/ Reddit: https://www.reddit.com/r/PDQDeploy/ LinkedIn: https://www.linkedin.com/company/17961724/ Our blog: https://www.pdq.com/blog/ Instagram: @pdqlife
Views: 161 PDQ.com
10 - IF ELSE, CASE clauses and temp tables
 
13:14
If-Else in SQL Server, CASE statement, and temporary tables
Views: 63 Modie Taimoor
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: 36737 kudvenkat
MySql 23 | IF and CASE statements in MySQL
 
09:17
IF and CASE statements in MySQL
Views: 19 Adam Tech
Nested If Then Else statement in pl/sql
 
04:08
Nested If Then Else statement in pl/sql Share, Support, Subscribe!!! Subscribe: https://www.youtube.com/channel/UC1P3... Youtube: https://www.youtube.com/channel/UC1P3... Twitter: https://twitter.com/csetuts4you Facebook: https://www.facebook.com/csetuts4you/ Instagram: https://www.instagram.com/csetuts4you/ Google Plus: https://plus.google.com/u/0/+csetuts4you About : This is my youtube channel its name is Technical Notes that means computer science and engineering tutorials for you. the aim of my channel is to provide you to the best programming language concept and other subjective concept and different technology concept. so friends please visit to my Technical Notes youtube channel and subscribe it. this is fully free channel. and please share this link to all yours friends to get these benefits.., New Video is Posted Everyday :)
Views: 40 Technical Notes
Case Statement in SQL
 
02:01
In SQL Server, the CASE statement has the functionality of an IF-THEN-ELSE statement.You can use the CASE statement within a SQL statement.
Views: 1815 Himadri Patel
if then else select case
 
09:48
The grades problem made for Year3 Prep National schools Mr Sameh Hassan 01005393189
Views: 168 Hisho Bisho
PL/SQL Tutorial 19- PL_SQL Simple Case Statements in PL/SQL  By JavaInHand (in Hindi)
 
07:51
what is case statements in pl/sql? Types of case statements in pl/sql? Simple case statements in pl/sql? Syntax of simple case statements in pl/sql? Example of simple case statements in pl/sql? pl/sql video tutorial for beginners
Views: 213 JavaInHand
SQL Server CASE WHEN ELSE END Example
 
02:15
Declare @Temp Table ( FirstName Varchar(100), Age int ) INSERT INTO @Temp values ('BOB',10) INSERT INTO @Temp values('Larry',55) INSERT INTO @Temp values ('Tim',99) INSERT INTO @Temp values ('Mike',60) Select CASE WHEN Age ~ 65 THEN 'SENIOR' WHEN Age ~ 18 THEN 'MINOR' WHEN Age ~ 40 and Age ~ 64 THEN 'MIDDLE AGE' ELSE 'I DONT KNOW' END as AgeType, * From @Temp ------OR YOU CAN SET VARIABLES ----------------- Declare @metacolumntype varchar(50) set @metacolumntype = @columntype SET @metacolumntype = CASE @columntype WHEN 'bigint' THEN 'mommy' WHEN 'int' THEN 'daddy' END
Views: 560 CKWTech LLC
Let's Learn SQL! Lesson 99: Nested Case Statements and Order By Case Statements
 
03:27
Explore SQL with Tom Coffing of Coffing Data Warehousing! In this lesson, learn how to use a Nested Case Statement as well as use a Case Statement within the Order By!
Case Statement in SQL Server
 
02:22
This video demonstrates how case statement can be used for various conditions to get a value for a column in table in sql server database.
Views: 2067 Gautam Mokal
PL/SQL Tutorial 20- PL_SQL Searched Case  Statements in PL/SQL By JavaInHand (in Hindi)
 
06:46
Searched Case Statements in pl/sql? Syntax of Searched Case Statements in pl/sql? example of Searched Case Statements in pl/sql? pl/sql tutorial for beginners in hindi
Views: 68 JavaInHand
SQL With - How to Use the With (CTE) Statement in SQL Server - SQL Training Online
 
06:33
http://www.sqltrainingonline.com SQL With - How to Use the WITH Statement/Common Table Expressions (CTE) in SQL Server - SQL Training Online In this video, I introduce the SQL WITH statement (also known as Common Table Expressions or CTE) and show you the basics of how it is used. The SQL WITH Statement is called Common Table Expressions or CTE for short in SQL Server The SQL WITH statement is used for 2 primary reasons: 1) To move Subqueries to make the SQL easier to read. 2) To do recursive queries in SQL Today, I just want to talk about the subquery piece. I first want to take a look at the Employee table in the SQL Training Online Simple Database. select * from employee To talk about the SQL WITH statement, I have to first talk about and show you a subquery. select * from ( select * from employee ) a So that is an example of a subquery. But, we want to talk about the SQL WITH, which allows you to move the subquery up and make the SQL a lot easier to read. Here is the same query using the WITH statement. WITH cteEmployee (employee_number,employee_name,manager) AS ( select employee_number,employee_name,manager from employee ) select * from cteEmployee You can see that we start with the WITH clause and then we can use any name we want to name our CTE. In this case, I use "cteEmployee". Then we need to specify the columns inside of parenthesis. Next comes the AS clause. And finally, we just SELECT from the cteEmployee table we created. And, that's it. But, I want to take it a step further and join the cteEmployee CTE back to the Employee table and get the Manager's name. Here is an example of that. WITH cteEmployee (employee_number,employee_name,manager) AS ( select employee_number,employee_name,manager from employee ) select cte.employee_number ,cte.employee_name ,cte.manager ,e.employee_name as manager_name from cteEmployee cte INNER JOIN employee e on cte.manager = e.employee_number That's it. That is the basic introduction into the SQL WITH statement in SQL Server. Microsoft also has some good examples on this. Let me know what you think by commenting or sharing on twitter, facebook, google+, etc. If you enjoy the video, please give it a like, comment, or subscribe to my channel. You can visit me at any of the following: SQL Training Online: http://www.sqltrainingonline.com Twitter: http://www.twitter.com/sql_by_joey Google+: https://plus.google.com/#100925239624117719658/posts LinkedIn: http://www.linkedin.com/in/joeyblue Facebook: http://www.facebook.com/sqltrainingonline
Views: 23602 Joey Blue
sql case when
 
10:26
sql case when Help us caption & translate this video! http://amara.org/v/Fozn/
Views: 151 David Jung
35-) T-SQL Case When Then Else End Kalıbı
 
05:31
Bu video, T-SQL Case When Then Else End Kalıbı konusunu ele almaktadır ve Gençay Yıldız tarafından ücretsiz olarak kayda alınmıştır. http://www.gencayyildiz.com/blog
Views: 907 Gençay Yıldız
Stored Procedures: Input Parameters and Using Case Statements
 
04:21
Let's take a closer look at Input Parameters for your Stored Procedures. While we are at it, I'll show you how you can use a Case Statement to sort in a Stored Procedure. For more education opportunities, visit CoffingDW.com The Query Tool being used in this film is the Nexus Query Chameleon. Read more about it here: https://www.coffingdw.com/software/nexus/
SQL Basics Part-5, How to write Case Statements in SQL Server
 
10:32
An easy way to learn SQL in SQL Server Management Studio Environment
Views: 3332 SQL Learn & Share

Free download instrumental music of english songs
Wavin flag haiti karaoke music
Susanna parigi opera buffa music definition
Love on top angeline quinto songs
Neon indian hex girlfriend vimeo music