Home
Search results “Case in oracle with select”
SQL tutorial 49: CASE - Simple Case Expression in Oracle Database (1/2)
 
06:34
Case expression let you perform IF-THEN-ELSE in oracle database. There are two type of case in oracle simple case expression and searched case expression. This SQL Tutorial 49 is about Simple Case Expression. ● What Is Case Expression ● Syntax of Simple Case Expression ● Query 1. Column name of a table as Search expression in CASE ● Query 2. String as Search expression in CASE Celebrating 1000 subscribers. Thanks a lot guys for all your love and support. ------------------------------------------------------------------------ ►►►LINKS◄◄◄ Blog: http://bit.ly/simple-case-expression ------------------------------------------------------------------------- Copy Cloud referral link || Use this link to join copy cloud and get 20GB of free storage https://copy.com?r=kb4rc1 -------------------------------------------------------------------------- ►Make sure you SUBSCRIBE and be the first one to see my videos! -------------------------------------------------------------------------- Amazon Wishlist: http://bit.ly/wishlist-amazon ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ►►►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 [email protected] 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: 37793 Manish Sharma
Oracle SQL, PL/SQL, Select Kullanımı ve Eğitimi 3 - select decode case
 
14:36
Oracle SQL, PL/SQL, Select Kullanımı ve Eğitimi 3 - select decode case, PL/SQL Select, decode, casei oracle select statement, oracle select education, PL/SQL Beğendiyseniz Beğen Butonuna basmayı ve Abone olarak destek olmayı unutmayın.
Views: 208 Taner TOPCU
08. Oracle Database Tutorial - SELECT Operators - DECODE, CASE, NVL, NVL2, SUM, COUNT etc
 
21:30
This video tutorial on Oracle database provides detailed information on various operators used in SELECT statements. You can visit Oracle Database related videos here : https://www.youtube.com/watch?v=cDqlT7O8H0Q&list=PLRt-r4QiDOMfMmVU-8145pLcBxIdvAt8f&index=1 Website: http://guru4technoworld.wix.com/technoguru Facebook : https://www.facebook.com/a2zoftech/ Blog: http://dronatechnoworld.blogspot.com
Views: 97 Sandip M
Using Select (7) and Case, To_Date,To_Char, To_number
 
06:53
Beginner lessen for Oracle Case Statement and Single row Conversion function
Views: 3331 Harith Jawad
How to use Case Statement for Conditional Formatting in Select Query - TSQL Tutorial Part 116
 
12:03
SQL Server / T-SQL Tutorial Scenario: How to use Case Statement for Conditional Formatting in Select Query You are working as SQL Server developer, you need to query dbo.Customer table that has CountryShortName column with country abbreviations. You want to generate another columns with Country Full name by using CountryShortName column values. How would you do that? Link to scripts used in SQL Server / TSQL Tutorial Video http://www.techbrothersit.com/2016/06/how-to-use-case-statement-for.html Check out our website for Different SQL Server, MSBI tutorials and interview questions such as SQL Server Reporting Services(SSRS) Tutorial SQL Server Integration Services(SSIS) Tutorial SQL Server DBA Tutorial SQL Server / TSQL Tutorial ( Beginner to Advance) http://www.techbrothersit.com/
Views: 1593 TechBrothersIT
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: 4187 Brent Farris
PL/SQL tutorial 11: PL/SQL Simple Loop in Oracle Database by Manish Sharma RebellionRider.com
 
04:21
First tutorial in Iterative statement series explaining concepts of Simple Loop in PL/SQL With a quick brief intro of Loops in Oracle PL/SQL ------------------------------------------------------------------------ ►►►LINKS◄◄◄ Blog : http://bit.ly/simple-loop Previous Tutorial ► IF-THEN : https://youtu.be/IWvuFD6eD30 ► Simple CASE Statement https://youtu.be/DMlDwOmqAzo ► Searched CASE Statement https://youtu.be/jk7k4TDs3F0 ► DECODE Statement https://youtu.be/lKXqXINCNLo ------------------------------------------------------------------------- ►►►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: 66896 Manish Sharma
VBA SELECT CASE STATEMENT - CONDITIONAL STRUCTURE
 
