Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

plz have a glance at this query

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Noo sir it is not working. still no record
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic