Sql test
Sql test
Q4) Col 1
Col 3 select a.col1, b.col2, c.col3
from A left join b on a.col1 = b.col2
inner join c on b.col2 = c.col3
Col 2 Col 3
Table Name : Prod_table
Month opening inventory is defined by inventory on first available date of the month
2) Write a query to get the inventory for every product on the second last available date of the month
Visitor ID Visit_Date
VisitorA 4/1/2020
VisitorA 4/2/2020
VisitorB 4/5/2020
VisitorB 4/9/2020
VisitorC 4/10/2020
VisitorC 4/11/2020
….. …..
Write a query to identify the number of pages viewed by visitor during a visi
If more than one category page was visited consider the first page and ignor
Visit ID No of Pages
1 2
1 2
Query 1. Find the time taken by a Visitor to complete purchase from cart page
Descriptive 2. What are the observations from the above data? What does the result look like for each v
Output
Visitor ID Cart -> Purchase Time (Seconds)
1 23
2 NULL Since there is no purchase, result would be null
3 82 Two purchases for the visitor, so two rows of result unless aggregated
3 41