Click here to Skip to main content
11,921,889 members (57,986 online)
Rate this:
Please Sign up or sign in to vote.
Hi guys,
Can anyone please help me in this condition.
A database named as school contains tables named after the name of teachers.Let us suppose them t1,t2,t3,t4 and these table contain their own time table schedule which tells a teacher that in which class she has to go.Now obviously a teacher can have one or more periods free.
So i want to retrieve the teachers name i.e tables' name which have specified cell blank.

Query in high level language.
Give me those table names which have a cell blank where Day = Monday and Period = 5.

Please help me as soon as it could be possible.
Posted 18-May-12 7:11am
Edited 18-May-12 7:13am
Ed Nutting37.6K
Ed Nutting 18-May-12 12:13pm
Looks like homework to me...
mark merrens 18-May-12 12:41pm
Most likely: you'd think the tutors would think up a new application to torture the students with so we'd get caught unawares and do their homework for them.
Kschuler 18-May-12 12:32pm
What have you tried so far? Use the Improve question link to post your code and explain why it isn't working. Include any error messages you are getting.
Shahin Khorshidnia 18-May-12 12:32pm
And what's the problem? Do you want us writing code for this scenario?
Member 7749624 19-May-12 3:51am
Yes,Shahin i want you to write a query in sql server 2005 for me.Please help me as soon as it could be possible.
losmac 19-May-12 17:54pm
We need more details: the structure of your database, example data.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 568
1 Dave Kreskowiak 285
2 Sergey Alexandrovich Kryukov 173
3 Richard MacCutchan 155
4 ppolymorphe 135
0 OriginalGriff 7,036
1 KrunalRohit 4,530
2 Sergey Alexandrovich Kryukov 3,286
3 George Jonsson 2,840
4 Suvendu Shekhar Giri 2,216

Advertise | Privacy | Mobile
Web02 | 2.8.151120.1 | Last Updated 18 May 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100