Introduction to SQL
A view is which of the following?

A virtual table that can be accessed via SQL commands
A virtual table that cannot be accessed via SQL commands
A base table that can be accessed via SQL commands
A base table that cannot be accessed via SQL commands

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 BETWEEN 63 AND 79
SELECT * FROM weather WHERE humidity NOT BETWEEN 63 AND 79
SELECT * FROM weather WHERE humidity NOT IN (63 AND 79)
SELECT * FROM weather WHERE humidity IN (63 to 79)

ANSWER DOWNLOAD EXAMIANS APP

Introduction to SQL
If a query involves NOT, AND, OR with no parenthesis

AND will be evaluated first; OR will be evaluated second; NOT will be evaluated last.
NOT will be evaluated first; OR will be evaluated second; AND will be evaluated last.
NOT will be evaluated first; AND will be evaluated second; OR will be evaluated last.
The order of occurrence determines the order of evaluation.

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 FROM to name the source table(s) and list the columns to be shown after SELECT.
use USING to name the source table(s) and list the columns to be shown after SELECT.

ANSWER DOWNLOAD EXAMIANS APP

Introduction to SQL
What does the following query find?(SELECT DISTINCT r.sidFROM boats b, reserves rWHERE b.bid = r.bidAND b.color = 'red')MINUS(SELECT DISTINCT r.sidFROM boats b, reserves rWHERE b.bid = r.bidAND b.color = 'green')

Find the sailor IDs of all sailors who have reserved red boats but not green boats
Find the sailor Ids of atmost one sailor who have reserved red boats but not green boats
None of These
Find the sailor IDs of at least one sailor who have reserved red boats but not green boats

ANSWER DOWNLOAD EXAMIANS APP