Click here to Skip to main content
11,637,176 members (68,868 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: SQL
SELECT answer FROM answer WHERE q_id=(SELECT q_id FROM question WHERE dept="Maths")
Posted 28-Sep-12 7:37am
YoGiV262
Edited 28-Sep-12 7:41am
RaisKazi33.7K
v2
Comments
richcb at 28-Sep-12 13:42pm
   
And your question is....?

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Try by changing it to as below.
SELECT answer FROM answer WHERE q_id in (SELECT q_id FROM question WHERE dept="Maths")
  Permalink  
Comments
YoGiV at 28-Sep-12 13:46pm
   
Thank this query is working.
RaisKazi at 28-Sep-12 13:48pm
   
Glad to know that, :) Cheers - Rais
YoGiV at 28-Sep-12 14:00pm
   
Can you help me in php code.
RaisKazi at 28-Sep-12 14:02pm
   
Haven't worked on PHP, but you may post it as a new question, so that it may be answered by someone. Cheers
Maciej Los at 28-Sep-12 15:42pm
   
Good work, my 5!
RaisKazi at 28-Sep-12 15:46pm
   
Thank you Maciej.

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

  Print Answers RSS
0 stibee 313
1 jyo.net 295
2 OriginalGriff 295
3 himanshu agarwal 184
4 Sergey Alexandrovich Kryukov 154
0 OriginalGriff 9,031
1 Sergey Alexandrovich Kryukov 8,513
2 Mika Wendelius 6,922
3 F-ES Sitecore 2,388
4 Suvendu Shekhar Giri 2,320


Advertise | Privacy | Mobile
Web02 | 2.8.150728.1 | Last Updated 28 Sep 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