Introduction to SQL
Which of the following is the original purpose of SQL?

To define the data structures
To specify the syntax and semantics of SQL manipulation language
All of these
To specify the syntax and semantics of SQL data definition language

ANSWER DOWNLOAD EXAMIANS APP

Introduction to SQL
Find all the cities with temperature, condition and humidity whose humidity is in the range of 63 to 79

SELECT * FROM weather WHERE humidity NOT IN (63 AND 79)
SELECT * FROM weather WHERE humidity IN (63 to 79)
SELECT * FROM weather WHERE humidity BETWEEN 63 AND 79
SELECT * FROM weather WHERE humidity NOT BETWEEN 63 AND 79

ANSWER DOWNLOAD EXAMIANS APP

Introduction to SQL
Find the name of those cities with temperature and condition whose condition is either sunny or cloudy but temperature must be greater than 70oF.

SELECT city, temperature, condition FROM weather WHERE condition = 'sunny' AND condition = 'cloudy' AND temperature > 70;
SELECT city, temperature, condition FROM weather WHERE condition = 'sunny' OR condition = 'cloudy' OR temperature > 70;
SELECT city, temperature, condition FROM weather WHERE condition = 'sunny' AND condition = 'cloudy' OR temperature > 70;
SELECT city, temperature, condition FROM weather WHERE condition = 'sunny' OR condition = 'cloudy' AND temperature > 70;

ANSWER DOWNLOAD EXAMIANS APP

Introduction to SQL
To define what columns should be displayed in an SQL SELECT statement:

use SELECT to name the source table(s) and list the columns to be shown after USING.
use USING to name the source table(s) and list the columns to be shown after WHER
use USING to name the source table(s) and list the columns to be shown after SELECT.
use FROM to name the source table(s) and list the columns to be shown after SELECT.

ANSWER DOWNLOAD EXAMIANS APP