Click here to Skip to main content
Rate this: bad
good
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.
Thanks,
Akky
Posted 18-May-12 7:11am
Edited 18-May-12 7:13am
v2
Comments
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.
Akky
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 195
1 ProgramFOX 130
2 Maciej Los 105
3 Sergey Alexandrovich Kryukov 105
4 Afzaal Ahmad Zeeshan 82
0 OriginalGriff 6,564
1 Sergey Alexandrovich Kryukov 6,048
2 DamithSL 5,228
3 Manas Bhardwaj 4,717
4 Maciej Los 4,150


Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 18 May 2012
Copyright © CodeProject, 1999-2014
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