This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

plz have a glance at this query

 
sandhiya sindhi
Ranch Hand
Posts: 50
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sir,
i have made these three tables
Create Table title
(t_id int Primary key, title varchar(30))

CREATE TABLE Question
(q_id int primary key ,
q_topic varchar(50),
message varchar(50),
userId varchar(30) foreign key references Biodata,
t_id int foreign key references title)
CREATE TABLE Question_Reply
(sno int ,
q_id int foreign key references Question,
reply varchar(50),
userId varchar(30) foreign key references Biodata,
date datetime)
Now sir here is my query which is i'm trying but no generating no result

kindly study it and give me reply as soon as possible plzzz
 
Wayne L Johnson
Ranch Hand
Posts: 399
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Different databases treat type conversions differently, so your problem may be with the q.t_id='1' clause. "t_id" is defined as an int, so you don't need to have the value in quotes. Try q.t_id=1 instead.
The only other explanation would be that no rows satisfy the query. But try removing the quotes first.
 
sandhiya sindhi
Ranch Hand
Posts: 50
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Noo sir it is not working. still no record
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic