Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
tbl_Student(snum int, sname varchar(50), major varchar(30), standing varchar(10), age int);
tbl_class(cname varchar(), meets_at time, room varchar(), fid int);
tbl_enrolled(snum int, cname varchar());
tbl_faculty(fid int, fname varchar(), deptid int);
For simplicity, i'm not writyng the size, primarykey foreign key etc. but snum, fid are primary key and tbl_enrolled has no key. tbl_class has fid as foriegn key referencing to tbl_taculty.
I need SQL for the following:
a) List the major and age for the student named "Hasan Mashuk".
b) List the faculty if for all faculties that do not teach a class.
c) Lit the class names meeting in either room "R128" or room "R15".
d) List the student id that are enrolled in both "Database Systems" and "Operating System Design".
e) show the faculty name, class name and time (fname, cname, meets_at) for all classes with student "Juan Rodriguez".
f) show the list of distinct student names, where the student is registered for two or more different classes that meet at the same time.
g) Find the names of students not enrolled in any class.
h) Return the avg age of all students enrolled in "Database Systems";
i) Return the class name for all classes with more than 2 students and classes name starts with the letter 'D'
j) Return the age of the oldest student enrolled in a course taught by "Ivana Teach".
k) Find the names of all classes that either meet in room R128 or have five or more students enrolled.
l) Return the distinct faculty name and id for each faculty member that teaches only one class.
m) List the students by name that major in "Computer Science" in ascending orger of age.
haha, nice try. you could at least try to pretend it's not course work. and you do clearly acutally need a data set to match the table formats. and urgent - this is *NOT* urgent? maybe if you didn't spend so much time drinking or whatever, and study instead you'd know what this meant?
Last edited by acid_kewpie; 03-17-2008 at 03:41 PM.