03:46
Get the 100% FREE "VBA Crash Course" Manual NOW At http://yourexcelvbatraining.com/ and you'll be signed up for the 12 part VBA Crash Course video training! This video goes over the Select Case conditional statement. Use this statement to determine the logical flow of your Excel VBA application. If you have multiple conditions to evaluate, use this structure, it's easier to deal with and more readable. Now watch our VBA For Next Statement Video! (http://www.youtube.com/watch?v=UZ6FEBrFxzw) Problems sorting out the VBA information you just learned? Get the 100% FREE "VBA Crash Course" Manual NOW At http://yourexcelvbatraining.com/ and you'll be signed up for the 12 part VBA Crash Course video training!
Views: 6595 LoeblComServices
How to Use Select Case in sql server
 
05:30
How to Use Select Case in sql server
Views: 443 Sochan Van
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: 36841 Techtud
case sql statement ,Select Case in sql sever,speak khmer
 
08:44
This tutorial show how to use case sql statement or sql case or case when or select case in sql server 2014 with example
Views: 49 Sochan Van
de/case sensitive passwords in oracle database 11g | Ten minute Code
 
04:12
Below Code CONN / AS SYSDBA CREATE USER apple IDENTIFIED BY apple; GRANT dba TO apple; conn apple/[email protected] conn apple/[email protected] SHOW PARAMETER SEC_CASE_SENSITIVE_LOGON / ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON = TRUE / ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON = FALSE SELECT username, password_versions FROM dba_users;
Views: 60 Together Oracle
SQL - Case When
 
00:58
Query sederhana mengenai case when.
Views: 126 Wisnu Ardiherdiyan
SELECT Statement in Oracle
 
02:42
Oracle Tutorial for beginner
Views: 6 Oracle Tutorial
SAP HANA SQL CASE Expression
 
11:51
You can get any course for $9.99 at Udemy using below links https://www.udemy.com/sap-hana-sql/?couponCode=HAPPY_LEARNING https://www.udemy.com/slt-for-hana/?couponCode=HAPPY_LEARNING https://www.udemy.com/sap-hana-sql-step-2/?couponCode=HAPPY_LEARNING For more details check out http://time4hana.com *** This is the first comprehensive online course on SAP HANA SQL & SQL Scripting *** Welcome to comprehensive SAP HANA SQL & SQL Scripting course. You want to learn how to develop SQL skills on HANA? This course is for you. It is the perfect time to learn HANA technologies. There are a lot of requirement for HANA Developers, as many SAP clients moving from traditional databases to HANA. This comprehensive tutorial teaches required skills to become HANA SQL Developer. This course covers almost all features SQL and SQL Script with real-world example (including Design time objects and Core Data Services) Here are few highlights of the course: 1. Introduce HANA Express Edition (HXE) which is a free HANA Developer version for learning and prototyping purpose. 2. Walk you through steps to set up your HANA studio for the first time. 3. Key HANA concepts (Row store vs Column store and Delta Merge) 4. Multiple sample databases created by us for learning and practice 5. Start with very basic SELECT SQL statements to advanced stored procedures using SQL scripting. 6. Covers each and every keyword of SQL & SQL scripting. 7. More than 5 ways to create a table. 8. Imperative and Declarative statements. 9. Extensive content on SQL scripting. Scalar UDF's Table UDF's Stored Procedures Scripted Calculation views. Table Variables, Input Parameters etc.. 10. Provided detailed explanation on best practices to follow and real world examples. 11. HANA Certification SQL part is covered. 12. Special features like IDENTITY, Dynamic Filters, Exception handling and much more. 13. Development Objects and Design time Objects. 14. Core Data Services (CDS). 15. By end of this course, you will be very confident on SQL & SQL scripting. This is a comprehensive course and we'll keep adding the content when new features available as part of new HANA versions. Please feel free to check out course content to know more about this course.
Views: 2739 Time4 HANA
Sql Server  Using Case Expressions
 
05:14
4. Using Case Expressions
Views: 365 Eagle
SQL Server - Query Table Record Data via TSQL - SELECT CASE STATEMENT
 
