Home
Search results “Month year sql oracle”
Query to Find Employee hired in last n month & year
 
12:17
Hi guys today its very important tpoic in sql how to find the last employee who hired in last month and years. #lastnmonth&year Oracle database Unbeatable,Unbreakable Platform..
Views: 2508 Oracle World
oracle date and time functions
 
21:33
Video from our Oracle SQL course. Check out the full course at.. http://learn.hackpress.co/courses/oracle-sql-learning-by-example
Views: 46337 etldeveloper
Dates, Times and Intervals in Oracle - The INTERVAL Year to Month Literal
 
04:38
This video clip, on the INTERVAL YEAR TO MONTH Literal, is taken from my www.pluralsight.com course "Introduction to Dates and Times in SQL Server". Click here to learn more about this course: http://www.pluralsight.com/courses/intro-dates-times-intervals-oracle?utm_source=youtube&utm_medium=video&utm_campaign=authordemo.
Views: 1930 sheepsqueezersYT
SQL Tutorial - SQL DATE Functions like GETDATE, DATEADD, CONVERT
 
09:54
http://www.learningsqlserver2008.com/ https://youtu.be/KmsmPOImpHo - Date functions in SQL Server 2012 GETDATE -- Today's date DATEADD - adding time interval to an existing Date DATEPART - return part of the date like year or month DATEDIFF - Give you the different between two dates DAY - returns the day of the month MONTH - return the Month of the Year YEAR - returns the year in the Sql expression CAST - Converts an expression of one data type to another in SQL Server 2008 R2 CONVERT - Convert expressions of one data type to another in sql server r2 SQL Tutorial
Views: 62351 baghul
Year-to-Date using Partition By with Windowing - SQL Training Online
 
05:43
You can use the Partition By Function in SQL Server to get a Year-to-Date and Month-to_Date calculation. In this video I show you how to create a Year-to-Date value using the Windowing Partition By Function in TSQL. READ THE ORIGINAL ARTICLE WITH SQL SCRIPTS HERE http://www.sqltrainingonline.com/year-to-date-using-the-partition-by-function-with-windowing-in-sql-server/ YOUTUBE NEWS UPDATES http://www.youtube.com/user/sqltrainingonline VISIT SQLTRAININGONLINE.COM FOR TONS MORE VIDEO NEWS & TIPS http://www.sqltrainingonline.com SUBSCRIBE FOR OTHER SQL TIPS AND NEWS! http://www.youtube.com/subscription_center?add_user=sqltrainingonline SUBSCRIBE TO OUR EMAIL LIST! http://www.sqltrainingonline.com LET'S CONNECT! Google+: http://gplus.to/SQLTrainingOnline Facebook: http://facebook.com/SQLTrainingOnline Twitter: http://twitter.com/sql_by_joey Linkedin: http://linkedin.com/in/joeyblue SQLTrainingOnline: http://www.sqltrainingonline.com
Views: 2953 Joey Blue
Part 5   SQL query to find employees hired in last n months
 
04: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/05/part-5-sql-query-to-find-employees.html This question is asked is many sql server interviews. If you have used DATEDIFF() sql server function then you already know the answer. -- Replace N with number of months Select * FROM Employees Where DATEDIFF(MONTH, HireDate, GETDATE()) Between 1 and N
Views: 179264 kudvenkat
Should you become an SQL Developer in 2019?
 
04:27
My 2019 videos on coding are coming out! Is SQL development a viable job in 2019? How does it compare to other types of development like Python programming or web programming and development? My popular courses: Learn web development fast: https://shop.killervideostore.com/ Learn Python 3 fast: http://www.killervideostore.com/python/ My business courses: Complete Freelancer: https://www.killervideostore.com/freelancer Complete Entrepreneur: https://www.killervideostore.com/video-courses/complete-entrepreneur.php My social links: Instagram: https://www.instagram.com/stefanmischook/?hl=en Twitter: https://twitter.com/killersites Thanks! Stef #sqldeveloper #sqldevelopercareer #developerjob
Views: 7124 Stefan Mischook
MySQL 33 - Datetime, Date, Time Data Types
 
