assignment1 answers

Upload: surendrakch

Post on 07-Jul-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/18/2019 Assignment1 Answers

    1/1

    1.create table wordlist(ID number primary key,ENTRY varchar(50),DEFINITION varchar(200))

    2.create sequence seq_id start with 1000 increment by 1;

    3.there are only 109698 rows of data is avilable

    4.select id, entry,length (entry) from wordlist where length(entry)=(select max(length(entry)) from wordlist)

    5.select id, entry,length (entry) from (select id,entry,length(entry) from wordlist order by length(entry) desc) where rownum