03:49
How to use the CASE statement. This tutorial covers how to use the case statement logic to alter the appearance of specific query result return values.
Views: 1075 Dave Merton
IIF function in SQL Server
 
04:00
iif function in sql server 2012 iif function in sql server example sql server iif function example In this video we will discuss IIF function in SQL Server. IIF function Introduced in SQL Server 2012 Returns one of two the values, depending on whether the Boolean expression evaluates to true or false IIF is a shorthand way for writing a CASE expression Syntax : IIF ( boolean_expression, true_value, false_value ) Example : Returns Male as the boolean expression evaluates to TRUE DECLARE @Gender INT SET @Gender = 1 SELECT IIF( @Gender = 1, 'Male', 'Femlae') AS Gender Example : Using IIF() function with table data. We will use the following Employees table for this example. SQL Script to create Employees table Create table Employees ( Id int primary key identity, Name nvarchar(10), GenderId int ) Go Insert into Employees values ('Mark', 1) Insert into Employees values ('John', 1) Insert into Employees values ('Amy', 2) Insert into Employees values ('Ben', 1) Insert into Employees values ('Sara', 2) Insert into Employees values ('David', 1) Go Write a query to display Gender along with employee Name and GenderId. We can achieve this either by using CASE or IIF. Using CASE statement SELECT Name, GenderId, CASE WHEN GenderId = 1 THEN 'Male' ELSE 'Female' END AS Gender FROM Employees Using IIF function SELECT Name, GenderId, IIF(GenderId = 1, 'Male', 'Female') AS Gender FROM Employees Text version of the video http://csharp-video-tutorials.blogspot.com/2015/10/iif-function-in-sql-server.html Slides http://csharp-video-tutorials.blogspot.com/2015/10/iif-function-in-sql-server_14.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: 33345 kudvenkat
SQL Server Case on Select Queries with Else Command DB
 
02:18
MS SQL Server Case on Select Tables Queries Database with Else Command Line DB.
Views: 36 Saidah Faulia
The SQL EXISTS clause
 
08:52
How to use the EXISTS clause in SQL. For beginners.
Views: 23229 Database by Doug
How to use the Oracle SQL Searched CASE Expression
 
01:13
Learn Oracle SQL searched CASE comparisons. Note that DECODE only supports equality comparisons, but searched CASE supports IN, BETWEEN, LIKE and scalar functions!
Views: 280 SkillBuilders
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: 87422 kudvenkat
Oracle SQL Developer: Query Builder Demo
 
08:13
How to build queries with your mouse versus the keyboard. 2018 Update: If you'd like to see how to convert your Oracle style JOINS to ANSI style (in the FROM vs the WHERE clause) see this post https://www.thatjeffsmith.com/archive/2018/10/query-builder-on-inline-views-and-ansi-joins/
Views: 73715 Jeff Smith
Oracle SQL Developer Tutorial For Beginners  14   Basics of a SELECT statement
 
02:39
Oracle SQL Developer Tutorial For Beginners Series. This course introduces Oracle SQL Development for its subscribers. Currently this is based on Oracle 12c. The test environment is in Windows 10.
Views: 3563 Sam Dhanasekaran
SQL Server - Query Table Record Data via TSQL - SELECT CASE statement logic and field concatenation
 
03:26
How to concatenate fields in a query and how to use the CASE statement. This tutorial covers not only how to concatenate two fields but also how to use the CAST() function to convert a numeric field into a text field.
Views: 616 Dave Merton
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: 913622 kudvenkat
Java Beginner 5 - Making Decisions, if, select case
 
09:41
http://www.TechEdGuru.com provides tutorials on various programming topics such as Java, .NET, OOAD, PHP, Perl, Visual Basic, Excel VBA. We offer professional development courses in Programming. Our instructors have over fifteen years of university teaching experience, as well as the practical programming experiences of working in Silicon Valley. With our professional development programming courses, you are guaranteed individual attention and expert advice.
Views: 3258 TechEdGuru
SQL Case in Select (Arabic)
 
02:52
استعمال الاختيارات في عملية الاستعلام
Views: 193 Waheed Alsayer
MySQL Beginner Tutoiral: SELECT AVG and SELECT CASE
 
