Interesting to Queries

Avoid Duplicate Records
SELECT DISTINCT SALARY
FROM EMPLOYEE
Union of two Records-Duplicates are removed

SELECT Date FROM Store_Information
UNION

Union All -Here Duplicates are not removed

Pattern Matching-comparison on condition
%- zero or more characters
_underscore -Single character
SQL IN –

SELECT “column_name”
FROM “table_name”
WHERE “column_name” IN (‘value1′, ‘value2′, …)

An SQL JOIN clause combines records from two or more tables in a database.




Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.