06:40
Next up on our MySQL to-do list is to learn about storing dates and times. There are various data types in MySQL for storing dates and times. It seems MySQL and databases likes to break everything up into multiple data types to make things more organized at the consequence of being confusing and annoying. This video is going to be talking about the DATETIME, DATE, and TIME data types. These are all used to store, you guessed it, dates and times. The one you choose depends on your needs. If you just need dates, choose DATE. If you just need times, choose TIME, if you need both stored together, choose DATETIME. Now you set a column one of these data types whenever you want every row for this field to have some sort of date, time or both…but how exactly is the data formatted? This requires us to understand some convention. For example, in the USA at least, if you have something like 4:30AM, by convention you know the hour is 4 and the minutes are 30. But this is just an agreed upon convention. MySQL has its own convention…For example 2017-02-02. The first thing is the year, the second is the month, and the third is the day. That is for the DATE. The convention for time is 22:54:30. The first is the hour (military time), the second is the minute, and the third is the seconds. Lastly, there can actually be fractions of seconds…up to microseconds! .123456. To use fractional seconds though you must specify to MySQL the precision of the TIME or DATETIME when you create it, for example DATETIME(6) would allow microsecond precision. How do you actually give a date to MySQL? By that I mean let's say you have a table with a column of DATETIME(6), and you want to give a value for that column, how do you format it? It's quoted. For example: '2017-02-02 22:54:30.333333' MySQL interprets this as a DATETIME. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Support me! 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: 36788 Caleb Curry
Oracle || Date functions Part-1 by dinesh
 
17:06
DURGASOFT is INDIA's No.1 Software Training Center offers online training on various technologies like JAVA, .NET , ANDROID,HADOOP,TESTING TOOLS ,ADF,INFORMATICA,TABLEAU,IPHONE,OBIEE,ANJULAR JS, SAP... courses from Hyderabad & Bangalore -India with Real Time Experts. Mail us your requirements to [email protected] so that our Supporting Team will arrange Demo Sessions. Ph:Call +91-8885252627,+91-7207212428,+91-7207212427,+91-8096969696. http://durgasoft.com http://durgasoftonlinetraining.com https://www.facebook.com/durgasoftware http://durgajobs.com https://www.facebook.com/durgajobsinfo......
ORACLE: How to extract YEAR from date ?
 
00:50
Available for any version of Oracle Database.
Views: 167 1Click2beDBA
DateTime functions in SQL Server   Part 25
 
15:26
In this video we will learn about different DateTime data types, and different date time functions in sql server. We will also understand the difference between terms UTC (Coordinated Universal Time) and Time Zone offset. Text version of the video http://csharp-video-tutorials.blogspot.co.uk/2012/09/datetime-functions-in-sql-server-part-25.html Slides http://csharp-video-tutorials.blogspot.com/2013/08/part-25-datetime-functions-in-sql-server.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: 209087 kudvenkat
SQL Tutorial - 45: Date & Time Functions (Part-1)
 
05:15
In this tutorial we'll see how we can add dates, subtract dates, view current date and current time using ADDDATE(), SUBDATE(), CURDATE() and CURTIME Functions respectively.
Views: 36081 The Bad Tutorials
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: 177783 Joes2Pros SQL Trainings
Learn Oracle | How to use the Character Functions, Date Functions in SQL
 
14: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: 2451 Pebbles Tutorials
add months in sql
 
02:03
Views: 72 asim
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: 324624 ProgrammingKnowledge
Oracle SQL Tutorial - Date column in where condition
 
07:43
In this video, we will see how to use date fields or date columns in sql where condition. SQL's used in this video are given below. All employees hired in the month of August across years select * from employees where to_char(hire_date,'MM') = '08';
Views: 10 Ganesh Anbarasu
GROUP BY with Aggregate functions in SQL statement
 
25:01
Using "GROUP BY" clause with Aggregate functions in SQL statement Check the whole "SQL Server Basics" series here: https://www.youtube.com/playlist?list=PLU9JMEzjCv14f3cWDhubPaddxRvx1reKR Check my SQL blog at: http://sqlwithmanoj.com/ Check my SQL FB Page at: https://www.facebook.com/sqlwithmanoj
Views: 43218 SQL with Manoj
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: 30596 Joey Blue
Sql date interview questions
 