07:39
In this tutorial I'll show you how to use SELECT CASE statements in MySQL to query through databases. Countries By Population database (not mine): https://gist.github.com/pamelafox/ad4f6abbaac0a48aa781#file-countries_by_population-sql-L7
Views: 538 Phobic Programming
Example of Using a Case Statement in Oracle Database
 
00:38
Example of Using a Case Statement in Oracle Database
Views: 474 Theodore Timpone
if then else select case
 
09:48
The grades problem made for Year3 Prep National schools Mr Sameh Hassan 01005393189
Views: 159 Hisho Bisho
SQL SERVER AULA 04- SELECT CASE
 
09:29
Fala pessoal! Nessa aula vamos falar da palavra reservada do SQL SERVER chamada 'CASE'. 01. Arquivos usados na aula https://1drv.ms/f/s!AtfoYwaHB4QxhJ08Xxl1qnXT-6hYhA
Views: 1205 Fabio.NET
Oracle SQL, PL/SQL, Select Kullanımı ve Eğitimi 2 - Select, min, max, sum, count, avg, having
 
05:57
Oracle SQL, PL/SQL, Select Kullanımı ve Eğitimi 2 -Select, min, max, sum, count, avg, having, oracle select statement, oracle select education, PL/SQL Select, min, max, sum, count, avg, having, PL/SQL Beğendiyseniz Beğen Butonuna basmayı ve Abone olarak destek olmayı unutmayın.
Views: 192 Taner TOPCU
Select Case,គណនានិទេសរបស់និស្សិត
 
34:55
Select Case,គណនានិទេសរបស់និស្សិត
Views: 32 Deland Technology
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: 144 PDQ.com
Oracle Final Revision - Part 5 تعليم أوراكل
 
14:28
by Mohamed El Desouki - محمد الدسوقى [email protected] Tel :00966 553450836 جامعة سلمان بن عبدالعزيز- السعودية - الخرج Final Revision. مراجعة شاملة على كل ما تم دراسته بالسلسلة Text Book: Fundamentals of Database Systems, 5th Edition, by Elmasri/Navathe, published by Addison-W oracle create table statement oracle drop table statement oracle constraints database constraints primary key constraint foreign key constraint check constraint null not null constraint unique constraint insert into statement update statement delete statement select statement basic query where clause select where Like '%' Like '_' select where Like aggregate functions summary functions group by group by with aggregate functions
SelectTec | Aula Nº 6 | Order by - Oracle SQL Developer
 
04:39
order by syntax: select * from tabela order by 1; select * from tabela order by 1,2; select coluna1,coluna2 from tabela order by coluna1 desc; select coluna1,coluna2 from tabela order by coluna2,coluna1 asc;
Views: 5040 SelectTec
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: 172959 Joes2Pros SQL Trainings
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: 21708 Joey Blue
SQL Server join :- Inner join,Left join,Right join and full outer join
 
08:11
For more such videos visit http://www.questpond.com Also watch Learn Sql Queries in 1 hour :- https://www.youtube.com/watch?v=uGlfP9o7kmY See our other Step by Step video series below :- Learn Angular tutorial for beginners https://tinyurl.com/ycd9j895 Learn MVC Core step by step :- http://tinyurl.com/y9jt3wkv Learn MSBI Step by Step in 32 hours:- https://goo.gl/TTpFZN Learn Xamarin Mobile Programming Step by Step :- https://goo.gl/WDVFuy Learn Design Pattern Step by Step in 8 hours:- https://goo.gl/eJdn0m Learn C# Step by Step in 100 hours :- https://goo.gl/FNlqn3 Learn Data structures & algorithm in 8 hours :-https://tinyurl.com/ybx29c5s Learn SQL Server Step by Step in 16 hours:- http://tinyurl.com/ja4zmwu Learn Javascript in 2 hours :- http://tinyurl.com/zkljbdl Learn SharePoint Step by Step in 8 hours:- https://goo.gl/XQKHeP Learn TypeScript in 45 Minutes :- https://goo.gl/oRkawI Learn webpack in 50 minutes:- https://goo.gl/ab7VJi Learn Visual Studio code in 10 steps for beginners:- https://tinyurl.com/lwgv8r8 Learn Tableau step by step :- https://tinyurl.com/kh6ojyo Preparing for C# / .NET interviews start here http://www.youtube.com/watch?v=gaDn-sVLj8Q In this video we will try to understand four important concepts Inner joins,Left join,Right join and full outer joins. We are also distributing a 100 page Ebook ".Sql Server Interview Question and Answers". If you want this ebook please share this video in your facebook/twitter/linkedin account and email us on [email protected] with the shared link and we will email you the PDF.
Views: 861322 Questpond
SQL  Case statement
 
