Click here to Skip to main content
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
RaisKazi32.5K
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 OriginalGriff 390
1 Nirav Prabtani 273
2 _Amy 255
3 Richard Deeming 250
4 CHill60 195
0 _Amy 110
1 Maciej Los 90
2 OriginalGriff 85
3 Mehdi Gholam 80
4 Sergey Alexandrovich Kryukov 75


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 28 Sep 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