- 584
- 183 221
LearnSQLtoSSIS
เข้าร่วมเมื่อ 16 มิ.ย. 2019
This channel is related to technology and database videos. It is very much useful for beginners who completed studies and searching for Database and ETL-related jobs.
SQL SERVER||How to use DateFromParts value as Default Constraint?
Student:
Student_id
Student_name
Student_Joindate
create table student(student_id int primary key identity(101,1),student_name varchar(20), student_joindate date Default DateFromParts(2024,7,1))
Student_id
Student_name
Student_Joindate
create table student(student_id int primary key identity(101,1),student_name varchar(20), student_joindate date Default DateFromParts(2024,7,1))
มุมมอง: 1
วีดีโอ
SQL SERVER||How to remove non-alphabets in end of column?
มุมมอง 242 ชั่วโมงที่ผ่านมา
Substring Reverse Len Patindex
SQL Queries||How to get Nearest Weekday using T-SQL?
มุมมอง 134 ชั่วโมงที่ผ่านมา
declare @date date=getdate() select CASE WHEN datename(weekday,@date) IN('Saturday') THEN Dateadd(day,2,@date) WHEN datename(weekday,@date) IN('Sunday') THEN Dateadd(day,1,@date) Else @date END AS Nearest_Weekday
SQL Queries||5 ways to get names start with particular letter without LIKE
มุมมอง 2612 ชั่วโมงที่ผ่านมา
LEFT CHARINDEX SUBSTRING BETWEEN LT,GT
SQL SERVER||How to update month in date column?
มุมมอง 3214 ชั่วโมงที่ผ่านมา
Dateadd(interval,int,expr)
SQL SERVER||How to write Case Expression within a Trigger Body?
มุมมอง 3616 ชั่วโมงที่ผ่านมา
More than 20% - Sigfincantly Salary Increase Not More Than 20 % - Salary Increased decreased - Salary Decreased No change - No Change in Salary
SQL Queries||How to extract part of the string from end?
มุมมอง 3419 ชั่วโมงที่ผ่านมา
select Right('Hello World',5) select SUBSTRING('Hello World',LEN('Hello World')-5 1,5) select Reverse(LEFT(REVERSE('Hello World'),5))
SQL SERVER||How to get day name of January 01 every year since 2000 till 2025?
มุมมอง 3021 ชั่วโมงที่ผ่านมา
SQL SERVER||How to get day name of January 01 every year since 2000 till 2025?
SSIS||Two ways to load data into tables when Source data is not in order
มุมมอง 46วันที่ผ่านมา
1. Using SORT transformation and load 2. Make your column of the table as Primary Key and load
SQL Queries||How many ways to get second least sal?
มุมมอง 27วันที่ผ่านมา
select MIN(salary) AS Second_Least_Salary From emp WHERE salary gt ( Select MIN(Salary) From emp) select TOP 1 salary AS Second_Least_Salary From emp WHERE salary gt (Select MIN(Salary) From emp) order by salary select MIN(salary)AS Second_Least_Salary From emp WHERE salary not in (Select MIN(Salary) From emp) select MIN(salary)AS Second_Least_Salary From emp WHERE salary != (Select MIN(Salary)...
SQL SERVER||How to write Case Statement to know today is Weekend Or Weekday?
มุมมอง 2714 วันที่ผ่านมา
select getdate() as Today_Date,datename(dw,getdate()) AS Today_Name, CASE WHEN datename(dw,getdate())='Saturday' THEN 'Weekend' WHEN datename(dw,getdate())='Sunday' THEN 'Weekend' ELSE 'Weekday' END AS Day_Status
Stored Procedures||How to use Dynamic SQL to sort data?
มุมมอง 2114 วันที่ผ่านมา
create procedure getEmpSortDataUsingDynamicSql @sortcolumn varchar(20) AS BEGIN declare @dynamicquery varchar(100) set @dynamicquery = 'select id,name,age,gender,phone_no from emp order by ' @sortcolumn Execute (@dynamicquery) END Exec getEmpSortDataUsingDynamicSql phone_no
SQL SERVER||Select and delete First 'n' Last records when there is no Primary Key
มุมมอง 2614 วันที่ผ่านมา
WITH CTE AS( select *,ROW_NUMBER() OVER(ORDER BY (SELECT NULL))AS rn From customer) select * from cte where rn between 6 and 10 WITH CTE AS( select TOP (2)* From customer) Select * FROM CTE
SQL SERVER||CASE Statement with JOIN
มุมมอง 2814 วันที่ผ่านมา
Select Empid,Empname,DeptName,Salary, CASE WHEN salary GT 50000 THEN 'High Salary' ELSE 'Low Salary' END AS Salary_Range From emp INNER JOIN dept ON emp.deptid=dept.deptid
SQL SERVER||How to identify missing ids in a table?
มุมมอง 2614 วันที่ผ่านมา
WITH MissingIds AS ( select e1.id 1 AS MissingId From Employees e1 LEFT JOIN Employees e2 ON e1.id 1=e2.id WHERE e2.id is null AND e1.id 1 LT (select max(id) from Employees) ) select MissingId from MissingIds
SQL Queries||How to get data after removing last two characters in column?
มุมมอง 1821 วันที่ผ่านมา
SQL Queries||How to get data after removing last two characters in column?
SSIS||How to add Package to the Solution Explorer?
มุมมอง 2721 วันที่ผ่านมา
SSIS||How to add Package to the Solution Explorer?
MySQL||How to Mask User Name Leaving the First Letter?
มุมมอง 1421 วันที่ผ่านมา
MySQL||How to Mask User Name Leaving the First Letter?
SQL Queries||How to Get the Distinct Month Names from a Date Column?
มุมมอง 3121 วันที่ผ่านมา
SQL Queries||How to Get the Distinct Month Names from a Date Column?
SQL SERVER||How to copy data into new table after eliminating duplicate rows in old table?
มุมมอง 3021 วันที่ผ่านมา
SQL SERVER||How to copy data into new table after eliminating duplicate rows in old table?
SSIS||Loading the data by Setting the File Name in Variable using Script Task
มุมมอง 2128 วันที่ผ่านมา
SSIS||Loading the data by Setting the File Name in Variable using Script Task
Stored Procedures||How to write CASE Statement in SP that takes Column Name as Input Parameter?
มุมมอง 3128 วันที่ผ่านมา
Stored Procedures||How to write CASE Statement in SP that takes Column Name as Input Parameter?
SQL Queries||Different ways to get Month Name from Date
มุมมอง 21หลายเดือนก่อน
SQL Queries||Different ways to get Month Name from Date
SQL SERVER||Create a trigger to delete any records from all related tables
มุมมอง 38หลายเดือนก่อน
SQL SERVER||Create a trigger to delete any records from all related tables
SQL Queries||How to get Nth Highest Years of Experience employee from the table?
มุมมอง 42หลายเดือนก่อน
SQL Queries||How to get Nth Highest Years of Experience employee from the table?
SQL SERVER||How to get Domain Name and count of emails using CASE Statement?
มุมมอง 40หลายเดือนก่อน
SQL SERVER||How to get Domain Name and count of emails using CASE Statement?
SSIS||How to Get Month-wise Hired Report From Table?
มุมมอง 39หลายเดือนก่อน
SSIS||How to Get Month-wise Hired Report From Table?
SQL SERVER||How to Fix Error Message 4151?
มุมมอง 38หลายเดือนก่อน
SQL SERVER||How to Fix Error Message 4151?
SQL SERVER||How many ways to handle NULL values?
มุมมอง 33หลายเดือนก่อน
SQL SERVER||How many ways to handle NULL values?
SQL SERVER||How to create trigger to prevent negative values?
มุมมอง 35หลายเดือนก่อน
SQL SERVER||How to create trigger to prevent negative values?
Excellent
Thanks. Please notice that in your video the number of stars does not match the number of characters in the username. For example, for john.doe it should be j******* but in your caes it has 9 stars. You probably need to adjust your replace number with minus 2.
Say for example it wasnt months but a Type that you dont know at runtime. How could you create the folders based on the type and create the file and then write the corresponding data
What about using cascading delete on the foreign key definition
Hi. Are you providing personal teaching ? or work ?
Hi , can't we use proper case in SSIS?
this seems easier: -- Count number of occurences of a value in a string declare @myvar varchar(max), @tocount varchar(20) set @myvar = 'Hello World, Hello World' set @tocount = 'World' select (len(@myvar) - len(replace(@myvar,@tocount,''))) / LEN(@tocount)
very helpful...can u make videos on how to use CASE WHEN with different statement clauses like FROM,ORDER BY, CASE with JOINS...
But that didn't extract the numeric values
Good explanation anna
thanks, here is another approach with cte as ( select 100 as A union all select 200 as A union all select 300 as A union all select 400 as A ) Select max(a) from cte
Wilson Betty Hernandez Mary Young Michelle
Davis Carol White Timothy Robinson Richard
In Recent open i don't have any thing how can i select integration services import
Many thanks for amazing video
good video , but what if i have the date parameters in the sp like fromdate and todate? how to do this?
Thanks for teaching.
What's the point of this ? if a value is 608 then you wouldnt want to remove the zero surely...
Why are you substring'ing CountryCode? At least just ltrim it or on its own
I don't understand.
great
Thank you sir
Thanks for the Article, we can write this way also for same salary employees query select * from Employeedetails a join Employeedetails b on a.Salary=b.Salary and a.Emp_Id!=b.Emp_Id
Thanks but instead of the partition, could you not have just used distinct?
The audio on this is not good, sounds like you're under water
Nice explanation..Thank you
Good videos
I am trying to insert values in my tables and its giving me this error message: ERROR: null value in column "i" violates not-null constraint DETAIL: Failing row contains (null, bar).
That ran in 0 seconds... also why is the join backwards: soh2.salesorderid = soh1.salesorderid
How to copy an SSIS package from one Solution Explorer to another (i mean from one system to another, how to clone all the packages)?
Good video but you are not really using a Stored Proc for the export though...you are using the Import/Export Wizard
Thanks very helpful
Thank you very much sir
but if to replace in all columns ,how to use in one go
Between the audio clipping and the speakers heavy accent, this was very difficult to hear. Nice Try but I'd suggest some post-production audio clean up.
I have a single raw data flat file and I need to validate the total length of the file and load the row length into a sql database table , can you make a video on that 😮😮 great video by the way
Thank you so much, it worked well.
Shame on this video due to the record quality and its all aspects
Dude, do something about your pc fan I barely hear what you're saying.
Thank your for the video. It was helpful :) :).
Thank you very much!
how do I overwrirte the data in the sheet everytime
bro only 720 rows of data only loaded not all the three files data, Please update that.
Hi Anna.I followed your videos daily, it is giving lot of knowledge for who don't know dept of sql.i need your assistance in sql.I have some doubts on optimization of sql query in TSql.where can i reach you .
How can I know that the update was completed successfully?
Thank You
sir insert button duba lo us se theek ho ga cursor apka
after 1 hour of research i got your video which clears my doubt and query ... you are very helpful
Thanks for your feedback
Difficult to understand but somehow I managed to understand the concepts. Thank you.
Thank you for this video