05:59
שאילתות מורכבות ב-SQL-Server דוגמא ל Case-statement וכיצד ניתן להשתמש בו
Views: 39 Amir Yizhaki
SQL Date Comparison - How to filter Datetime in SQL Server - SQL Training Online
 
08:41
http://www.sqltrainingonline.com SQL Date Comparison - How to filter Datetime in SQL Server - SQL Training Online In this video, I show you how to do a SQL Date Comparison in SQL Server when your Datetime has an actual time in it. I also include the latest trick that will make this easier if you are using SQL Server 2008 or SQL Server 2012. How do you compare a Datetime in SQL Server? A SQL Datetime stores both Date and Time. So when you are filtering using the SQL Where clause, you have to know if you Datetime is storing the time also. Let's take a look at the employee table in SQL Training Online Simple DB The column we are looking at is the hire date. I want to go after the person who was hired on February, 22 2005. So, I use the following SQL. select * from employee where hire_date='02/22/2005' Now, this works because we don't have any times stored in this column. But, if I change the record from 2005-02-22 00:00:00.000 to 2005-02-22 08:22:25.000 and rerun the query, you see that I don't get any results. That is because the value of 02/22/2005 is really 2005-02-22 00:00:00.000 and I just changed the hire_date to include a time other than 00:00:00.000. So, I have to tweak my query to use a greater than and less than sign. This works. But, to really understand what is going on, let me show you what SQL Server really sees. There are other ways, and in this StackOverflow article you can read more about these other ways. But, I want to point out a few. If you are working in SQL Server 2005 or earlier, the following is supposed to be the fastest performing way to do this. select datediff(dd,0, hire_date),* from employee where dateadd(dd,0, datediff(dd,0, hire_date)) = '2005-02-22' But, if you are working in SQL Server 2008 or SQL Server 2012, they have introduced an actual Date datatype that doesn't include the Time portion. Since this is the case, you can use the CAST function to remove the time from the Datetime. Here is the SQL to do that. select * from employee where CAST(hire_date AS Date) = '2005-02-22' And that's it. 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: 29337 Joey Blue
Oracle developer 11g Session 3 Very Important Using the ( Decode + Case When + Group Functions )
 
59:07
Support my fan Please https://www.facebook.com/Learnoraclewithward Very Important choose Settings and choose Quality 720p HD To Watch High Quality , Download also High Quality
Views: 4281 Ahmed Ward
QBasic Tutorials for beginners || Conditional Statements (SELECT CASE)
 
07:29
Conditional statements SELECT CASE one of the if else like statements execute when it select related statements.
Views: 178 Bikky Mahat
SelectTec | Aula Nº 24 | Count - Oracle SQL Developer
 
04:38
Count Syntax: select count(*) from tabela; select count(coluna) from tabela;
Views: 1506 SelectTec
Select Case In Vbscript Tamil
 
08:03
Select Case In Vbscript
Views: 234 Tutor Joe's Stanley
Oracle Final Revision - Part1 تعليم أوراكل
 
13:01
by Mohamed El Desouki - محمد الدسوقى [email protected] Tel :00966 553450836 جامعة سلمان بن عبد العزيز - السعودية - الخرج Final Revision on SQL . مراجعة شاملة على ماتم دراسته خلال السلسلة Text Book: Fundamentals of Database Systems, 5th Edition, by Elmasri/Navathe, published by Addison-W oracle create table statement oracle drop table statement oracle constraints database constraints primary key constraint foreign key constraint check constraint null not null constraint unique constraint insert into statement update statement delete statement select statement basic query where clause select where Like '%' Like '_' select where Like aggregate functions summary functions group by group by with aggregate functions