You are on page 1of 1

=============================== Day 4 ========================

1. columns concatenation
ex:- 1)concat(concat(first_name,' '),last_name)
2)first_name||" "||last_name
2. column calculation
3. column alias
4. column distinct
5. where clause:-
---------------
IN, not IN
AND, OR, BETWEEN
rownum, rowid
You cannot select the records with rownum or rowid directly from a table, instead
you should use table alias.
ex:- select rownum,rowid,e.* from employees e;
select rownum,rowid, employees.* from employees;
--> rownum always work with < or <= only, it will not work with > or = symbols.
--> While doing count() or operating with agregate functions they won't consider
null values.
is null, is not null
to_char, to_date
ex:- to_char(hire_date,'yyyy')
like - Pattern matching:-
ex:-like 'j%', like '%s', like '%an', like 'S%n', like '----', like '_500'
--> Here underscore(_) represents number of charecters.
order by:-
--> order by 3; - it orders the data based on the third column of the selected
columns in select statment.

You might also like