Click here to Skip to main content
11,790,816 members (48,804 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: SQL2000 SQL-server-2005 C#2.0 , +
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 6:11am
Edited 18-May-12 6:13am
(no name)37.4K
Ed Nutting at 18-May-12 12:13pm
Looks like homework to me...
mark merrens at 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 at 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 at 18-May-12 12:32pm
And what's the problem? Do you want us writing code for this scenario?
Member 7749624 at 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 at 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 385
1 ppolymorphe 339
2 Richard MacCutchan 118
3 Maciej Los 70
4 George Swan 70
0 OriginalGriff 1,154
1 Maciej Los 825
2 KrunalRohit 686
3 ppolymorphe 660
4 CPallini 621

Advertise | Privacy | Mobile
Web02 | 2.8.1509028.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