General
TimeStampz
SQL Joins
Basic Statements
Data types
100

SQL is an abbreviation of

Structured query language

100

Write an SQL query to find the current date-time

SELECT NOW()

100

This join selects all rows from both participating tables as long as there is a match between the columns.

Inner Join

100

This statement is often used with aggregate functions ( COUNT() , MAX() , MIN() , SUM() , AVG() ) to group the result-set by one or more columns. 

Group By

100

A FIXED length string (can contain letters, numbers, and special characters).

Char

200

SQL views are also known as

Virtual tables

200

SQL query to view timezone

SHOW timezone()

200

This join returns all (matched or unmatched) rows from the tables on both sides of the join clause. 

Full Outer Join

200

This clause was added to SQL because the WHERE keyword cannot be used with aggregate functions. 

Having

200

Zero is considered as false, nonzero values are considered as true.

Bool

300

How many primary keys can you have in a table?

Only 1

300

SQL query to view today's date

SELECT CURRENT_TIME()

300

This join returns all records from the left table (table1), and the matching records from the right table (table2). 

Left Join

300

This statement in sql is used to sort the fetched data in either ascending or descending according to one or more columns. 

Order By

300

Allows whole numbers between -2,147,483,648 and 2,147,483,647

int

400

What is the difference between a PRIMARY KEY and a UNIQUE KEY?

We can have only one primary key in a table while we can have multiple unique keys

400

SQL query to know , what is the time now.

SELECT CURRENT_TIME

400

This join returns all the rows of the table on the right side of the join and matching rows for the table on the left side of join.

Right Join

400

It specifies a limited number of rows in the result set to be returned based on number of rows

Limit

400

Fixed precision and scale numbers.

numeric

500

When is a WHERE clause is useful?

For giving conditions 

500

SQL query to show the time as text

SELECT TIMEOFDAY()

500

This operator combines the result sets of two different queries. Column data types in the two queries must match.

Union

500

This operator selects values within a given range. 

Between

500

Monetary data

money

M
e
n
u