C++ || STL || standard template libraries

Image
                                       C++ STL  1.      Pair :  Syntax :      pair <int,char> p1;     it creates a pair {2,'c'} like this.           pair <int,int> p2;     it creates a pair {2,3} like this .  Basic Code :  #include <bits/stdc++.h> using namespace std; int main() {     // cout<<"hello world\n";     pair <int,int> p1 = {1,2};     cout<<p1.first<< " "<< p1.second<<endl;          pair <int, pair<int ,char>> p2 = {1,{2,'c'}};     cout<<p2.first<<" "<<p2.second.first<<" "<<p2.second.second<<endl;          pair <int,int> arr[] = {{2,3},{4,5},{6,7}};     cout...

Product Sales Analysis I || Leetcode SQL solution || Easy SQL query ✅✅✅💯💯💯🔥🔥🔥

                                   1068. Product Sales Analysis I 

                          || Leetcode SQL solution ||  Easy SQL query ||






Link for Question : - product sales analysis 1

SQL query :-

# Write your MySQL query statement below
select product.product_name,sales.year,sales.price
from sales inner join product 
on sales.product_id = product.product_id 
order by product.product_name asc;

Comments

Popular posts from this blog

1050. Actors and Directors Who Cooperated At Least Three Times || Leetcode sql solution || Simple and Easy Approach || ✅✅✅✅💯💯💯🔥🔥🔥🔥

Power of Millets || Happy And Healthy Life

Typing Lesson PART-3