10:59
In this video we will discuss the common date related sql interview questions and answers. If you are comfortable with the SQL Date functions, then you should be able to easily answer most of these questions. Text version of the video https://csharp-video-tutorials.blogspot.com/2018/11/sql-date-interview-questions.html Slides https://csharp-video-tutorials.blogspot.com/2018/11/sql-date-interview-questions-slides.html SQL Server Interview Questions and Answers https://www.youtube.com/playlist?list=PL6n9fhu94yhXcztdLO7i6mdyaegC8CJwR SQL Server Interview Questions and Answers - Text Articles & Slides http://csharp-video-tutorials.blogspot.com/2014/05/sql-server-interview-questions-and.html Angular, JavaScript, jQuery, Dot Net & SQL Playlists https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd It is also useful to understand SQL CAST & CONVERT functions. We discussed DATE, CAST & CONVERT functions in Parts 25 to 28 in our SQL Server Tutorial. After watching this video you should be able to answer any sql date interview questions similar to the following. Write a SQL query to get 1. All people who are born on a given date (For example, 9th October 2017) 2. All people who are born between 2 given dates (For example, all people born between Nov 1, 2017 and Dec 31, 2017) 3. All people who are born on the same day and month excluding the year (For example, 9th October) 4. All people who are born yesterday, today, tomorrow, last seven days, and next 7 days 5. All people whose birth year is the same (For example, all people born in 2017, 2018 etc.) Once you are comfortable answering these questions you can extend the concepts you have learned to answer similar questions like the following. 1. Orders placed between 2 given dates or on a given day, month, year etc. 2. Customers gained or lost. 3. Employees joined or left etc.
Views: 11044 kudvenkat
Careers and Training courses for SQL | SQL Developers are one of the highest paid employees in India
 
