Video Discription |
Sql one of the most important language asked in most of the analytics interviews,in this series i have discussed some advanced level sql concepts that are frequently asked in data analyst,business analyst interviews. In this video i have covered non equi joins concepts in sql
πQuery -
drop table if exists order_summary;
CREATE TABLE order_summary(orderid integer,amount integer,quantity integer);
INSERT INTO order_summary(orderid,amount,quantity)
VALUES (1,4922,8),
(2,7116,8),
(3,1206,4),
(4,2841,7),
(5,2522,2),
(6,5084,3),
(7,6680,4),
(8,8123,7),
(9,6015,2),
(10,4092,3),
(11,7224,2),
(12,7679,8),
(13,1303,2),
(14,5185,7),
(15,2139,8);
drop table if exists customer;
CREATE TABLE customer(cust_id integer,cust_first_name text,cust_last_name text);
INSERT INTO customer(cust_id,cust_first_name,cust_last_name)
VALUES (1,'Henry','Brown'),
(2,'James','Williams'),
(3,'Jack','Taylor');
drop table if exists orders;
CREATE TABLE orders(order_id integer,date date,cust_id integer);
INSERT INTO orders(order_id,date,cust_id)
VALUES
(1,'05-08-2020',1),
(2,'04-08-2020',2),
(3,'03-08-2020',3),
(4,'04-08-2020',1),
(5,'05-08-2020',2),
(6,'05-08-2021',3),
(7,'04-08-2021',1),
(8,'03-08-2021',2),
(9,'04-08-2021',3),
(10,'05-08-2021',2),
(11,'05-08-2022',1),
(12,'04-08-2022',2),
(13,'03-08-2022',3),
(14,'04-08-2022',1),
(15,'05-08-2022',2);
select * from orders;
select * from order_summary;
select * from customer;
π Complete playlist on Sql Interview questions and answers
https://youtube.com/playlist?list=PLbTF1OfX62c3VFYy8aj9e07W7RouhzNMQ
---------------------------------------------------------------------------------------------------------------------
Check out some more relevant content here
π How to Learn SQL
https://youtu.be/OQcFaPUu6WE
π How to become a business analyst complete roadmap-
https://www.youtube.com/watch?v=83tPvl450F4
π How to become a data analyst complete roadmap-
https://www.youtube.com/watch?v=FqlzEJ0qdAk&t=1s
π Top 3 you tube channels to learn sql for free for beginners
https://www.youtube.com/watch?v=z_9Ft4gMk0k&t=1s
π Rank ,Dense Rank, Row Number in sql -
https://www.youtube.com/watch?v=PwYfGF07EfA
π Cross join in sql
https://www.youtube.com/watch?v=Ke0kzJG4ljU
π union join in sql
https://www.youtube.com/watch?v=ldid4rqd2xw&t=1s
π left join in sql
https://www.youtube.com/watch?v=ssMjUdMkh9w
π Right join in sql
https://www.youtube.com/watch?v=QnnUclUqUqA
π Inner join in sql
https://www.youtube.com/watch?v=WcYbs-A9CHU&t=1s
π Introduction to tables and databases in sql -
https://www.youtube.com/watch?v=Ys9WTXRzOoY&t=1s
π Aggregate Function in sql
https://www.youtube.com/watch?v=OpAfWSyc2Jw
π Functions in sql-
https://www.youtube.com/watch?v=Zb00gZ7TM54
π String Function in sql
https://www.youtube.com/watch?v=_4L18EnlJ1g
π CRUD operations in sql
https://www.youtube.com/watch?v=DWpclQ_D0HI
π Autoincrement in sql
https://www.youtube.com/watch?v=kR7sVWEsJnQ
π Primary Key in sql-
https://www.youtube.com/watch?v=RTyzieEwQjw
π Null and Default values in sql-
https://www.youtube.com/watch?v=TIgtFe9Nr-0
π Data types in sql-
https://www.youtube.com/watch?v=7r3DPnbGX0g&t=1s
____________________________________________________________________
Fill the form below to subscribe yourself to the analytics jobs mailing list to receive regular job opening updates - https://docs.google.com/forms/d/e/1FAIpQLSdT6-6XGaVR_WaCP-TkfdMF-z6G_T9tBDzQp8L-14S3y_xREw/viewform
Why you should definitely fill the analytics job updates google form - https://youtube.com/shorts/WcKg3pFYujM?feature=share
_______________________________________________________________________
Connect with me
πΈInstagram - https://www.instagram.com/ashutosh.analytics
π»Linkedin- https://www.linkedin.com/in/ashutoszh
_____________________________________________________________________
Comment down if you have any doubts
Please leave a LIKE π and SUBSCRIBE β€οΈ to my channel to receive more amazing content in data analytics and data science.
_____________________________________________________________________
π·οΈ Tags
sql,
sql for data science,
sql for data analytics,
sql practise questions,
sql practise questions and solutions,
sql tutorials for beginners,
sql problems for data engineers,
ashutosh,
ashutosh kumar,
ashutosh kumar analytics,
sql problems easy,
sql problem medium,
sql problems hard,
sql window functions,
sql advanced questions,
rank functions in sql,
lag lead in sql,
sql interview questions and answers,
sql interview questions,
sql questions asked in interviews,
hackerrank sql solutions,
hackerearth sql solutions,
leetcode sql solution
π·οΈHashTags
#sql #interviews #questions #solutions |