↳
don't even bother with this company if you are not indian. I was treated good but the guy didn't like me because i looked middle eastern. I am certified with aws Associate & Professional and i also about to do my big data certification exam, and above all of that they told me i have no technical expertise with AWS, which thats is bulshit anyway dont bother with this company they waste your time. Less
↳
Answer 1 SELECT Product.ProductCategory, SUM(Sales.SalesAmount) AS SalesAmount FROM Sales LEFT OUTER JOIN Product ON Sales.ProductID = Product.ProductID WHERE Product.ProductCategory IS NOT NULL AND (MONTH(Sales.TransactionTimestamp) = 12) AND (YEAR(Sales.TransactionTimestamp) = 2013) GROUP BY Product.ProductCategory Answer 2 SELECT SUM(Sales.SalesAmount) AS Sales FROM Sales WHERE Sales.TransactionID IN (SELECT DISTINCT SalesReturnReason.TransactionID FROM SalesReturnReason WHERE SalesReturnReason.OurFault = 'Y') Answer 3 SELECT TOP 4 CASE WHEN Product .ProductSubCategory IS NULL THEN 'Unknown' ELSE Product .ProductSubCategory END AS ProductSubCategory, SUM(dbo.Sales.SalesAmount) AS Sales, RANK() OVER (ORDER BY SUM(Sales.SalesAmount) DESC) AS Rank FROM Product LEFT OUTER JOIN Sales ON Product.ProductID = Sales.ProductID WHERE (YEAR(Sales.TransactionTimestamp) = 2013) GROUP BY Product.ProductSubCategory ORDER BY SUM(Sales.SalesAmount) DESC Answer 4 SELECT Sales.TransactionID, Customer.CustomerName, Product.ProductSubCategory, (SELECT TOP (1) PriorProduct.ProductSubCategory AS PriorProductSubCategory FROM Sales AS PriorSales LEFT OUTER JOIN Product AS PriorProduct ON PriorSales.ProductID = PriorProduct.ProductID WHERE PriorSales.CustomerID = Sales.CustomerID AND PriorSales.TransactionTimestamp < Sales.TransactionTimestamp ORDER BY PriorSales.TransactionTimestamp DESC) AS PriorProductSubCategory, Sales.TransactionTimestamp, Sales.SalesAmount FROM Sales LEFT OUTER JOIN Product ON Sales.ProductID = dbo.Product.ProductID LEFT OUTER JOIN Customer ON Sales.CustomerID = Customer.CustomerID WHERE Product.ProductSubCategory = 'Hydration Packs' AND (SELECT TOP (1) PriorProduct.ProductSubCategory AS PriorProductSubCategory FROM Sales AS PriorSales LEFT OUTER JOIN Product AS PriorProduct ON PriorSales.ProductID = PriorProduct.ProductID WHERE PriorSales.CustomerID = Sales.CustomerID AND PriorSales.TransactionTimestamp < Sales.TransactionTimestamp ORDER BY PriorSales.TransactionTimestamp DESC) = 'Bottles and Cages' ORDER BY Customer.CustomerID ASC Answer 5 SELECT COALESCE (ProductCategory, 'Unknown') AS ProductCategory, COALESCE ((SELECT SUM(Sales2012.SalesAmount) AS '2012' FROM Sales AS Sales2012 LEFT OUTER JOIN Product AS Product2012 ON Sales2012.ProductID = Product2012.ProductID WHERE YEAR(Sales2012.TransactionTimestamp) = 2012 AND COALESCE (Product2012.ProductCategory, 'Unknown') = COALESCE (dbo.Product.ProductCategory, 'Unknown')), 0) AS '2012', COALESCE ((SELECT SUM(Sales2013.SalesAmount) AS '2013' FROM Sales AS Sales2013 LEFT OUTER JOIN Product AS Product2013 ON Sales2013.ProductID = Product2013.ProductID WHERE YEAR(Sales2013.TransactionTimestamp) = 2013 AND COALESCE (Product2013.ProductCategory, 'Unknown') = COALESCE (dbo.Product.ProductCategory, 'Unknown')), 0) AS '2013', COALESCE ((SELECT SUM(Sales2014.SalesAmount) AS '2014' FROM Sales AS Sales2014 LEFT OUTER JOIN Product AS Product2014 ON Sales2014.ProductID = Product2014.ProductID WHERE YEAR(Sales2014.TransactionTimestamp) = 2014 AND COALESCE (Product2014.ProductCategory, 'Unknown') = COALESCE (dbo.Product.ProductCategory, 'Unknown')), 0) AS '2014' FROM Product GROUP BY ProductCategory ORDER BY ProductCategory Less
↳
I would appreciate the individual who took credit of my credibility and would request the individual to share the experience how he achieved it to the forum. Would like to react on the variation in the approach how he did once I receive his response. Less