04:46
Get Recruitment Notifications of all private and govt jobs , Mock test details ,Previous year question papers only at Freshersworld.com – the No.1 jobsite for entry level candidates in India. (To register : http://freshersworld.com?src=Youtube ) – This video is all about “Careers and Training courses for SQL What actually it is SQL is a standard language for accessing and manipulating databases. What is SQL? • SQL stands for Structured Query Language • SQL lets you access and manipulate databases • SQL is an ANSI (American National Standards Institute) standard ________________________________________ What Can SQL do? • SQL can execute queries against a database • SQL can retrieve data from a database • SQL can insert records in a database • SQL can update records in a database • SQL can delete records from a database • SQL can create new databases • SQL can create new tables in a database • SQL can create stored procedures in a database • SQL can create views in a database • SQL can set permissions on tables, procedures, and views ________________________________________ Which companies are looking for this 1) DELL 2) J.P. Morgan 3) GOOGLE 4) NETCRACKER 5) and many more companies are looking for the same. Best way to learn this course There is a lot of material online and it is actually very difficult to separate the good from the bad. It is about dividing the task of "learning SQL" into a concrete set of actions followed by hand-picking of the material that suits your temper. 1. Database fundamentals: Spend some time on looking what a database is - understand how it works (what is a 'key'? what type of roles exist in a database? what is a table? etc.). 2. Relational databases: Relational databases are probably the most used database organization. It is fairly easy to comprehend so give it a couple of hours. 3. Data types: If you know nothing about data types - (If you cannot answer questions like what is a numeric(0,2)? or what is a string?) then you should definitely look into fundamentals about data types. Understanding the data types in SQL Server. 4. Joins methodology: Understanding how data-sets can be joined across tables and how you extract data. 5. Download SQL Server Express: Download the free version of MS SQL and create a database on your local computer. Salary after doing this course The average SQL Developer salary is $73,345 per year or $38 per hour. This is around 2.5 times more than the Median wage of the country. Entry level positions start at $51,000 while most experienced workers make up to $103,000. Related jobs Average salary Microsoft Server Developer $97,500 Developer Stored Procedures $70,000 Net Sql Developer $70,000 Lead Sql Developer $37,112 SQL Developer Salary(India) The average salary for a SQL Developer is Rs 372,127 per year. People in this job generally don't have more than 10 years' experience. Experience strongly influences pay for this job. Growth after getting job SQL (Structured Query Language) will be among the most desirable job skills in the years ahead. Surprisingly, it is also among the easiest to learn. Here's why: • All computerized businesses — from global banks to small town bakeries — need to have a database, almost all of which are managed using SQL.1 • SQL consistently ranks at — or very near — the top of the most in-demand IT skills.2 • SQL developers take home an average salary of $92,0003 and enjoy very bright career prospects. If this sounds awesome to you, then buckle up and start learning SQL basics! Freshersworld.com is the No.1 job portal for freshers jobs in India. Check Out website for more Jobs & Careers. http://www.freshersworld.com?src=Youtube Download our app today to manage recruitment when ever and where ever you want : Link :https://play.google.com/store/apps/details?id=com.freshersworld.jobs&hl=en ***Disclaimer: This is just a training video for candidates and recruiters. The name, logo and properties mentioned in the video are proprietary property of the respective organizations. The Preparation tips and tricks are an indicative generalized information. In no way Freshersworld.com, indulges into direct or indirect promotion of the respective Groups or organizations.
IsDate, Day, Month, Year and DateName functions in SQL Server in arabic
 
10:53
Text version of the video http://csharp-video-tutorials.blogspot.com/2012/09/isdate-day-month-year-and-datename.html Slides http://csharp-video-tutorials.blogspot.com/2013/08/part-26-datetime-functions-continued.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: 670 kudvenkat.arabic
Cast and Convert functions in SQL Server   Part 28
 
17:26
In this video we will learn, converting one data type to another using cast() and convert() functions. We will also learn how to use the style parameter, with convert() function. Finally we will look at a practical example of using CAST or CONVERT functions, along with group by. We will also talk about the differences between CAST and CONVERT functions and when to choose one over the other. Text version of the video http://csharp-video-tutorials.blogspot.com/2012/09/cast-and-convert-functions-in-sql.html Slides http://csharp-video-tutorials.blogspot.com/2013/08/part-28-cast-and-convert-functions.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: 183464 kudvenkat
ORACLE: How to extract MONTH from DATE ?
 
00:50
Available for any version of Oracle Database.
Views: 22 1Click2beDBA
SQL 058 Data Types, Time Interval Data, Year-Month Intervals
 
01:24
Explains the Time Interval data types, Year-Month. From http://ComputerBasedTrainingInc.com SQL Course. Learn by doing SQL commands for ANSI Standard SQL, Access, DB2, MySQL, Oracle, PostgreSQL, and SQL Server.
Views: 986 cbtinc
SQL 38, Extract Function be42.flv
 
01:16
SQL extract example
Views: 860 hammadshams
SDU Tools 34   Calculate start and end of Financial Year dates in T-SQL
 
02:14
SDU Tools are free tools for SQL Server developers and DBAs. This tool is used to calculate the start and end dates for financial years, based on any input date. It allows you to specify the month that your financial year starts. You'll find more info about SDU Tools and download details at http://www.sqldownunder.com/Resources/SDUTools
Views: 251 SQL Down Under
How to calculate date,year,moth,week from date in sql server  -Sql Server
 
02:11
How to calculate date,year,moth,week from date -Sql Server
Views: 2465 GoPro
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: 199513 kudvenkat
Filter by Day,Month,Year from MySQL date/time
 
07:24
This tutorial shows How to get only Year from MySQL date/time In my MySQL server, I have rows that have the date of my created content. Example: 2013-03-17 02:53:47. Step 1:now i want get maximum roolno for every year if that year have no rool number it should give me maxmimum value as 1 Step:2:my current year is '2015' so its return me maximum rollno of year 2015 Step 3:so in this year im not have any record so i add one condition to return me as 1 if rollno not exist
Views: 17197 Go Freelancer
Date Functions (Introduction to Oracle SQL)
 
05:48
Learn what date functions are and see some examples of them. The full Introduction to Oracle SQL course is available here: https://www.databasestar.com/introduction-to-oracle-sql-course/
Views: 331 Database Star
Sql query to select all names that start with a given letter without like operator
 
03:02
Text Article http://csharp-video-tutorials.blogspot.com/2017/01/sql-query-to-select-all-names-that.html Slides http://csharp-video-tutorials.blogspot.com/2017/01/sql-query-to-select-all-names-that_31.html SQL Server Interview Questions and Answers text articles & slides http://csharp-video-tutorials.blogspot.com/2014/05/sql-server-interview-questions-and.html SQL Server Interview Questions and Answers playlist https://www.youtube.com/playlist?list=PL6n9fhu94yhXcztdLO7i6mdyaegC8CJwR 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 In this video we will discuss writing a SQL query to retrieve all student names that start with letter 'M' without using the LIKE operator. If the interviewer has not mentioned not to use LIKE operator, we would have written the query using the LIKE operator as shown below. SELECT * FROM Students WHERE Name LIKE 'M%' We can use any one of the following 3 SQL Server functions, to achieve exactly the same thing. CHARINDEX LEFT SUBSTRING The following 3 queries retrieve all student rows whose Name starts with letter 'M'. Notice none of the queries are using the LIKE operator. SELECT * FROM Students WHERE CHARINDEX('M',Name) = 1 SELECT * FROM Students WHERE LEFT(Name, 1) = 'M' SELECT * FROM Students WHERE SUBSTRING(Name, 1, 1) = 'M'
Views: 63490 kudvenkat
SQL YEAR() Function
 
01:25
The SQL YEAR() is a function, and returns or extract year portion(a four digit number) of a given input date value.
Views: 253 suresh babu
7. How to check for a leap year in Oracle
 
04:56
This video explains you that how you can check whether a year is leap or ordinary year. Oracle is being used as the database. Please watch the previous video before watching this video.
Views: 92 Eduphilics
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: 945215 kudvenkat
SQL YEAR function - how to use SQL YEAR function
 
00:52
The SQL Server YEAR function returns a four-digit year (as a number) given a date value. visit Dose for excel Add-In website: http://www.zbrainsoft.com/ Visit our channel: https://www.youtube.com/channel/UCI4bMWYzrBTs47KINXL92Kw
Calculate running total in SQL Server 2012
 
06:23
running total sql server cumulative total in ms sql server running total column In this video we will discuss how to calculate running total in SQL Server 2012 and later versions. We will use the following Employees table for the examples in this video. 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 SQL Query to compute running total without partitions SELECT Name, Gender, Salary, SUM(Salary) OVER (ORDER BY ID) AS RunningTotal FROM Employees SQL Query to compute running total with partitions SELECT Name, Gender, Salary, SUM(Salary) OVER (PARTITION BY Gender ORDER BY ID) AS RunningTotal FROM Employees What happens if I use order by on Salary column If you have duplicate values in the Salary column, all the duplicate values will be added to the running total at once. In the example below notice that we have 5000 repeated 3 times. So 15000 (i.e 5000 + 5000 + 5000) is added to the running total at once. SELECT Name, Gender, Salary, SUM(Salary) OVER (ORDER BY Salary) AS RunningTotal FROM Employees So when computing running total, it is better to use a column that has unique data in the ORDER BY clause. Text version of the video http://csharp-video-tutorials.blogspot.com/2015/10/calculate-running-total-in-sql-server.html Slides http://csharp-video-tutorials.blogspot.com/2015/10/calculate-running-total-in-sql-server_3.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: 57135 kudvenkat
SQL MONTH() Function
 
01:36
The SQL MONTH() is a function, and return or extract the month value (a whole integer number from 1 to 12) of a given input date value.
Views: 225 suresh babu
Introducción al T-SQL, Fechas y uso de YEAR(), MONTH(), DAY() y ORDER BY - Video 5
 
10:39
Suscribete: http://goo.gl/qfLPCN Web: http://www.codeloverlatino.com Facebook: http://goo.gl/wTR1Lw Mi perfil en Facebook: http://goo.gl/nrr0Vw Twitter: http://twitter.com/JorgeVC24 Google+: http://goo.gl/bjZwVP Vídeo anterior: http://youtu.be/fnr553bFoc4 Instalación Northwind en SQL Server 2008 R2: http://youtu.be/7K90Zk8eBHY Creación de Bases de Datos en SQL Server: http://youtu.be/7DCMbCR7CHI Conexión JAVA - SQL Server con: http://youtu.be/q3J9TJLfKKo Si tienes alguna sugerencia o comentario házmelo saber abajo, dale un ME GUSTA si te sirvió. Gracias! ╔═╦╗╔╦═╦═╦╦╦╦╗╔═╦══╦═╗ ║╚╣║║║╚╣╔╣╔╣║╚╣═╬╗╔╣═╣ ╠╗║╚╝╠╗║╚╣║║║║║═╣║║║═╣ ╚═╩══╩═╩═╩╝╚╩═╩═╝╚╝╚═╝
SQL Review Video 15: SELECT Part 7: GROUP BY
 
07:35
This video introduces the GROUP BY clause to make aggregates more powerful. Filtering grouped and aggregated data is shown using the HAVING sub-clause. It also uses the YEAR and MONTH date functions to illustrate grouping by date fields.
Views: 445 Sven Aelterman
Part 3   How does a recursive CTE work
 
08:12
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-3-how-does-recursive-cte-work.html A lot of you have asked to explain, how a recursive CTE work line by line. If you have not watched Part 2 already, I strongly recommend to watch that video first before proceeding. In Part 2 of SQL Server Interview questions and answers video series we discussed recursive CTE to retrieve the organization hierarchy. Let's now discuss how the CTE executes line by line. Step 1: Execute the anchor part and get result R0 Step 2: Execute the recursive member using R0 as input and generate result R1 Step 3: Execute the recursive member using R1 as input and generate result R2 Step 4: Recursion goes on until the recursive member output becomes NULL Step 5: Finally apply UNION ALL on all the results to produce the final output
Views: 158450 kudvenkat
Updatable views in sql server   Part 40
 
11:38
In this video we will learn about updating a view that is based on one or more base tables. Text version of the video http://csharp-video-tutorials.blogspot.com/2012/09/updateable-views-part-40.html Slides http://csharp-video-tutorials.blogspot.com/2013/09/part-40-updateable-views.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: 164334 kudvenkat
Unique and Non Unique Indexes in sql server   Part 37
 
11:02
In this video we will learn about 1. What is a Unique Index 2. Difference between unique index and unique constraint Text version of the video http://csharp-video-tutorials.blogspot.com/2012/09/unique-and-non-unique-indexes-part-37.html Slides http://csharp-video-tutorials.blogspot.com/2013/09/part-37-unique-non-unique-indexes.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: 214689 kudvenkat
Oracle First Quarter Fiscal Year 2018 Earnings Call
 
52:37
Find more information at http://investor.oracle.com/events-and-presentations/default.aspx
Views: 192 EazieWeezie
Oracle Database Bangla Tutorials 8 :: SQL FUNCTION (Single Row Functions introduction)
 
03:51
www.facebook.com/oracle.shohag email : [email protected] website : www.oraclebangla.com topics : Oracle SQL FUNCTION (Using Single Row Functions to Customize Reports)
Views: 4206 Oracle Bangla
Fully Automatic Tuning: SQL Server 2026’s Most Killer Feature
 
04:28
No, I don't know what the future of SQL Server will look like. But with this month's T-SQL Tuesday prompt I take a guess at where automatic tuning features will be in the year 2026. This episode is a response to this month’s T-SQL Tuesday #100 prompt created by Adam Machanic (http://dataeducation.com/invitation-t-sql-tuesday-100-looking-forward-100-months/). T-SQL Tuesday was created by Adam Machanic (http://dataeducation.com/) and is a way for SQL users to share ideas about interesting topics. This month’s topic is describing an exciting new feature or technology to your audience in June 2026. Related blog post: https://bertwagner.com/2018/03/13/full-automatic-tuning-sql-server-2026s-most-killer-feature/ Follow me on Twitter: https://twitter.com/bertwagner Want to receive my latest weekly blog posts and videos in your inbox? Sign up for the newsletter here: http://eepurl.com/cMkYl1
Views: 188 Bert Wagner