Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with SQL Again

Status
Not open for further replies.

Dazza203

Technical User
Dec 3, 2003
28
GB
This is a relatively simple problem and is probably easy, but you nether know that until someone tells you. I have written this query in SQL for use in Oracle:

SELECT PropertyStreet,
PropertyTown,
PropertyCity,
PropertyPostCode,
WeeklyRentRate
FROM PrivateLandlord
WHERE PropertyStreet = Street
ORDER BY WeeklyRentRate;

It works but I want it to do the opposite thing. On the line where it says WHERE PropertyStreet = Street, that means that the PropertyStreet attribute has to have the same value as the Street attribute, so in the code you put an = between them, but I want them to be NOT equal, any ideas?

Thanks,
Darren
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top