SQL-Course-Query-Assignment-1.doc

SQL-Course-Query-Assignment-1.doc - Chapter 6 SQL Course...

This preview shows page 1 - 2 out of 3 pages.

Chapter 6 SQL Course Query Assignment Go to: HYPERLINK "" and Develop and execute SQL statements at the site address above that do the following and submit a copy of the query used under each select activity below: 1. Display all fields and contents in the ‘empinfo’ table. select * from empinfo; 2. Display first, last, and age for first names beginning with Mary from the ‘empinfo’ table. select first,last, age from empinfo where first Like 'Mary%'; 3. Select statement that will match any last names that end in an 'ay' from the ‘empinfo’ table select * from empinfo where last Like '%ay'; 4. Display first, last, and id for all records within state California from the ‘empinfo’ table. select first, last, id from empinfo where state ='California'; 5. Display last name, age, and state columns for all employees whose age is less than 30 from ‘empinfo’ table . select last, age, state from empinfo where age<30; 6. Display the first name, last name, and city for everyone that's not from California.
Image of page 1

Subscribe to view the full document.

Image of page 2
  • Fall '17
  • Barson
  • Personal name, Family name, Given name, newly created table, empinfo

{[ 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