Login using Social Account
     Continue with GoogleLogin using your credentials
Syntax:
select field1, field2,...fieldN
[from table_name1, table_name2...]
[where clause]
[limit [offset M ][limit N]]
When selecting a fixed value, FROM clause is not mandatory.
select 'Hello';
SELECT examples:
select * from deptt;
select d.* from deptt d;
select * from deptt d;
select depid, depname, depcity from deptt limit 1;
select depid, depname, depcity from deptt limit 1,2; -- skip 1 and return only 2 rows
Aliases
Tables and Columns can be given alias names for easy readability.
select e.empfname "First Name" from emp e;
Selecting unique values
Values in columns of a table may repeat across the rows of the table. To get unique values, use select distinct.
select distinct empfname from emp;
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
No hints are availble for this assesment
Answer is not availble for this assesment
Loading comments...