Matthew_SQL2.docx - Matthew Becker OR2 2-1 SQL> create...

Info icon This preview shows pages 1–4. Sign up to view the full content.

Matthew Becker OR2 2-1 SQL> create table Cust (cno char(3), address char(20), balance number(5)); Table created. SQL> SQL> insert into Cust values ('101', '1635 Jackson street', '200'); 1 row created. SQL> edit Wrote file afiedt.buf 1* insert into Cust values ('102', '222 west street', '300') SQL> / 1 row created. SQL> edit Wrote file afiedt.buf 1* insert into Cust values ('103', '372 north street', '300') SQL> / 1 row created. SQL> edit Wrote file afiedt.buf 1* insert into Cust values ('104', '23372 high street', '400') SQL> / 1 row created. SQL> edit Wrote file afiedt.buf 1* insert into Cust values ('105', '998 low street', '500') SQL> / 1 row created. SQL> SQL> select * from Cust; CNO ADRDRESS --------- ------------------------------------------------------------ BALANCE ---------- 101 1635 Jackson street 200 102 222 west street 300 103 372 north street
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

300 CNO ADRDRESS --------- ------------------------------------------------------------ BALANCE ---------- 104 23372 high street 400 105 998 low street 500 SQL> 2.2 SQL> select * from cust order by balance desc; CNO ADRDRESS --------- ------------------------------------------------------------ BALANCE ---------- 105 998 low street 500 104 23372 high street 400 102 222 west street 300 CNO ADRDRESS --------- ------------------------------------------------------------ BALANCE ---------- 103 372 north street 300 101 1635 Jackson street 200 SQL> 2.3 SQL> select * from rearp.student where class >= 2 order by sname desc; STNO SNAME ---------- ------------------------------------------------------------
Image of page 2
MAJOR CLASS BDATE ------------ ---------- --------------- 49 Susan ENGL
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Image of page 4
This is the end of the preview. Sign up to access the rest of the document.
  • Spring '16
  • Brooks
  • PostgreSQL, SAVEPOINT

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern