Most Common Sql Interview Questions 3 | SQL Advanced Questions | Ashutosh Kumar

Опубликовано: 21 Январь 2025
на канале: Ashutosh Kumar
1,644
57

Sql one of the most important language asked in most of the analytics interviews, in this i will be solving sql questions which was asked to me in one of the company.

1)

drop table if exists table1;
CREATE TABLE table1( seat_id INT, free int);

INSERT INTO table1(seat_id,free)
VALUES('1','1'),
('2','0'),
('3','1'),
('4','1'),
('5','1');

2)

drop table if exists table2;
CREATE TABLE table2( id int, name varchar(200), gender varchar(200), salary int );

INSERT INTO table2(id,name,gender,salary)
VALUES
('1',' A ',' m ','2500'),
('2',' B ',' f ','1500'),
('3',' C ',' m ','5500'),
('4',' D ',' f ','500');

3)

drop table if exists table3;
CREATE TABLE table3( material varchar(200),type varchar(200),weight integer);

INSERT INTO table3(material ,type,weight)
VALUES
('H3','Heavy','52'),
('H2','Heavy','53'),
('H1','Heavy','54'),
('H5','Heavy','54'),
('H4','Heavy','58'),
('L4','Light','15'),
('L2','Light','19'),
('L1','Light','20'),
('L3','Light','22');

4)

drop table if exists table7;
CREATE TABLE table7( product_id integer,store1 integer,store2 integer,store3 integer);

INSERT INTO table7( product_id ,store1 ,store2 ,store3)
VALUES
('0','95','100','105'),
('1','70',null,'80');

👉 Complete playlist on Advanced Sql
   • Advanced Sql Concepts  

👉 Complete playlist on Sql Interview questions and answers
   • HackerRank SQL problems and solution  

---------------------------------------------------------------------------------------------------------------------
Check out some more relevant content here

👉 Complete sql course from beginner to advance-
   • The Ultimate SQL Course for Beginner'...  

👉 How to Learn SQL
   • How to learn sql for beginners | Step...  

👉 How to become a business analyst complete roadmap-
   • Business Analyst Complete Roadmap in ...  

👉 How to become a data analyst complete roadmap-
   • Data Analyst Complete Roadmap in 2022...  

👉 Top 3 you tube channels to learn sql for free for beginners
   • Video  

👉 Rank ,Dense Rank, Row Number in sql -
   • RANK - DENSE RANK - ROW NUMBER IN SQL  

👉 Data types in sql-
   • Data types in Sql - SQL  

____________________________________________________________________

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/1FA...

Why you should definitely fill the analytics job updates google form -    • Job Openings into business analyst da...  

_______________________________________________________________________
Connect with me


📸Instagram -   / ashutosh.analytics  
💻Linkedin-   / 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