Posts

Showing posts with the label Google App Engine

SQL Queries Code Interviews QA 50 plus

Image
Here are SQL-focused interview questions with only the relevant SQL code: 1. Find the second highest salary from an Employee table. SELECT MAX(Salary) AS SecondHighestSalary FROM Employees WHERE Salary < (SELECT MAX(Salary) FROM Employees); Using ROW_NUMBER(): WITH RankedSalaries AS (   SELECT Salary, ROW_NUMBER() OVER (ORDER BY Salary DESC) AS Rank   FROM Employees ) SELECT Salary AS SecondHighestSalary FROM RankedSalaries WHERE Rank = 2; --- 2. Write a query to calculate a running total of sales. SELECT   OrderID,   OrderDate,   Amount,   SUM(Amount) OVER (ORDER BY OrderDate) AS RunningTotal FROM Orders; --- 3. Retrieve customers who placed no orders using a LEFT JOIN. SELECT c.CustomerID, c.CustomerName FROM Customers c LEFT JOIN Orders o ON c.CustomerID = o.CustomerID WHERE o.OrderID IS NULL; --- 4. Write a query to find the top 3 highest salaries. SELECT DISTINCT Salary FROM Employees ORDER BY Salary DESC LIMIT 3; Using DENSE_RANK(): WIT...

Google App Engine Hello world

Image
In this article,I am going to show how to deploy J2EE Google Web Application in Google App Engine  Step 1: Install Google App Engine in Eclipse Market Place. Step 2: Create Google Web Application in Eclipse and Create  Google Web Application Name from Google App Engine Dashboard Page  https://appengine.google.com/ Screen Shots Project Folder Explorer Screen Shot   App Engine Xml Configuration <?xml version="1.0" encoding="utf-8"?> <appengine-web-app xmlns="http://appengine.google.com/ns/1.0">   <application>jspexample123</application>   <version>1</version>   <!--     Allows App Engine to send multiple requests to one instance in parallel:   -->   <threadsafe>true</threadsafe>   <!-- Configure java.util.logging -->   <system-properties>     <property name="java.util.logging.config.file" value="WEB-INF...