Kedah muslim 7 marina matthew kelang selangor

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

Kedah Muslim 1981-09-30 7 Marina Matthew Kelang Selangor Christian 1982-07-22 8 Phua Chu Kang Katong Singapore Christian 1966-08-20 9 Gurmit Singh Sepang Selangor Sikh 1980-08-20 10 Ng Faye Faye Cheras Selangor Buddhist 1982-02-03 4. Type in the command to show the birthdays, names, and hometowns of all the people in your database who were born before 1 January 1981. 5. Type in the command to show all the people in your database who are the same religion as p_ic=0. (Clue: this is a nested query.) Page 2 of 3
Image of page 2
TDB1131 Database Systems 6. Type in the command to show all the people in your database who are from the same state as 'Mark Hansen' and have the same religion but is younger than 'Mark Hansen' . SELECT * FROM `person` WHERE p_birthday > (SELECT p_birthday FROM person WHERE p_name = 'Mark Hensen') AND p_religion = (SELECT p_religion FROM person WHERE p_name = 'Mark Hensen') AND p_state = (SELECT p_state FROM person WHERE p_name = 'Mark Hensen') Page 3 of 3
Image of page 3

You've reached the end of your free preview.

Want to read all 3 pages?

  • Fall '19
  • Selangor, Mark Hansen, Define scope

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

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors